btrfs-progs: mkfs: add temporary variable for fs features

A minor cleanup before other changes.

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2016-11-10 17:11:09 +01:00
parent 388cdce509
commit 279609aedf
1 changed files with 5 additions and 7 deletions

12
utils.c
View File

@ -1522,17 +1522,15 @@ void btrfs_list_all_fs_features(u64 mask_disallowed)
fprintf(stderr, "Filesystem features available:\n");
for (i = 0; i < ARRAY_SIZE(mkfs_features) - 1; i++) {
const struct btrfs_fs_feature *feat = &mkfs_features[i];
char *is_default = "";
if (mkfs_features[i].flag & mask_disallowed)
if (feat->flag & mask_disallowed)
continue;
if (mkfs_features[i].flag & BTRFS_MKFS_DEFAULT_FEATURES)
if (feat->flag & BTRFS_MKFS_DEFAULT_FEATURES)
is_default = ", default";
fprintf(stderr, "%-20s- %s (0x%llx%s)\n",
mkfs_features[i].name,
mkfs_features[i].desc,
mkfs_features[i].flag,
is_default);
fprintf(stderr, "%-20s- %s (0x%llx%s)\n", feat->name,
feat->desc, feat->flag, is_default);
}
}