From: Daniel Veillard Date: Wed, 20 Aug 2008 13:20:01 +0000 (+0000) Subject: Fix size reporting for disks without partitions. X-Git-Tag: LIBVIRT_0_4_6~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ace1b6bf981c33135de49e27d96e88245c4425bd;p=thirdparty%2Flibvirt.git Fix size reporting for disks without partitions. * src/parthelper.c: Patch from Cole Robinson, fix size reporting for disks without partitions. Daniel --- diff --git a/ChangeLog b/ChangeLog index c849bc1b6d..152e9707cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Aug 20 15:18:54 CEST 2008 Daniel Veillard + + * src/parthelper.c: Patch from Cole Robinson, fix size reporting for + disks without partitions. + Wed Aug 20 15:11:57 CEST 2008 Daniel Veillard * configure.in libvirt.spec.in docs/Makefile.am: fix the problem diff --git a/src/parthelper.c b/src/parthelper.c index 1cd72402d3..c699035a9a 100644 --- a/src/parthelper.c +++ b/src/parthelper.c @@ -63,7 +63,7 @@ int main(int argc, char **argv) } /* Get the first partition, and then iterate over all */ - part = ped_disk_get_partition(disk, 1); + part = ped_disk_next_partition(disk, NULL); while (part) { const char *type; const char *content;