PERFORCE change 166820 for review
Aditya Sarawgi
truncs at FreeBSD.org
Thu Jul 30 18:19:25 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=166820
Change 166820 by truncs at aditya on 2009/07/30 18:18:27
Move the on disk inode to new header to make it look cleaner.
Affected files ...
.. //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_dinode.h#1 add
.. //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_dir.h#3 edit
.. //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_fs.h#31 edit
.. //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_inode_cnv.c#7 edit
Differences ...
==== //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_dir.h#3 (text+ko) ====
@@ -77,4 +77,5 @@
#define EXT2_DIR_ROUND (EXT2_DIR_PAD - 1)
#define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \
~EXT2_DIR_ROUND)
-#endif
+#endif /* !_SYS_GNU_EXT2FS_EXT2_DIR_H_ */
+
==== //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_fs.h#31 (text+ko) ====
@@ -193,56 +193,6 @@
#define EXT2_MAXSYMLINKLEN (EXT2_N_BLOCKS * sizeof (uint32_t))
/*
- * Inode flags
- * The current implementation uses only EXT2_IMMUTABLE and EXT2_APPEND flags
- */
-#define EXT2_SECRM 0x00000001 /* Secure deletion */
-#define EXT2_UNRM 0x00000002 /* Undelete */
-#define EXT2_COMPR 0x00000004 /* Compress file */
-#define EXT2_SYNC 0x00000008 /* Synchronous updates */
-#define EXT2_IMMUTABLE 0x00000010 /* Immutable file */
-#define EXT2_APPEND 0x00000020 /* writes to file may only append */
-#define EXT2_NODUMP 0x00000040 /* do not dump file */
-#define EXT2_NOATIME 0x00000080 /* do not update atime */
-
-
-/*
- * Structure of an inode on the disk
- */
-struct ext2fs_dinode {
- u_int16_t e2di_mode; /* 0: IFMT, permissions; see below. */
- u_int16_t e2di_uid; /* 2: Owner UID */
- u_int32_t e2di_size; /* 4: Size (in bytes) */
- u_int32_t e2di_atime; /* 8: Acces time */
- u_int32_t e2di_ctime; /* 12: Create time */
- u_int32_t e2di_mtime; /* 16: Modification time */
- u_int32_t e2di_dtime; /* 20: Deletion time */
- u_int16_t e2di_gid; /* 24: Owner GID */
- u_int16_t e2di_nlink; /* 26: File link count */
- u_int32_t e2di_nblock; /* 28: Blocks count */
- u_int32_t e2di_flags; /* 32: Status flags (chflags) */
- u_int32_t e2di_linux_reserved1; /* 36 */
- u_int32_t e2di_blocks[EXT2_N_BLOCKS]; /* 40: disk blocks */
- u_int32_t e2di_gen; /* 100: generation number */
- u_int32_t e2di_facl; /* 104: file ACL (not implemented) */
- u_int32_t e2di_dacl; /* 108: dir ACL (not implemented) */
- u_int32_t e2di_faddr; /* 112: fragment address */
- u_int8_t e2di_nfrag; /* 116: fragment number */
- u_int8_t e2di_fsize; /* 117: fragment size */
- u_int16_t e2di_linux_reserved2; /* 118 */
- u_int16_t e2di_uid_high; /* 120: Owner UID top 16 bits */
- u_int16_t e2di_gid_high; /* 122: Owner GID top 16 bits */
- u_int32_t e2di_linux_reserved3; /* 124 */
-};
-
-
-
-#define e2di_size_high e2di_dacl
-
-
-
-
-/*
* Super block for an ext2fs file system.
*/
struct ext2fs {
==== //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_inode_cnv.c#7 (text+ko) ====
@@ -34,6 +34,7 @@
#include <gnu/fs/ext2fs/inode.h>
#include <gnu/fs/ext2fs/ext2_fs.h>
#include <gnu/fs/ext2fs/ext2_extern.h>
+#include <gnu/fs/ext2fs/ext2_dinode.h>
void
ext2_print_inode( in )
More information about the p4-projects
mailing list