storage/reflink: simplify _replace_file() comment

This commit is contained in:
Rusty Bird 2019-12-03 18:21:52 +00:00
parent 9d5deffb13
commit 3f0286220c
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -359,7 +359,7 @@ class ReflinkVolume(qubes.storage.Volume):
def _replace_file(dst): def _replace_file(dst):
''' Yield a tempfile whose name starts with dst, creating the last ''' Yield a tempfile whose name starts with dst, creating the last
directory component if necessary. If the block does not raise directory component if necessary. If the block does not raise
an exception, flush+fsync the tempfile and rename it to dst. an exception, safely rename the tempfile to dst.
''' '''
tmp_dir, prefix = os.path.split(dst + '~') tmp_dir, prefix = os.path.split(dst + '~')
_make_dir(tmp_dir) _make_dir(tmp_dir)