mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmlockd: improve error message for existing lockspace
When a VG/lockspace already exists with the same name don't just print the error number.
This commit is contained in:
parent
caa600a409
commit
06b2e5c176
@ -548,6 +548,9 @@ static int _init_vg_dlm(struct cmd_context *cmd, struct volume_group *vg)
|
||||
case -EPROTONOSUPPORT:
|
||||
log_error("VG %s init failed: lock manager dlm is not supported by lvmlockd", vg->name);
|
||||
break;
|
||||
case -EEXIST:
|
||||
log_error("VG %s init failed: a lockspace with the same name exists", vg->name);
|
||||
break;
|
||||
default:
|
||||
log_error("VG %s init failed: %d", vg->name, result);
|
||||
}
|
||||
@ -671,6 +674,9 @@ static int _init_vg_sanlock(struct cmd_context *cmd, struct volume_group *vg, in
|
||||
case -EMSGSIZE:
|
||||
log_error("VG %s init failed: no disk space for leases", vg->name);
|
||||
break;
|
||||
case -EEXIST:
|
||||
log_error("VG %s init failed: a lockspace with the same name exists", vg->name);
|
||||
break;
|
||||
default:
|
||||
log_error("VG %s init failed: %d", vg->name, result);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user