Displaying 3 results from an estimated 3 matches for "guestfs_mkfs_btrfs_argv".
2015 Jan 13
0
[PATCH] format, make-fs: specify the label on mkfs
...r = guestfs_mkfs (g, type, dev);
+ r = guestfs_mkfs_opts_argv (g, type, dev, &optargs);
guestfs_pop_error_handler (g);
if (r == -1) {
@@ -774,17 +780,17 @@ do_make_fs (const char *input, const char *output_str)
}
else {
const char *devs[] = { dev, NULL };
+ struct guestfs_mkfs_btrfs_argv optargs = { .bitmask = 0 };
+
+ optargs.datatype = "single";
+ optargs.metadata = "single";
+ optargs.bitmask |= GUESTFS_MKFS_BTRFS_DATATYPE_BITMASK | GUESTFS_MKFS_BTRFS_METADATA_BITMASK;
+ if (label) {
+ optargs.label = label;
+ optargs.bitmask |= GUESTFS_...
2015 Jan 13
3
[PATCH] mkfs: add 'label' optional argument
Add the 'label' optional argument to the mkfs action, so it is possible
to set a filesystem label direct when creating it. There may be
filesystems not supporting changing the label of existing filesystems
but only setting it at creation time, so this new optarg will help.
Implement it for the most common filesystems (ext*, fat, ntfs, btrfs,
xfs), giving an error for all the others, just
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of
local disk.
Rich.