stable-2.02 - Revert "vgcreate/vgextend: restrict PVs with mixed block sizes"
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c37aa7881d840c429b858ee0068f0151e46ce0d9 Commit: c37aa7881d840c429b858ee0068f0151e46ce0d9 Parent: c65f3fd8dfaae6efd8529a846c6f2a9f604c440d Author: David Teigland <[email protected]> AuthorDate: Wed Oct 23 13:24:02 2019 -0500 Committer: David Teigland <[email protected]> CommitterDate: Wed Oct 23 13:25:25 2019 -0500
Revert "vgcreate/vgextend: restrict PVs with mixed block sizes"
This reverts commit a57b92dec396ac79c57e02e54c04e205aa85f084.
This can break existing usage, so it's not suitable for the stable branch.
--- lib/commands/toolcontext.h | 1 - lib/config/config_settings.h | 5 ---- lib/metadata/metadata-exported.h | 1 - lib/metadata/metadata.c | 44 ----------------------------------- tools/lvmcmdline.c | 2 - tools/toollib.c | 47 -------------------------------------- tools/vgcreate.c | 2 - 7 files changed, 0 insertions(+), 102 deletions(-)
lib/commands/toolcontext.h +0 -1
@@ -155,7 +155,6 @@ struct cmd_context { unsigned include_shared_vgs:1; /* report/display cmds can reveal lockd VGs */ unsigned include_active_foreign_vgs:1; /* cmd should process foreign VGs with active LVs */ unsigned vg_read_print_access_error:1; /* print access errors from vg_read */ - unsigned allow_mixed_block_sizes:1; unsigned force_access_clustered:1; unsigned lockd_gl_disable:1; unsigned lockd_vg_disable:1;
lib/config/config_settings.h +0 -5
@@ -470,11 +470,6 @@ cfg(devices_allow_changes_with_duplicate_pvs_CFG, "allow_changes_with_duplicate_ "Enabling this setting allows the VG to be used as usual even with\n" "uncertain devices.\n") -cfg(devices_allow_mixed_block_sizes_CFG, "allow_mixed_block_sizes", devices_CFG_SECTION, 0, CFG_TYPE_BOOL, 0, vsn(2, 3, 6), NULL, 0, NULL, - "Allow PVs in the same VG with different logical block sizes.\n" - "When allowed, the user is responsible to ensure that an LV is\n" - "using PVs with matching block sizes when necessary.\n") -cfg_array (allocation_cling_tag_list_CFG,"cling_tag_list" , allocation_CFG_SECTION,CFG_DEFAULT_UNDEFINED ,CFG_TYPE_STRING ,NULL ,vsn (2 ,2 ,77 ),NULL ,0 ,NULL ,"Advise LVM which PVs to use when searching for new space.\n" "When searching for free space to extend an LV, the 'cling' allocation\n"
lib/metadata/metadata-exported.h +0 -1
@@ -591,7 +591,6 @@ struct pvcreate_params { unsigned is_remove : 1; /* is removing PVs, not creating */ unsigned preserve_existing : 1; unsigned check_failed : 1; - unsigned check_consistent_block_size : 1; };struct lvresize_params {
lib/metadata/metadata.c +0 -44
62 lines not on this page · raw message
tools/lvmcmdline.c +0 -2
@@ -2306,8 +2306,6 @@ static int _get_current_settings(struct cmd_context *cmd)if (cmd->cname->flags &CAN_USE_ONE_SCAN ) cmd->can_use_one_scan =1 ; - cmd->allow_mixed_block_sizes =find_config_tree_bool (cmd, devices_allow_mixed_block_sizes_CFG,NULL ); - cmd->partial_activation =0 ; cmd->degraded_activation =0 ; activation_mode =find_config_tree_str (cmd, activation_mode_CFG,NULL );
tools/toollib.c +0 -47
59 lines not on this page · raw message
tools/vgcreate.c +0 -2
@@ -48,8 +48,6 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv)/* Don't create a new PV on top of an existing PV like pvcreate does. */ pp.preserve_existing =1 ; - pp.check_consistent_block_size =1 ; -if (!vgcreate_params_set_defaults (cmd, &vp_def,NULL ))return EINVALID_CMD_LINE ; vp_def.vg_name = vg_name;