diff --git a/WHATS_NEW b/WHATS_NEW index 234bf6b39..f20b42be4 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.51 - ================================ + Allow LV suspend while --ignorelockingfailure is in force. Update synopsis in lvconvert manpage to mention --repair. Set cookies in activation code and wait for udev to complete processing. Added configure --enable-udev_rules --enable-udev_sync. diff --git a/lib/locking/no_locking.c b/lib/locking/no_locking.c index 5cbb692f8..583ab5c26 100644 --- a/lib/locking/no_locking.c +++ b/lib/locking/no_locking.c @@ -70,7 +70,8 @@ static int _readonly_lock_resource(struct cmd_context *cmd, const char *resource, uint32_t flags) { - if ((flags & LCK_TYPE_MASK) == LCK_WRITE) { + if ((flags & LCK_TYPE_MASK) == LCK_WRITE && + (flags & LCK_SCOPE_MASK) == LCK_VG) { log_error("Write locks are prohibited with --ignorelockingfailure."); return 0; }