]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
vol: indent cpp definitions; add NAMEI_SPECDIRC
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 20 Jan 2011 06:31:41 +0000 (01:31 -0500)
committerDerrick Brashear <shadow@dementia.org>
Fri, 4 Feb 2011 21:51:44 +0000 (13:51 -0800)
Reviewed-on: http://gerrit.openafs.org/3697
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 5184261cde260f1aaf67a7cb2fea1b9ba3a4b2b0)

Change-Id: I7ab38f6df8892ca6c6e238e22847efdbaec45242
Reviewed-on: http://gerrit.openafs.org/3841
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vol/namei_ops.c

index 4e208497fc8bb620627fab9d0d44001a7b0c80e0..321d5f94929123149db57b282f911993220690a0 100644 (file)
@@ -158,36 +158,37 @@ namei_iwrite(IHandle_t * h, afs_foff_t offset, char *buf, afs_fsize_t size)
 
 #ifdef AFS_NT40_ENV
 /* Inode number format:
- * low 32 bits - if a regular file or directory, the vnode. Else the type.
- * 32-36 - unquifier tag and index into counts array for this vnode. Only
+ * low 32 bits - if a regular file or directory, the vnode; else the type.
+ * 32-36 - uniquifier tag and index into counts array for this vnode. Only
  *         two of the available bits are currently used. The rest are
  *         present in case we ever increase the number of types of volumes
  *         in the volume group.
  * bit 37 : 1  == special, 0 == regular
  */
-#define NAMEI_VNODEMASK    0x00ffffffff
-#define NAMEI_TAGSHIFT     32
-#define NAMEI_INODESPECIAL 0x2000000000
-#define NAMEI_SPECDIR "R"
-#else
+# define NAMEI_VNODEMASK    0x00ffffffff
+# define NAMEI_TAGSHIFT     32
+# define NAMEI_INODESPECIAL 0x2000000000
+# define NAMEI_SPECDIR "R"
+# define NAMEI_SPECDIRC 'R'
+#else /* !AFS_NT40_ENV */
 /* Inode number format:
  * low 26 bits - vnode number - all 1's if volume special file.
  * next 3 bits - tag
  * next 3 bits spare (0's)
  * high 32 bits - uniquifier (regular) or type if spare
  */
-#define NAMEI_VNODEMASK    0x003ffffff
-#define NAMEI_TAGSHIFT     26
-#define NAMEI_UNIQMASK     0xffffffff
-#define NAMEI_UNIQSHIFT    32
-#define NAMEI_INODESPECIAL ((Inode)NAMEI_VNODEMASK)
+# define NAMEI_VNODEMASK    0x003ffffff
+# define NAMEI_TAGSHIFT     26
+# define NAMEI_UNIQMASK     0xffffffff
+# define NAMEI_UNIQSHIFT    32
+# define NAMEI_INODESPECIAL ((Inode)NAMEI_VNODEMASK)
 /* dir1 is the high 8 bits of the 26 bit vnode */
-#define VNO_DIR1(vno) ((vno >> 14) & 0xff)
+# define VNO_DIR1(vno) ((vno >> 14) & 0xff)
 /* dir2 is the next 9 bits */
-#define VNO_DIR2(vno) ((vno >> 9) & 0x1ff)
+# define VNO_DIR2(vno) ((vno >> 9) & 0x1ff)
 /* "name" is the low 9 bits of the vnode, the 3 bit tag and the uniq */
-#define NAMEI_SPECDIR "special"
-#endif
+# define NAMEI_SPECDIR "special"
+#endif /* !AFS_NT40_ENV */
 #define NAMEI_TAGMASK      0x7
 #define NAMEI_VNODESPECIAL NAMEI_VNODEMASK