commit e6879a36ab0aee4549093eb1927d652df1d2c04f
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date: Thu May 24 23:24:55 2007 -0400
added comments for odf special filenames constants and grouped them together
diff --git a/fs/unionfs/odf.c b/fs/unionfs/odf.c
index
70bd9c3e820b1ad4c0047283b39f5171bad88e59..d49247fe951795dbaecd9aadaab4bdcb5eeade93
100644
--- a/fs/unionfs/odf.c
+++ b/fs/unionfs/odf.c
@@ -61,7 +61,7 @@ int __odf_create_hierarchy(struct dentry
goto out;
}
dput(dentry);
- dentry = lookup_one_len(ODF_WH_NAME, odf_root, ODF_WH_LEN);
+ dentry = lookup_one_len(ODF_WH, odf_root, sizeof(ODF_WH) - 1);
if (IS_ERR(dentry)) {
err = PTR_ERR(dentry);
dentry = NULL;
@@ -164,7 +164,7 @@ struct odf_sb_info* odf_read_super(char
goto out_free;
}
- osi->whiteout = lookup_one_len(ODF_WH_NAME, nd.dentry, ODF_WH_LEN);
+ osi->whiteout = lookup_one_len(ODF_WH, nd.dentry, sizeof(ODF_WH) - 1);
if (IS_ERR(osi->whiteout)) {
err = PTR_ERR(osi->whiteout);
osi->whiteout = NULL;
diff --git a/fs/unionfs/odf.h b/fs/unionfs/odf.h
index
6c20820873b6c91048e6cdbcbadc35d23b3ed10e..c1287567cd1092cf280376d488783d308701b956
100644
--- a/fs/unionfs/odf.h
+++ b/fs/unionfs/odf.h
@@ -4,11 +4,15 @@ #define _ODF_H_
#define UUID_LEN 16
#define ODF_VERSION 2
-#define ODF_SB "sb"
-#define ODF_IC "ic"
-#define ODF_RC "reclaim"
-#define ODF_NS "ns"
-#define ODF_SR "sr"
+/* odf special filenames/dirnames */
+#define ODF_SB "sb" /* odf superblock file (/odf/sb) */
+#define ODF_IC "ic" /* inode cache dir (/odf/ic) */
+#define ODF_RC "reclaim" /* reclaim dir (/odf/reclaim) */
+#define ODF_NS "ns" /* namespace dir (/odf/ns) */
+#define ODF_SR "sr" /* sily rename dir (/odf/sr) */
+#define ODF_WH "whiteout" /* the file whiteouts are linked to */
+#define ODF_CONTENT "content" /* name of cached dirs file in /odf/ic */
+#define ODF_CONTENT_LEN (sizeof(ODF_CONTENT) - 1)
/* Some string constants */
#define ODF_BRANCH_PATH 255
@@ -31,12 +35,6 @@ #define ODF_RMV_ANY (ODF_RMV_WH|ODF_RMV_
#define ODF_DIRENT_MAGIC 0x0DFD1300
-/* special filenames */
-#define ODF_CONTENT "content"
-#define ODF_CONTENT_LEN 7
-#define ODF_WH_NAME "whiteout"
-#define ODF_WH_LEN 8
-
#define ODF_CLEAN_ALL 1
#define ODF_CLEAN_CACHE 2
#define ODF_CLEAN_INODES 3
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs