search for: guestfs_mkfs_btrfs_metadata

Displaying 4 results from an estimated 4 matches for "guestfs_mkfs_btrfs_metadata".

2015 Jan 13
0
[PATCH] format, make-fs: specify the label on mkfs
...ut, 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", - GUESTFS_MKFS_BTRFS...
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
2014 Jan 27
0
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
...;Is '%s' a correct filesystem type?\n", type); + + return -1; + } + } + else { + const char *devs[] = { dev, NULL }; + + if (guestfs_mkfs_btrfs (g, (char **) devs, + GUESTFS_MKFS_BTRFS_DATATYPE, "single", + GUESTFS_MKFS_BTRFS_METADATA, "single", + -1) == -1) + return -1; + } + + /* Set label. */ + if (label) { + if (guestfs_set_label (g, dev, label) == -1) + return -1; + } + + /* Mount it. */ + + /* For vfat, add the utf8 mount option because we want to be able to + * enc...
2014 Jan 27
2
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
I thought it would be easy to rewrite virt-make-fs in C. Two days later ... The Perl program uses a lot of external commands, which makes it pretty tedious to implement in C. Rich.