]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix size reporting for disks without partitions.
authorDaniel Veillard <veillard@redhat.com>
Wed, 20 Aug 2008 13:20:01 +0000 (13:20 +0000)
committerDaniel Veillard <veillard@redhat.com>
Wed, 20 Aug 2008 13:20:01 +0000 (13:20 +0000)
* src/parthelper.c: Patch from Cole Robinson, fix size reporting for
  disks without partitions.
Daniel

ChangeLog
src/parthelper.c

index c849bc1b6d34a99bc8831cba7f436992bb455e8c..152e9707cc2fd0163524181532fb6578986176cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Aug 20 15:18:54 CEST 2008 Daniel Veillard <veillard@redhat.com>
+
+       * src/parthelper.c: Patch from Cole Robinson, fix size reporting for
+         disks without partitions.
+
 Wed Aug 20 15:11:57 CEST 2008 Daniel Veillard <veillard@redhat.com>
 
        * configure.in libvirt.spec.in docs/Makefile.am: fix the problem
index 1cd72402d35dd06d7428dc007fe19a8daa360c80..c699035a9a6926a2c31f80e02265b43288ca7f77 100644 (file)
@@ -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;