Displaying 3 results from an estimated 3 matches for "mkfs_featur".
Did you mean:
mkfs_features
2013 Nov 14
3
[PATCH] btrfs-progs: mkfs: extend -O syntax to disable features
...mkfs.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/mkfs.c b/mkfs.c
index cd0af9ef8b4f..f825e1b6bc2d 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -1168,7 +1168,11 @@ static int parse_one_fs_feature(const char *name, u64 *flags)
int found = 0;
for (i = 0; i < ARRAY_SIZE(mkfs_features); i++) {
- if (!strcmp(mkfs_features[i].name, name)) {
+ if (name[0] == ''^'' &&
+ !strcmp(mkfs_features[i].name, name + 1)) {
+ *flags &= ~ mkfs_features[i].flag;
+ found = 1;
+ } else if (!strcmp(mkfs_features[i].name, name)) {
*flags |= mkfs_features[i]...
2013 May 16
0
[PATCH] btrfs-progs: mkfs: add -O option to specify fs features
...39;O'' },
{ 0, 0, 0, 0}
};
@@ -1253,6 +1255,87 @@ static int is_ssd(const char *file)
return !atoi((const char *)&rotational);
}
+#define BTRFS_FEATURE_LIST_ALL (1ULL << 63)
+
+static const struct btrfs_fs_feature {
+ const char *name;
+ u64 flag;
+ const char *desc;
+} mkfs_features[] = {
+ { "mixed-bg", BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS,
+ "mixed data and metadata block groups" },
+ { "extref", BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF,
+ "increased hardlink limit per file to 65536" },
+ { "raid56", BTRFS_FEATURE_INCOMPAT_RAI...
2013 Dec 02
3
[PATCH 1/3] btrfs-progs: Turning ON incompat isn't an error
...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_features[i].name,
mkfs_features[i].desc);
}
--
1....