[libvirt] [PATCH] Fix size reporting for disk pools without partitions

Cole Robinson crobinso at redhat.com
Wed Aug 13 03:58:23 UTC 2008


The attached patch updates parthelper to print size
information for a disk device if it doesn't have any
allocated partitions.

The current code starts by requesting the first partition,
then iterating from there. But if there is no first
partition, that whole info reporting thing never happens :)

Seems to produce desired results for partitioned and
unpartitioned devices.

Thanks,
Cole
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-disk-size-nopart.patch
Type: text/x-diff
Size: 617 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080812/905b520c/attachment-0001.bin>


More information about the libvir-list mailing list