master - locking: clarify read-only locking error message
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a05ac836412f1a9ebc6bc90fe611ff6808d6d844 Commit: a05ac836412f1a9ebc6bc90fe611ff6808d6d844 Parent: 1b607890203911a0f92e8f5d5f55e60b52d746ad Author: Peter Rajnoha <[email protected]> AuthorDate: Wed Jul 25 14:06:02 2012 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Wed Jul 25 14:06:02 2012 +0200
locking: clarify read-only locking error message
--- lib/locking/no_locking.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
lib/locking/no_locking.c +2 -1
@@ -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 ; }