Skip to contentSkip to conversation

master - lockd: remove unused code for overriding lock modes

PATCH David Teigland 1 participant 1 message Jul 6, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e1733a6271fc0a270bcb5bd2a4b43b62e4a1ddd0
Commit:        e1733a6271fc0a270bcb5bd2a4b43b62e4a1ddd0
Parent:        114744cee1488112f51c49cbe71366ce8bfbd3ea
Author:        David Teigland <[email protected]>
AuthorDate:    Mon Jul 6 11:31:21 2015 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Mon Jul 6 11:44:28 2015 -0500

lockd: remove unused code for overriding lock modes

including the allow_override_lock_modes setting.

It was not possible to override default lock modes any longer, since the command line options had already been removed.

A mechanism will probably be required later that puts part of this back.

---
 lib/commands/toolcontext.h   |    5 --
 lib/config/config_settings.h |    3 -
 lib/locking/lvmlockd.c       |  120 +-----------------------------------------
 3 files changed, 1 insertions(+), 127 deletions(-)
lib/commands/toolcontext.h +0 -5
index 5e43dd8..283783f 100644
@@ -149,11 +149,6 @@ struct cmd_context {
 	const char *report_list_item_separator;
 	int hosttags;
 
-	/* Locking */
-	const char *lock_gl_mode; /* gl mode, from --lock-gl */
-	const char *lock_vg_mode; /* vg mode, from --lock-vg */
-	const char *lock_lv_mode; /* lv mode, from --lock-lv */
-
 	const char *lib_dir;		/* Cache value global/library_dir */
 	char system_dir[PATH_MAX];
 	char dev_dir[PATH_MAX];
lib/config/config_settings.h +0 -3
index 16fd0bd..b300b3a 100644
@@ -845,9 +845,6 @@ cfg(global_sanlock_lv_extend_CFG, "sanlock_lv_extend", global_CFG_SECTION, CFG_D
 	"the amount specified here.  Setting this to 0 disables the\n"
 	"automatic extension and can cause lvcreate to fail.\n")
 
-cfg(global_allow_override_lock_modes_CFG, "allow_override_lock_modes", global_CFG_SECTION, 0, CFG_TYPE_BOOL, 0, vsn(2, 2, 124), NULL, 0, NULL,
-	"Allow command options to override normal locking.\n")
-
 cfg(global_read_only_lock_modes_CFG, "read_only_lock_modes", global_CFG_SECTION, 0, CFG_TYPE_BOOL, 0, vsn(2, 2, 124), NULL, 0, NULL,
 	"Limit commands to actions that use read locks.\n"
 	"This disallows any actions that require a write (exclusive) lock.\n")
lib/locking/lvmlockd.c +1 -119

192 lines not on this page · raw message