diff options
author | Milan Broz <mbroz@redhat.com> | 2010-01-22 09:45:29 +0000 |
---|---|---|
committer | Milan Broz <mbroz@redhat.com> | 2010-01-22 09:45:29 +0000 |
commit | 98d85f25be6ac4c999ba3c237f46a809e8ccf287 (patch) | |
tree | aa224a5a2012bb291901a5d0a0f82ee4e5be6879 /lib/locking/no_locking.c | |
parent | 59dd86581a64e9f8ecf88d76733dfafe5bc8a026 (diff) | |
download | lvm2-98d85f25be6ac4c999ba3c237f46a809e8ccf287.tar.gz lvm2-98d85f25be6ac4c999ba3c237f46a809e8ccf287.tar.xz lvm2-98d85f25be6ac4c999ba3c237f46a809e8ccf287.zip |
Move error message to locking constructor and print
more descriptive message if locking fails instead of
"Locking type -1 initialisation failed."
Use read-only locking instead of misleading ignorelocking option
in message.
Diffstat (limited to 'lib/locking/no_locking.c')
-rw-r--r-- | lib/locking/no_locking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/locking/no_locking.c b/lib/locking/no_locking.c index 85374b33..9de143b3 100644 --- a/lib/locking/no_locking.c +++ b/lib/locking/no_locking.c @@ -72,7 +72,7 @@ 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 --ignorelockingfailure."); + log_error("Write locks are prohibited with read-only locking."); return 0; } |