summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-10-22 12:22:41 -0400
committerChris Mason <clm@fb.com>2014-01-31 08:22:23 -0800
commit147114581d2b301ea6bc86b22696656b50770dd7 (patch)
treef06a425b63cfd7157ea2a59212657c28fdb66461 /mkfs.c
parenta2bd44cbc69db17c92a7370749184397f7be97c2 (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkfs.c b/mkfs.c
index aaea3682..d238b5c3 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -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 }
};