[ CCode ( array_length = false , array_null_terminated = true ) ]
[ Version ( since = "1.0.78" ) ]
public Partition[] part_list (string device) throws Error
list partitions on a device
This command parses the partition table on device
and returns the list of partitions found.
The fields in the returned structure are:
part_num Partition number, counting from 1.
part_start Start of the partition *in bytes*. To get sectors you have to divide by the device’s sector size, see blockdev_getss.
part_end End of the partition in bytes.
part_size Size of the partition in bytes.
this |
A GuestfsSession object |
an array of Partition objects, or NULL on error |