Hi, attached patch fixes libvirt on fully sparse files. Otherwise you'll get a Cloning from bla.img to bla2.img ERROR: local variable 'b' referenced before assignment exception because b is uninitialzed (we never didn't write anything). Patch is against 0.300.1. Please apply, -- Guido
diff --git a/virtinst/CloneManager.py b/virtinst/CloneManager.py index 366c0dc..da792b6 100644 --- a/virtinst/CloneManager.py +++ b/virtinst/CloneManager.py @@ -636,7 +636,8 @@ def _do_duplicate(design): src_fd = os.open(src_dev, os.O_RDONLY) dst_fd = os.open(dst_dev, os.O_WRONLY | os.O_CREAT) - i=0 + i = 0 + b = 0 while 1: l = os.read(src_fd, design.clone_bs) s = len(l)
_______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/et-mgmt-tools