diff options
author | David Sterba <dsterba@suse.com> | 2017-01-24 19:36:15 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-01-27 12:20:43 +0100 |
commit | c855e60f7ef8f980a465bcadc72caeba70fd10b7 (patch) | |
tree | a953b93897bfda025b0c36cc30212c35c7b777ce /utils.h | |
parent | 78e1787c55a28f496d210b2805d84539d86552a1 (diff) |
btrfs-progs: mkfs/convert: separate the convert part from make_btrfs
The regulare mkfs_btrfs does not anything special about convert and just
passes the arguments. Make that two functions.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -155,8 +155,9 @@ struct btrfs_convert_context { #define PREP_DEVICE_DISCARD (1U << 1) #define PREP_DEVICE_VERBOSE (1U << 2) -int make_btrfs(int fd, struct btrfs_mkfs_config *cfg, - struct btrfs_convert_context *cctx); +int make_btrfs(int fd, struct btrfs_mkfs_config *cfg); +int make_convert_btrfs(int fd, struct btrfs_mkfs_config *cfg, + struct btrfs_convert_context *cctx); int btrfs_make_root_dir(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 objectid); int btrfs_prepare_device(int fd, const char *file, u64 *block_count_ret, |