diff options
author | Qu Wenruo <wqu@suse.com> | 2017-10-19 13:41:38 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-01-08 18:11:33 +0100 |
commit | 8719161b4c2cefdf1bbb87800ee6fada57bcac9c (patch) | |
tree | fe3251b3e3e32229b22eeef2947a9256c8d03e12 /mkfs/rootdir.h | |
parent | 075580471e0f7435c52df486eb4354031337a7d3 (diff) |
btrfs-progs: mkfs: move source dir size calculation to its own files
Also rename the function from size_sourcedir() to mkfs_size_dir().
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'mkfs/rootdir.h')
-rw-r--r-- | mkfs/rootdir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mkfs/rootdir.h b/mkfs/rootdir.h index 015e5add..c4b120c5 100644 --- a/mkfs/rootdir.h +++ b/mkfs/rootdir.h @@ -30,5 +30,7 @@ struct directory_name_entry { int btrfs_mkfs_fill_dir(const char *source_dir, struct btrfs_root *root, bool verbose); +u64 btrfs_mkfs_size_dir(const char *dir_name, u64 sectorsize, + u64 *num_of_meta_chunks_ret, u64 *size_of_data_ret); #endif |