search for: guestfs_mkfs_btrfs_datatype_bitmask

Displaying 3 results from an estimated 3 matches for "guestfs_mkfs_btrfs_datatype_bitmask".

2015 Jan 13
0
[PATCH] format, make-fs: specify the label on mkfs
...+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_MKFS_BTRFS_LABEL_BITMASK; + } - if (guestfs_mkfs_btrfs (g, (char **) devs, - GUESTFS_MKFS_BTRFS_DATATYPE, "single", -...
2012 Apr 02
2
[PATCH 0/2] Fix btrfs blocksize and bind mkfs.btrfs (RHBZ#807905).
https://bugzilla.redhat.com/show_bug.cgi?id=807905 Currently if you specify the blocksize parameter to mkfs-opts with a btrfs filesystem, then it fails, because mkfs.btrfs interprets the -b option as meaning filesystem size. The first patch fixes this by disallowing blocksize (it cannot be mapped meaningfully into btrfs parameters). The second patch adds the full /sbin/mkfs.btrfs utility to the
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