mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-09 04:28:32 -05:00
Fix size reporting for disks without partitions.
* src/parthelper.c: Patch from Cole Robinson, fix size reporting for disks without partitions. Daniel
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user