diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-04-24 12:17:12 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-04-24 12:17:12 +0000 |
commit | d057cc445df5b518a1988a8dcad32fd93376e306 (patch) | |
tree | a217238f6b36265e10268aa8503c9c9d5fb7d902 | |
parent | d614e1f4476ccee02b79941fc57d41f08e618750 (diff) | |
download | lvm2-d057cc445df5b518a1988a8dcad32fd93376e306.tar.gz |
Add some lock comments
-rw-r--r-- | lib/locking/locking.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/locking/locking.h b/lib/locking/locking.h index 0e13e8ab2..23c312d8e 100644 --- a/lib/locking/locking.h +++ b/lib/locking/locking.h @@ -67,13 +67,13 @@ int check_lvm1_vg_inactive(struct cmd_context *cmd, const char *vgname); */ #define LCK_TYPE_MASK 0x00000007U -#define LCK_NULL 0x00000000U /* LCK$_NLMODE */ -#define LCK_READ 0x00000001U /* LCK$_CRMODE */ +#define LCK_NULL 0x00000000U /* LCK$_NLMODE (Deactivate) */ +#define LCK_READ 0x00000001U /* LCK$_CRMODE (Activate) */ /* LCK$_CWMODE */ #define LCK_PREAD 0x00000003U /* LCK$_PRMODE */ -#define LCK_WRITE 0x00000004U /* LCK$_PWMODE */ -#define LCK_EXCL 0x00000005U /* LCK$_EXMODE */ -#define LCK_UNLOCK 0x00000006U /* This is ours */ +#define LCK_WRITE 0x00000004U /* LCK$_PWMODE (Suspend) */ +#define LCK_EXCL 0x00000005U /* LCK$_EXMODE (Exclusive) */ +#define LCK_UNLOCK 0x00000006U /* This is ours (Resume) */ /* * Lock flags - these numbers are the same as DLM |