diff options
author | David Sterba <dsterba@suse.cz> | 2013-11-14 15:09:53 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-14 12:21:17 -0500 |
commit | 9f0c53f574b242b0d5988db2972c8aac77ef35a9 (patch) | |
tree | 94a74a8f3a118b7da4ae7109375e4aac4bbb0bf7 /mkfs.c | |
parent | e89c31e5ecd67f78e506c83bec48ae8cdfefe292 (diff) |
btrfs-progs: mkfs: enable extended refs by default
The feature has been introduced in kernel 3.7 and enabling it by
default is desired.
All features enabled by default are marked as such in
'mkfs.btrfs -O list-all' output.
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'mkfs.c')
-rw-r--r-- | mkfs.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -46,6 +46,8 @@ static u64 index_cnt = 2; +#define DEFAULT_MKFS_FEATURES (BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF) + #define DEFAULT_MKFS_LEAF_SIZE 16384 struct directory_name_entry { @@ -1155,10 +1157,15 @@ static void list_all_fs_features(void) fprintf(stderr, "Filesystem features available at mkfs time:\n"); for (i = 0; i < ARRAY_SIZE(mkfs_features) - 1; i++) { - fprintf(stderr, "%-20s- %s (0x%llx)\n", + char *is_default = ""; + + if (mkfs_features[i].flag & DEFAULT_MKFS_FEATURES) + is_default = ", default"; + fprintf(stderr, "%-20s- %s (0x%llx%s)\n", mkfs_features[i].name, mkfs_features[i].desc, - mkfs_features[i].flag); + mkfs_features[i].flag, + is_default); } } @@ -1253,7 +1260,7 @@ int main(int ac, char **av) int dev_cnt = 0; int saved_optind; char estr[100]; - u64 features = 0; + u64 features = DEFAULT_MKFS_FEATURES; while(1) { int c; |