search for: process_fs_featur

Displaying 2 results from an estimated 2 matches for "process_fs_featur".

Did you mean: process_fs_features
2013 May 16
0
[PATCH] btrfs-progs: mkfs: add -O option to specify fs features
...+} + +static int parse_one_fs_feature(const char *name, u64 *flags) +{ + int i; + int found = 0; + + for (i = 0; i < ARRAY_SIZE(mkfs_features); i++) { + if (!strcmp(mkfs_features[i].name, name)) { + *flags |= mkfs_features[i].flag; + found = 1; + } + } + + return !found; +} + +static void process_fs_features(u64 flags) +{ + int i; + + for (i = 0; i < ARRAY_SIZE(mkfs_features); i++) { + if (flags & mkfs_features[i].flag) { + fprintf(stderr, + "Turning ON incompat feature ''%s'': %s\n", + mkfs_features[i].name, + mkfs_features[i].desc); + } + } +} + + +/* +...
2013 Dec 02
3
[PATCH 1/3] btrfs-progs: Turning ON incompat isn't an error
Signed-off-by: Anand Jain <anand.jain@oracle.com> --- mkfs.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/mkfs.c b/mkfs.c index de1beed..0843600 100644 --- a/mkfs.c +++ b/mkfs.c @@ -1196,8 +1196,7 @@ static void process_fs_features(u64 flags) for (i = 0; i < ARRAY_SIZE(mkfs_features); i++) { if (flags & mkfs_features[i].flag) { - fprintf(stderr, - "Turning ON incompat feature ''%s'': %s\n", + printf("Turning ON incompat feature ''%s'': %s\n", mkfs...