[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH] inspect: get windows drive letters for GPT disks.



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]