1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/daemons/clvmd
Milan Broz 586b56b18c Fix wrong use of LCK_WRITE
In all top vg read functions only LCK_VG_READ/WRITE can be used.
All other vg lock definitions are low-level backend machinery.

Moreover, LCK_WRITE cannot be tested through bitmask.
This patch fixes these mistakes.

For _recover_vg() we do not need lock_flags, it can be only
two of above and we always upgrading to LCK_VG_WRITE lock there.
(N.B. that code is racy)

There is no functional change in code (despite wrong masking
it produces correct bits:-)
2010-08-19 23:26:31 +00:00
..
clvm.h Change clvmd to communicate with lvm via a socket in /var/run/lvm. (mbroz) 2010-07-28 13:55:42 +00:00
clvmd-cman.c Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
clvmd-command.c Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
clvmd-common.h Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
clvmd-comms.h Avoid duplicate definitions. 2010-03-23 14:35:08 +00:00
clvmd-corosync.c Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
clvmd-gulm.c Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
clvmd-gulm.h Clean up cluster lock mode and flags definition. 2010-06-17 12:48:54 +00:00
clvmd-openais.c Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
clvmd-singlenode.c Fix wrong use of LCK_WRITE 2010-08-19 23:26:31 +00:00
clvmd.c Allow internal suspend and resume of origin without its snapshots. 2010-08-17 16:25:32 +00:00
clvmd.h Change clvmd to communicate with lvm via a socket in /var/run/lvm. (mbroz) 2010-07-28 13:55:42 +00:00
lvm-functions.c Use 'SINGLENODE' instead of 'dead' in clvmd singlenode messages. 2010-08-17 19:25:05 +00:00
lvm-functions.h Allow internal suspend and resume of origin without its snapshots. 2010-08-17 16:25:32 +00:00
Makefile.in INSTALL rules updates 2010-04-09 21:42:48 +00:00
refresh_clvmd.c Fix another segfault in clvmd -R if no response from daemon received. 2010-07-01 21:46:09 +00:00
refresh_clvmd.h Add -S command to clvmd, so it can restart itself and still 2010-04-20 14:07:37 +00:00
tcp-comms.c Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
tcp-comms.h Fix clvmd if compiled with gulm support. (2.02.26) 2007-07-24 15:35:11 +00:00