1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

lvmlockd: improve activation locking error message

to include the LV type
This commit is contained in:
David Teigland 2016-07-22 14:50:33 -05:00
parent 2c3b92b550
commit f6acf922e6

View 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;
}