part_disk


Description:

[ Version ( since = "1.0.78" ) ]
public bool part_disk (string device, string parttype) throws Error

partition whole disk with a single primary partition

This command is simply a combination of part_init followed by part_add to create a single primary partition covering the whole disk.

parttype is the partition table type, usually mbr or gpt, but other possible values are described in part_init.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error