diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-10-22 12:22:41 -0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-31 08:22:23 -0800 |
commit | 147114581d2b301ea6bc86b22696656b50770dd7 (patch) | |
tree | f06a425b63cfd7157ea2a59212657c28fdb66461 /mkfs.c | |
parent | a2bd44cbc69db17c92a7370749184397f7be97c2 (diff) |
Btrfs-progs: add support for the no holes incompat flag
This adds the flag to ctree.h, adds the feature option to mkfs to turn it on and
fixes fsck so it doesn't complain about missing hole extents in files when this
flag is set.
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'mkfs.c')
-rw-r--r-- | mkfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1147,6 +1147,8 @@ static const struct btrfs_fs_feature { "raid56 extended format" }, { "skinny-metadata", BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA, "reduced-size metadata extent refs" }, + { "no-holes", BTRFS_FEATURE_INCOMPAT_NO_HOLES, + "no explicit hole extents for files" }, /* Keep this one last */ { "list-all", BTRFS_FEATURE_LIST_ALL, NULL } }; |