part_set_gpt_type
Description:
[ Version ( since = "1.21.1" ) ]
public bool part_set_gpt_type (string device, int32 partnum, string guid) throws Error
public bool part_set_gpt_type (string device, int32 partnum, string guid) throws Error
set the type GUID of a GPT partition
Set the type GUID of numbered GPT partition partnum
to guid
. Return an error if the partition table of device
isn't GPT, or if guid
is not a valid GUID.
See <ulink url='http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GU IDs'> http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs </ulink> for a useful list of type GUIDs.
This function depends on the feature "gdisk". See also feature_available.
Parameters:
this |
A GuestfsSession object |
Returns:
true on success, false on error |