-----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, March 24, 2015 9:52 PM To: Chen, Hanxiao/陈 晗霄 Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] [PATCH 2/2] New API: part_get_part_type for showing partition type
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@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/af9aa2eb0582bfced4e16ade73c1... 321b91ceb9 https://github.com/libguestfs/libguestfs/commit/0c396a4bce578486dfc4a38e1f8c... fd5c2836ea
Thanks,
Rich.
[1] returns the partition table type like "mbr".
Thanks for your help and links. Regards, - Chen