mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Update vgsplit to call vg_set_clustered().
This commit is contained in:
parent
dfe786c218
commit
fc7ad9d4c7
@ -1,5 +1,8 @@
|
||||
Version 2.02.55 -
|
||||
===================================
|
||||
Update vgsplit and vgcreate to use vg_set_clustered.
|
||||
Add vg_mda_count and vg_set_clustered library function.
|
||||
Add more vgcreate and vgsplit nightly tests.
|
||||
Insert some missing stack macros into activation code.
|
||||
Recognise DRBD device part and handle it similar to MD devices.
|
||||
|
||||
|
@ -371,7 +371,7 @@ int vgsplit(struct cmd_context *cmd, int argc, char **argv)
|
||||
vp_def.max_pv = vg_from->max_pv;
|
||||
vp_def.max_lv = vg_from->max_lv;
|
||||
vp_def.alloc = vg_from->alloc;
|
||||
vp_def.clustered = DEFAULT_CLUSTERED;
|
||||
vp_def.clustered = vg_is_clustered(vg_from);
|
||||
|
||||
if (fill_vg_create_params(cmd, vg_name_to, &vp_new, &vp_def)) {
|
||||
r = EINVALID_CMD_LINE;
|
||||
@ -386,11 +386,9 @@ int vgsplit(struct cmd_context *cmd, int argc, char **argv)
|
||||
if (!vg_set_extent_size(vg_to, vp_new.extent_size) ||
|
||||
!vg_set_max_lv(vg_to, vp_new.max_lv) ||
|
||||
!vg_set_max_pv(vg_to, vp_new.max_pv) ||
|
||||
!vg_set_alloc_policy(vg_to, vp_new.alloc))
|
||||
!vg_set_alloc_policy(vg_to, vp_new.alloc) ||
|
||||
!vg_set_clustered(vg_to, vp_new.clustered))
|
||||
goto_bad;
|
||||
|
||||
if (vg_is_clustered(vg_from))
|
||||
vg_to->status |= CLUSTERED;
|
||||
}
|
||||
|
||||
/* Archive vg_from before changing it */
|
||||
|
Loading…
Reference in New Issue
Block a user