mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-28 02:50:41 +03:00
Make lock type numbers match the DLM numbers in use, and move UNLOCK out
of the way.
This commit is contained in:
parent
8856889d10
commit
ae70673752
@ -25,13 +25,17 @@ void fin_locking(void);
|
||||
int lock_vol(struct cmd_context *cmd, const char *vol, int flags);
|
||||
|
||||
/*
|
||||
* Lock type
|
||||
* Lock type - these numbers are the same as VMS and the IBM DLM
|
||||
*/
|
||||
#define LCK_TYPE_MASK 0x000000FF
|
||||
#define LCK_UNLOCK 0x00000000
|
||||
#define LCK_READ 0x00000001
|
||||
#define LCK_WRITE 0x00000002
|
||||
#define LCK_EXCL 0x00000003
|
||||
|
||||
#define LCK_NULL 0x00000000 /* LCK$_NLMODE */
|
||||
#define LCK_READ 0x00000001 /* LCK$_CRMODE */
|
||||
/* LCK$_CWMODE */
|
||||
/* LCK$_PRMODE */
|
||||
#define LCK_WRITE 0x00000004 /* LCK$_PWMODE */
|
||||
#define LCK_EXCL 0x00000005 /* LCK$_EXMODE */
|
||||
#define LCK_UNLOCK 0x00000010 /* This is ours */
|
||||
|
||||
/*
|
||||
* Lock scope
|
||||
|
Loading…
x
Reference in New Issue
Block a user