From c28418daed603d4943edc8b213b91f8d1e2b9fe3 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Thu, 19 Oct 2017 15:12:58 +0800 Subject: btrfs-progs: mkfs/rootdir: Shrink fs for rootdir option Use the new dev extent based shrink method for rootdir option. This restores the original behaviour when --rootdir will create a minimal filesystem size. Signed-off-by: Qu Wenruo [ update changelog ] Signed-off-by: David Sterba --- mkfs/rootdir.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mkfs/rootdir.h') diff --git a/mkfs/rootdir.h b/mkfs/rootdir.h index b7e00e53..3618b890 100644 --- a/mkfs/rootdir.h +++ b/mkfs/rootdir.h @@ -32,5 +32,6 @@ int btrfs_mkfs_fill_dir(const char *source_dir, struct btrfs_root *root, bool verbose); u64 btrfs_mkfs_size_dir(const char *dir_name, u32 sectorsize, u64 min_dev_size, u64 meta_profile, u64 data_profile); +int btrfs_mkfs_shrink_fs(struct btrfs_fs_info *fs_info, u64 *new_size_ret); #endif -- cgit v1.2.3