[ Version ( since = "1.37.20" ) ]
public bool part_resize (string device, int32 partnum, int64 endsect) throws Error
resize a partition
This command resizes the partition numbered partnum
on device
by moving the end position.
Note that this does not modify any filesystem present in the partition. If you wish to do this, you will need to use filesystem resizing commands like resize2fs.
When growing a partition you will want to grow the filesystem afterwards, but when shrinking, you need to shrink the filesystem before the partition.
this |
A GuestfsSession object |
true on success, false on error |