]> sourceware.org Git - lvm2.git/commitdiff
lvmlockd: print warning when skipping locking
authorDavid Teigland <teigland@redhat.com>
Tue, 9 Jan 2018 17:46:00 +0000 (11:46 -0600)
committerDavid Teigland <teigland@redhat.com>
Tue, 9 Jan 2018 17:46:00 +0000 (11:46 -0600)
tools/lvmcmdline.c

index 791e27206437801335ef44477b0a4bdde2174085..6be4bcd6912677233f20ebc3e022ea8d4bd50950 100644 (file)
@@ -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()) {
This page took 0.041701 seconds and 5 git commands to generate.