summaryrefslogtreecommitdiff
path: root/mkfs/rootdir.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2017-10-19 17:13:55 +0800
committerDavid Sterba <dsterba@suse.com>2018-01-08 18:15:15 +0100
commit1c9c5f7fb3f6a2182d230d469b22b3b1329f24d8 (patch)
tree7bdd2d05a882a68d1883e16d2970f17152f2cff9 /mkfs/rootdir.h
parentc28418daed603d4943edc8b213b91f8d1e2b9fe3 (diff)
btrfs-progs: mkfs: Separate shrink from rootdir
Make --shrink a separate option for --rootdir, and change the default to off. The shrinking behaviour is not a commonly used feature but can be useful for creating minimal pre-filled images, in one step, without requiring to mount. Signed-off-by: Qu Wenruo <wqu@suse.com> [ update changelog and error messages ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'mkfs/rootdir.h')
-rw-r--r--mkfs/rootdir.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkfs/rootdir.h b/mkfs/rootdir.h
index 3618b890..d0fc2eb5 100644
--- a/mkfs/rootdir.h
+++ b/mkfs/rootdir.h
@@ -32,6 +32,7 @@ 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);
+int btrfs_mkfs_shrink_fs(struct btrfs_fs_info *fs_info, u64 *new_size_ret,
+ bool shrink_file_size);
#endif