diff options
author | David Teigland <teigland@redhat.com> | 2018-01-09 11:46:00 -0600 |
---|---|---|
committer | Marian Csontos <mcsontos@redhat.com> | 2018-01-22 19:32:30 +0100 |
commit | 599ec3dafea034dfafe0d897a8d591f0d07bd016 (patch) | |
tree | 0dc751136682795461529b012e58a175d0499fb9 | |
parent | 8a5e0083200db4b8d1ee2d4e95079372e75fd750 (diff) | |
download | lvm2-599ec3dafea034dfafe0d897a8d591f0d07bd016.tar.gz |
lvmlockd: print warning when skipping locking
(cherry picked from commit 51340888aab5e1b8630c7d8083e621ca0f4e4264)
-rw-r--r-- | tools/lvmcmdline.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c index 791e27206..6be4bcd69 100644 --- a/tools/lvmcmdline.c +++ b/tools/lvmcmdline.c @@ -2684,12 +2684,18 @@ static int _init_lvmlockd(struct cmd_context *cmd) if (use_lvmlockd && arg_is_set(cmd, lockopt_ARG)) { const char *opts = arg_str_value(cmd, lockopt_ARG, ""); - if (strstr(opts, "skiplv")) + if (strstr(opts, "skiplv")) { + log_warn("WARNING: skipping LV lock in lvmlockd."); cmd->lockd_lv_disable = 1; - if (strstr(opts, "skipvg")) + } + if (strstr(opts, "skipvg")) { + log_warn("WARNING: skipping VG lock in lvmlockd."); cmd->lockd_vg_disable = 1; - if (strstr(opts, "skipgl")) + } + if (strstr(opts, "skipgl")) { + log_warn("WARNING: skipping global lock in lvmlockd."); cmd->lockd_gl_disable = 1; + } } if (use_lvmlockd && locking_is_clustered()) { |