[Libguestfs] [PATCH] inspect: get windows drive letters for GPT disks.
Richard W.M. Jones
rjones at redhat.com
Fri Feb 5 18:11:38 UTC 2016
On Fri, Feb 05, 2016 at 06:08:59PM +0000, Richard W.M. Jones wrote:
> > + int partnum = guestfs_part_to_partnum (g, fs_dev);
>
> Need to check that partnum != -1 and do something.
>
> > + CLEANUP_FREE char *device = guestfs_part_to_dev (g, fs_dev);
> > + CLEANUP_FREE char *type = guestfs_part_get_parttype (g, device);
And actually these ones need to be checked as well.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
More information about the Libguestfs
mailing list