1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-12 13:18:31 +03:00

Allow LV suspend while --ignorelockingfailure is in force.

This commit is contained in:
Petr Rockai 2009-08-02 21:03:09 +00:00
parent fd09a32d5e
commit d5ef8e037d
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.51 - Version 2.02.51 -
================================ ================================
Allow LV suspend while --ignorelockingfailure is in force.
Update synopsis in lvconvert manpage to mention --repair. Update synopsis in lvconvert manpage to mention --repair.
Set cookies in activation code and wait for udev to complete processing. Set cookies in activation code and wait for udev to complete processing.
Added configure --enable-udev_rules --enable-udev_sync. Added configure --enable-udev_rules --enable-udev_sync.

View File

@ -70,7 +70,8 @@ static int _readonly_lock_resource(struct cmd_context *cmd,
const char *resource, const char *resource,
uint32_t flags) 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."); log_error("Write locks are prohibited with --ignorelockingfailure.");
return 0; return 0;
} }