resize an NTFS filesystem
This command resizes an NTFS filesystem, expanding or shrinking it to the size of the underlying device.
The optional parameters are:
size
The new size (in bytes) of the filesystem. If omitted, the filesystem is resized to fit the container (eg. partition).
force
If this option is true, then force the resize of the filesystem even if the filesystem is marked as requiring a
consistency check.
After the resize operation, the filesystem is always marked as requiring a consistency check (for safety). You have to boot into Windows
to perform this check and clear this condition. If you *don't* set the force
option then it is not possible to call
ntfsresize multiple times on a single filesystem without booting into Windows between each resize.
See also ntfsresize(8).
This function depends on the feature "ntfsprogs". See also feature_available.
this |
A GuestfsSession object |
optargs |
a GuestfsNTFSResizeOpts containing optional arguments |
true on success, false on error |