mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2025-01-21 03:03:20 +08:00
btrfs-progs: mkfs: group feature option declarations
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
77787d12d5
commit
c85bb9b5bf
39
mkfs/main.c
39
mkfs/main.c
@ -977,26 +977,11 @@ int BOX_MAIN(mkfs)(int argc, char **argv)
|
||||
struct btrfs_fs_info *fs_info;
|
||||
struct btrfs_trans_handle *trans;
|
||||
struct open_ctree_flags ocf = { 0 };
|
||||
char *label = NULL;
|
||||
u64 block_count = 0;
|
||||
u64 dev_block_count = 0;
|
||||
u64 metadata_profile = 0;
|
||||
u64 data_profile = 0;
|
||||
u32 nodesize = 0;
|
||||
u32 sectorsize = 0;
|
||||
u32 stripesize = 4096;
|
||||
int fd = -1;
|
||||
int ret = 0;
|
||||
int close_ret;
|
||||
int i;
|
||||
bool mixed = false;
|
||||
bool nodesize_forced = false;
|
||||
bool data_profile_opt = false;
|
||||
bool metadata_profile_opt = false;
|
||||
bool ssd = false;
|
||||
bool force_overwrite = false;
|
||||
char *source_dir = NULL;
|
||||
bool source_dir_set = false;
|
||||
bool shrink_rootdir = false;
|
||||
u64 source_dir_size = 0;
|
||||
u64 min_dev_size;
|
||||
@ -1005,14 +990,30 @@ int BOX_MAIN(mkfs)(int argc, char **argv)
|
||||
int saved_optind;
|
||||
pthread_t *t_prepare = NULL;
|
||||
struct prepare_device_progress *prepare_ctx = NULL;
|
||||
char fs_uuid[BTRFS_UUID_UNPARSED_SIZE] = { 0 };
|
||||
u64 features = BTRFS_MKFS_DEFAULT_FEATURES;
|
||||
u64 runtime_features = BTRFS_MKFS_DEFAULT_RUNTIME_FEATURES;
|
||||
struct mkfs_allocation allocation = { 0 };
|
||||
struct btrfs_mkfs_config mkfs_cfg;
|
||||
enum btrfs_csum_type csum_type = BTRFS_CSUM_TYPE_CRC32;
|
||||
u64 system_group_size;
|
||||
/* Options */
|
||||
bool force_overwrite = false;
|
||||
u64 runtime_features = BTRFS_MKFS_DEFAULT_RUNTIME_FEATURES;
|
||||
u64 features = BTRFS_MKFS_DEFAULT_FEATURES;
|
||||
enum btrfs_csum_type csum_type = BTRFS_CSUM_TYPE_CRC32;
|
||||
char fs_uuid[BTRFS_UUID_UNPARSED_SIZE] = { 0 };
|
||||
u32 nodesize = 0;
|
||||
bool nodesize_forced = false;
|
||||
u32 sectorsize = 0;
|
||||
u32 stripesize = 4096;
|
||||
u64 metadata_profile = 0;
|
||||
bool metadata_profile_opt = false;
|
||||
u64 data_profile = 0;
|
||||
bool data_profile_opt = false;
|
||||
u64 block_count = 0;
|
||||
u64 dev_block_count = 0;
|
||||
bool mixed = false;
|
||||
char *label = NULL;
|
||||
int nr_global_roots = sysconf(_SC_NPROCESSORS_ONLN);
|
||||
char *source_dir = NULL;
|
||||
bool source_dir_set = false;
|
||||
|
||||
crc32c_optimization_init();
|
||||
btrfs_config_init();
|
||||
|
Loading…
Reference in New Issue
Block a user