diff --git a/qubes/storage/reflink.py b/qubes/storage/reflink.py index 7cb9ca10..cc3a5db1 100644 --- a/qubes/storage/reflink.py +++ b/qubes/storage/reflink.py @@ -378,6 +378,7 @@ def _resize_file(path, size): ''' Resize an existing file. ''' with open(path, 'rb+') as file: file.truncate(size) + os.fsync(file.fileno()) def _create_sparse_file(path, size): ''' Create an empty sparse file. '''