summaryrefslogtreecommitdiff
path: root/mkfs/rootdir.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2017-10-19 15:12:58 +0800
committerDavid Sterba <dsterba@suse.com>2018-01-08 18:15:13 +0100
commitc28418daed603d4943edc8b213b91f8d1e2b9fe3 (patch)
treef91031c23a232d8613c7ad578b50392c45c62001 /mkfs/rootdir.h
parent599a0abed5649727dc3b6ec4ec373ba30253df45 (diff)
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 <wqu@suse.com> [ update changelog ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'mkfs/rootdir.h')
-rw-r--r--mkfs/rootdir.h1
1 files changed, 1 insertions, 0 deletions
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