summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2012-07-25 14:06:02 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2012-07-25 14:06:02 +0200
commita05ac836412f1a9ebc6bc90fe611ff6808d6d844 (patch)
treee001ae8eb7e6b7576ed372a345643473c19083b5 /lib
parent1b607890203911a0f92e8f5d5f55e60b52d746ad (diff)
downloadlvm2-a05ac836412f1a9ebc6bc90fe611ff6808d6d844.tar.gz
lvm2-a05ac836412f1a9ebc6bc90fe611ff6808d6d844.tar.xz
lvm2-a05ac836412f1a9ebc6bc90fe611ff6808d6d844.zip
locking: clarify read-only locking error message
Diffstat (limited to 'lib')
-rw-r--r--lib/locking/no_locking.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/locking/no_locking.c b/lib/locking/no_locking.c
index cc57275c..76d8f1f7 100644
--- a/lib/locking/no_locking.c
+++ b/lib/locking/no_locking.c
@@ -74,7 +74,8 @@ static int _readonly_lock_resource(struct cmd_context *cmd,
(flags & LCK_SCOPE_MASK) == LCK_VG &&
!(flags & LCK_CACHE) &&
strcmp(resource, VG_GLOBAL)) {
- log_error("Write locks are prohibited with read-only locking.");
+ log_error("Read-only locking configured via global/locking_type setting. "
+ "Write locks are prohibited.");
return 0;
}