api/admin: hide dd statistics in admin.vm.volume.Import call

But still show errors, if occurs.
This commit is contained in:
Marek Marczykowski-Górecki 2017-11-06 15:57:20 +01:00
parent 439d9b87ff
commit 0327b6cd98
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -44,7 +44,7 @@ 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,fullblock \ if dd bs=4k of="$path" count="$size" iflag=count_bytes,fullblock \
conv=sparse,notrunc,nocreat,fdatasync; then conv=sparse,notrunc,nocreat,fdatasync status=none; then
status="ok" status="ok"
else else
status="fail" status="fail"