mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
locking: clarify read-only locking error message v2
This commit is contained in:
parent
a05ac83641
commit
81e89c0647
@ -74,7 +74,7 @@ static int _readonly_lock_resource(struct cmd_context *cmd,
|
|||||||
(flags & LCK_SCOPE_MASK) == LCK_VG &&
|
(flags & LCK_SCOPE_MASK) == LCK_VG &&
|
||||||
!(flags & LCK_CACHE) &&
|
!(flags & LCK_CACHE) &&
|
||||||
strcmp(resource, VG_GLOBAL)) {
|
strcmp(resource, VG_GLOBAL)) {
|
||||||
log_error("Read-only locking configured via global/locking_type setting. "
|
log_error("Read-only locking type set. "
|
||||||
"Write locks are prohibited.");
|
"Write locks are prohibited.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user