dispvm: speedup sparse files handling by using bsdtar
Apparently it is much faster. Especially during savefile preparation - tar reads the whole file, while bsdtar gets file map and reads only used regions.
This commit is contained in:
parent
c6f136869e
commit
d02aa70e93
@ -50,7 +50,7 @@ class QfileDaemonDvm:
|
||||
qvm_collection = QubesVmCollection()
|
||||
qvm_collection.lock_db_for_writing()
|
||||
|
||||
tar_process = subprocess.Popen(['tar', '-C', current_savefile_vmdir,
|
||||
tar_process = subprocess.Popen(['bsdtar', '-C', current_savefile_vmdir,
|
||||
'-xSUf', os.path.join(current_savefile_vmdir, 'saved-cows.tar')])
|
||||
|
||||
qvm_collection.load()
|
||||
|
@ -60,5 +60,5 @@ fi
|
||||
rm -f $QMEMMAN_STOP
|
||||
ln -snf $VMDIR /var/lib/qubes/dvmdata/vmdir
|
||||
cd $VMDIR
|
||||
tar -Scf saved-cows.tar volatile.img
|
||||
bsdtar -cSf saved-cows.tar volatile.img
|
||||
echo "DVM savefile created successfully."
|
||||
|
@ -62,6 +62,7 @@ Requires: libvirt-daemon-xen
|
||||
Requires: createrepo
|
||||
Requires: gnome-packagekit
|
||||
Requires: cronie
|
||||
Requires: bsdtar
|
||||
# for qubes-hcl-report
|
||||
Requires: dmidecode
|
||||
Requires: PyQt4
|
||||
|
Loading…
Reference in New Issue
Block a user