qvm-copy-to-vm2.kde: calculate size of sparse files correctly
这个提交包含在:
父节点
7ac754eb63
当前提交
fab96d2225
@ -23,7 +23,7 @@
|
|||||||
VM=$(kdialog -inputbox "Enter the VM name to send files to:")
|
VM=$(kdialog -inputbox "Enter the VM name to send files to:")
|
||||||
if [ X$VM = X ] ; then exit 0 ; fi
|
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")
|
REF=$(kdialog --progressbar "Copy progress")
|
||||||
qdbus $REF org.freedesktop.DBus.Properties.Set "" maximum $SIZE
|
qdbus $REF org.freedesktop.DBus.Properties.Set "" maximum $SIZE
|
||||||
|
|
||||||
|
正在加载...
在新工单中引用
屏蔽一个用户