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:
Marek Marczykowski-Górecki 2015-03-30 05:29:14 +02:00
parent c6f136869e
commit d02aa70e93
3 changed files with 3 additions and 2 deletions

View File

@ -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()

View File

@ -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."

View File

@ -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