소스 검색

storage/reflink: simplify _replace_file() comment

Rusty Bird 4 년 전
부모
커밋
3f0286220c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      qubes/storage/reflink.py

+ 1 - 1
qubes/storage/reflink.py

@@ -359,7 +359,7 @@ class ReflinkVolume(qubes.storage.Volume):
 def _replace_file(dst):
     ''' Yield a tempfile whose name starts with dst, creating the last
         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 + '~')
     _make_dir(tmp_dir)