#define DEFAULT_STRIPESIZE 64 /* KB */
#define DEFAULT_PVMETADATASIZE 255
#define DEFAULT_PVMETADATACOPIES 1
+#define DEFAULT_VGMETADATACOPIES 0
#define DEFAULT_LABELSECTOR UINT64_C(1)
#define DEFAULT_READ_AHEAD "auto"
#define DEFAULT_UDEV_RULES 1
* 0 for success else appropriate FAILURE_* bits set.
*/
uint32_t read_status;
+ uint32_t mda_copies; /* target number of mdas for this VG */
};
/* There will be one area for each stripe */
size_t max_lv;
alloc_policy_t alloc;
int clustered; /* FIXME: put this into a 'status' variable instead? */
+ uint32_t metadata_copies;
};
int vgcreate_params_validate(struct cmd_context *cmd,
vg->max_pv = DEFAULT_MAX_PV;
vg->alloc = DEFAULT_ALLOC_POLICY;
+ vg->mda_copies = DEFAULT_VGMETADATACOPIES;
vg->pv_count = 0;
dm_list_init(&vg->pvs);
vp_def->max_lv = vg->max_lv;
vp_def->alloc = vg->alloc;
vp_def->clustered = vg_is_clustered(vg);
+ vp_def->metadata_copies = vg->mda_copies;
} else {
vp_def->vg_name = NULL;
vp_def->extent_size = DEFAULT_EXTENT_SIZE * 2;
vp_def->max_lv = DEFAULT_MAX_LV;
vp_def->alloc = DEFAULT_ALLOC_POLICY;
vp_def->clustered = DEFAULT_CLUSTERED;
+ vp_def->metadata_copies = DEFAULT_VGMETADATACOPIES;
}
}