]> sourceware.org Git - lvm2.git/commitdiff
Add some lock comments
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 24 Apr 2012 12:17:12 +0000 (12:17 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 24 Apr 2012 12:17:12 +0000 (12:17 +0000)
lib/locking/locking.h

index 0e13e8ab24cf8c13f5e64bb6c533e4902498e421..23c312d8e7040f921137743275284d47b98132a7 100644 (file)
@@ -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
This page took 0.033393 seconds and 5 git commands to generate.