PERFORCE change 164357 for review

Aditya Sarawgi truncs at FreeBSD.org
Sun Jun 14 17:44:19 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=164357

Change 164357 by truncs at aditya on 2009/06/14 17:44:16

	Renaming to new inode flags. The current implementation uses only the immutable and append flag and the rest are to maintain compatibility 
	with linux.

Affected files ...

.. //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_fs.h#21 edit
.. //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_inode_cnv.c#6 edit

Differences ...

==== //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_fs.h#21 (text+ko) ====

@@ -234,6 +234,7 @@
 
 /*
  * Inode flags
+ * The current implementation uses only EXT2_IMMUTABLE and EXT2_APPEND flags
  */
 #define EXT2_SECRM		0x00000001	/* Secure deletion */
 #define EXT2_UNRM		0x00000002	/* Undelete */

==== //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_inode_cnv.c#6 (text+ko) ====

@@ -83,8 +83,8 @@
 	ip->i_mtime = ei->e2di_mtime;
 	ip->i_ctime = ei->e2di_ctime;
 	ip->i_flags = 0;
-	ip->i_flags |= (ei->e2di_flags & EXT2_APPEND_FL) ? SF_APPEND : 0;
-	ip->i_flags |= (ei->e2di_flags & EXT2_IMMUTABLE_FL) ? SF_IMMUTABLE : 0;
+	ip->i_flags |= (ei->e2di_flags & EXT2_APPEND) ? SF_APPEND : 0;
+	ip->i_flags |= (ei->e2di_flags & EXT2_IMMUTABLE) ? SF_IMMUTABLE : 0;
 	ip->i_blocks = ei->e2di_nblock;
 	ip->i_gen = ei->e2di_gen;
 	ip->i_uid = ei->e2di_uid;
@@ -121,8 +121,8 @@
 	ei->e2di_ctime = ip->i_ctime;
 	ei->e2di_flags = ip->i_flags;
 	ei->e2di_flags = 0;
-	ei->e2di_flags |= (ip->i_flags & SF_APPEND) ? EXT2_APPEND_FL: 0;
-	ei->e2di_flags |= (ip->i_flags & SF_IMMUTABLE) ? EXT2_IMMUTABLE_FL: 0;
+	ei->e2di_flags |= (ip->i_flags & SF_APPEND) ? EXT2_APPEND: 0;
+	ei->e2di_flags |= (ip->i_flags & SF_IMMUTABLE) ? EXT2_IMMUTABLE: 0;
 	ei->e2di_nblock = ip->i_blocks;
 	ei->e2di_gen = ip->i_gen;
 	ei->e2di_uid = ip->i_uid;


More information about the p4-projects mailing list