path: root/utils.h
diff options
authorDavid Sterba <>2015-07-01 17:49:21 +0200
committerDavid Sterba <>2015-07-01 17:49:21 +0200
commitdf4de2c089a4213ffad4681d90bd333db8d2192a (patch)
tree36de0797d18d2ec59cdeb9c15af5ba3d97b26bf5 /utils.h
parentf7a18e4cab7bd11aeb14943234cba7af9359989a (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 <>
Diffstat (limited to 'utils.h')
1 files changed, 12 insertions, 3 deletions
diff --git a/utils.h b/utils.h
index 8ed18e15..1c763452 100644
--- a/utils.h
+++ b/utils.h
@@ -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,