[et-mgmt-tools] virtinst: fix virt-clone on sparse files

Daniel P. Berrange berrange at redhat.com
Tue Dec 11 16:44:42 UTC 2007


On Tue, Dec 11, 2007 at 11:13:05AM +0100, Guido Guenther wrote:
> 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).

Actually the block referencing 'b' was mis-indented, so I fixed it that
way.

http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=04bcf7147ee9

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 




More information about the et-mgmt-tools mailing list