mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-27 05:27:56 +00:00
btrfs-progs: mkfs: add temporary variable for fs features
A minor cleanup before other changes. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
388cdce509
commit
279609aedf
12
utils.c
12
utils.c
@ -1522,17 +1522,15 @@ void btrfs_list_all_fs_features(u64 mask_disallowed)
|
|||||||
|
|
||||||
fprintf(stderr, "Filesystem features available:\n");
|
fprintf(stderr, "Filesystem features available:\n");
|
||||||
for (i = 0; i < ARRAY_SIZE(mkfs_features) - 1; i++) {
|
for (i = 0; i < ARRAY_SIZE(mkfs_features) - 1; i++) {
|
||||||
|
const struct btrfs_fs_feature *feat = &mkfs_features[i];
|
||||||
char *is_default = "";
|
char *is_default = "";
|
||||||
|
|
||||||
if (mkfs_features[i].flag & mask_disallowed)
|
if (feat->flag & mask_disallowed)
|
||||||
continue;
|
continue;
|
||||||
if (mkfs_features[i].flag & BTRFS_MKFS_DEFAULT_FEATURES)
|
if (feat->flag & BTRFS_MKFS_DEFAULT_FEATURES)
|
||||||
is_default = ", default";
|
is_default = ", default";
|
||||||
fprintf(stderr, "%-20s- %s (0x%llx%s)\n",
|
fprintf(stderr, "%-20s- %s (0x%llx%s)\n", feat->name,
|
||||||
mkfs_features[i].name,
|
feat->desc, feat->flag, is_default);
|
||||||
mkfs_features[i].desc,
|
|
||||||
mkfs_features[i].flag,
|
|
||||||
is_default);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user