diff options
author | David Sterba <dsterba@suse.com> | 2015-07-01 17:49:21 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-07-01 17:49:21 +0200 |
commit | df4de2c089a4213ffad4681d90bd333db8d2192a (patch) | |
tree | 36de0797d18d2ec59cdeb9c15af5ba3d97b26bf5 /utils.h | |
parent | f7a18e4cab7bd11aeb14943234cba7af9359989a (diff) |
btrfs-progs: move make_btrfs arguments to a struct
No functional change, just introduce the structure and switch current
users.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -105,9 +105,18 @@ char* btrfs_parse_fs_features(char *namelist, u64 *flags); void btrfs_process_fs_features(u64 flags); void btrfs_parse_features_to_string(char *buf, u64 flags); -int make_btrfs(int fd, const char *device, const char *label, - char *fs_uuid, u64 blocks[6], u64 num_bytes, u32 nodesize, - u32 sectorsize, u32 stripesize, u64 features); +struct btrfs_mkfs_config { + char *label; + char *fs_uuid; + u64 blocks[8]; + u64 num_bytes; + u32 nodesize; + u32 sectorsize; + u32 stripesize; + u64 features; +}; + +int make_btrfs(int fd, const char *device, struct btrfs_mkfs_config *cfg); int btrfs_make_root_dir(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 objectid); int btrfs_prepare_device(int fd, char *file, int zero_end, u64 *block_count_ret, |