[Libguestfs] [PATCH 2/2] New API: part_get_part_type for showing partition type

Richard W.M. Jones rjones at redhat.com
Tue Mar 24 13:52:29 UTC 2015


On Tue, Mar 24, 2015 at 07:20:17AM -0400, Chen Hanxiao wrote:
> This patch will add support for getting partition type
> of a partiton numbered device.
> 
> Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>

I have pushed this.

I changed the API name to part_get_mbr_part_type since it's really
MBR-specific, and also we have an API called part_get_parttype[1] so
there was an opportunity for confusion.

Also I added an extra test and made a small adjustment to the API
description.

Here are the upstream commits:

https://github.com/libguestfs/libguestfs/commit/af9aa2eb0582bfced4e16ade73c19c321b91ceb9
https://github.com/libguestfs/libguestfs/commit/0c396a4bce578486dfc4a38e1f8c47fd5c2836ea

Thanks,

Rich.

[1] returns the partition table type like "mbr".

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list