part_set_mbr_id


Description:

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

set the MBR type byte (ID byte) of a partition

Sets the MBR type byte (also known as the ID byte) of the numbered partition partnum to idbyte. Note that the type bytes quoted in most documentation are in fact hexadecimal numbers, but usually documented without any leading "0x" which might be confusing.

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:

true on success, false on error




2022 vala-language.org