This implements the ntfsresize operation, using the external
program from ntfsprogs.
}
int
+optgroup_ntfsprogs_available (void)
+{
+ int r = access ("/usr/sbin/ntfsresize", X_OK);
+ return r == 0;
+}
+
+int
do_ntfs_3g_probe (int rw, const char *device)
{
char *err;
return r;
}
+
+int
+do_ntfsresize (const char *device)
+{
+ char *err;
+ int r;
+
+ r = command (NULL, &err, "ntfsresize", "-P", device, NULL);
+ if (r == -1) {
+ reply_with_error ("%s: %s", device, err);
+ free (err);
+ return -1;
+ }
+
+ return 0;
+}
This command packs the contents of C<directory> and downloads
it to local file C<tarball> (as an xz compressed tar archive).");
+ ("ntfsresize", (RErr, [Device "device"]), 231, [Optional "ntfsprogs"],
+ [],
+ "resize an NTFS filesystem",
+ "\
+This command resizes an NTFS filesystem, expanding or
+shrinking it to the size of the underlying device.
+See also L<ntfsresize(8)>.");
+
]
let all_functions = non_daemon_functions @ daemon_functions