part_get_mbr_id


Description:

[ Version ( since = "1.3.2" ) ]
public int32 part_get_mbr_id (string device, int32 partnum) throws Error

get the MBR type byte (ID byte) from a partition

Returns the MBR type byte (also known as the ID byte) from the numbered partition partnum.

Note that only MBR (old DOS-style) partitions have type bytes. You will get undefined results for other partition table types (see part_get_parttype).

Parameters:

this

A GuestfsSession object

Returns:

the returned value, or -1 on error