소스 검색

qubes-rpc/admin.vm.volume.Import: fix dd flags

QubesOS/qubes-issues#2622
Wojtek Porczyk 7 년 전
부모
커밋
0fdcbfc237
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      qubes-rpc/admin.vm.volume.Import

+ 1 - 1
qubes-rpc/admin.vm.volume.Import

@@ -20,7 +20,7 @@ size=$(tail -c +3 "$tmpfile"|cut -d ' ' -f 1)
 path=$(tail -c +3 "$tmpfile"|cut -d ' ' -f 2)
 
 # 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
     status="ok"
 else