1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Mask LCK_HOLD flag in cluster VG locks for compatibility reasons.

This commit is contained in:
Milan Broz 2010-04-13 14:36:24 +00:00
parent a2263de0a3
commit e4594d9c23
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.63 -
================================
Mask LCK_HOLD flag in cluster VG locks for compatibility reasons.
Add activation/polling_interval to lvm.conf as --interval default.
Don't ignore error if resuming any LV fails in resume_lvs.
Skip closing persistent filter cache file if open failed.

View File

@ -415,6 +415,13 @@ int lock_resource(struct cmd_context *cmd, const char *resource, uint32_t flags)
lock_scope = "VG";
clvmd_cmd = CLVMD_CMD_LOCK_VG;
/*
* Old clvmd does not expect LCK_HOLD which was already processed
* in lock_vol, mask it for compatibility reasons.
*/
if (flags != LCK_VG_COMMIT && flags != LCK_VG_REVERT)
flags &= ~LCK_HOLD;
break;
case LCK_LV: