From d82c597c82a7db3449177ccee9e4b5634c5c645e Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Wed, 30 Mar 2011 10:30:27 +0200 Subject: [PATCH] qvm-copy-to-vm2.kde: calculate size of sparse files correctly --- appvm/qvm-copy-to-vm2.kde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appvm/qvm-copy-to-vm2.kde b/appvm/qvm-copy-to-vm2.kde index 4c47753..2ccf73a 100755 --- a/appvm/qvm-copy-to-vm2.kde +++ b/appvm/qvm-copy-to-vm2.kde @@ -23,7 +23,7 @@ VM=$(kdialog -inputbox "Enter the VM name to send files to:") if [ X$VM = X ] ; then exit 0 ; fi -SIZE=$(du -c "$@" | tail -1 | cut -f 1) +SIZE=$(du --apparent-size -c "$@" | tail -1 | cut -f 1) REF=$(kdialog --progressbar "Copy progress") qdbus $REF org.freedesktop.DBus.Properties.Set "" maximum $SIZE