]> sourceware.org Git - lvm2.git/commitdiff
lvmlockd: improve activation locking error message
authorDavid Teigland <teigland@redhat.com>
Fri, 22 Jul 2016 19:50:33 +0000 (14:50 -0500)
committerDavid Teigland <teigland@redhat.com>
Fri, 22 Jul 2016 19:50:33 +0000 (14:50 -0500)
to include the LV type

lib/locking/lvmlockd.c

index e0254289e1372096dd69bd454f5d5c7660a3cb71..03d001497f79e1a722194d0df16b33a16c6960ce 100644 (file)
@@ -1971,8 +1971,9 @@ int lockd_lv_name(struct cmd_context *cmd, struct volume_group *vg,
                mode = def_mode;
 
        if (mode && !strcmp(mode, "sh") && (flags & LDLV_MODE_NO_SH)) {
-               log_error("Shared activation not compatible with LV type: %s/%s",
-                         vg->name, lv_name);
+               struct logical_volume *lv = find_lv(vg, lv_name);
+               log_error("Shared activation not compatible with LV type %s of %s/%s",
+                         lv ? lvseg_name(first_seg(lv)) : "", vg->name, lv_name);
                return 0;
        }
 
This page took 0.037791 seconds and 5 git commands to generate.