resize2fs_M


Description:

[ Version ( since = "1.9.4" ) ]
public bool resize2fs_M (string device) throws Error

resize an ext2, ext3 or ext4 filesystem to the minimum size

This command is the same as resize2fs, but the filesystem is resized to its minimum size. This works like the *-M* option to the resize2fs command.

To get the resulting size of the filesystem you should call tune2fs_l and read the "Block size" and "Block count" values. These two numbers, multiplied together, give the resulting size of the minimal filesystem in bytes.

See also "RESIZE2FS ERRORS" in guestfs(3).

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error