qubes-rpc/admin.vm.volume.Import: fix dd flags
QubesOS/qubes-issues#2622
This commit is contained in:
parent
b256af3bfb
commit
0fdcbfc237
@ -20,7 +20,7 @@ size=$(tail -c +3 "$tmpfile"|cut -d ' ' -f 1)
|
|||||||
path=$(tail -c +3 "$tmpfile"|cut -d ' ' -f 2)
|
path=$(tail -c +3 "$tmpfile"|cut -d ' ' -f 2)
|
||||||
|
|
||||||
# now process stdin into this path
|
# now process stdin into this path
|
||||||
if dd bs=4k of="$path" count="$size" iflag=count_bytes \
|
if dd bs=4k of="$path" count="$size" iflag=count_bytes,fullblock \
|
||||||
conv=sparse,notrunc,nocreat,fdatasync; then
|
conv=sparse,notrunc,nocreat,fdatasync; then
|
||||||
status="ok"
|
status="ok"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user