Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/496'
Browse files Browse the repository at this point in the history
* origin/pr/496:
  Use fsync and nocreat during import
  • Loading branch information
marmarek committed Nov 28, 2022
2 parents 13a2e49 + 87f9866 commit 6e939bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubes/storage/lvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ async def import_volume(self, src_volume):
src_path = await qubes.utils.coro_maybe(src_volume.export())
try:
cmd = [_dd, 'if=' + src_path, 'of=/dev/' + self._vid_import,
'conv=sparse', 'status=none', 'bs=128K']
'conv=sparse,nocreat,fsync', 'status=none', 'bs=128K']
if not os.access('/dev/' + self._vid_import, os.W_OK) or \
not os.access(src_path, os.R_OK):
cmd.insert(0, _sudo)
Expand Down

0 comments on commit 6e939bc

Please sign in to comment.