Changeset 85d32df7 in mainline
- Timestamp:
- 2011-03-01T19:29:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77870e30
- Parents:
- a6e094f
- Location:
- uspace/srv/fs/minixfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_const.h
ra6e094f r85d32df7 37 37 #include <sys/types.h> 38 38 39 #define MFS_ROOT_INO 1 40 39 41 #define V2_NR_DIRECT_ZONES 7 40 42 #define V2_NR_INDIRECT_ZONES 3 43 44 #define V1_NR_DIRECT_ZONES 7 45 #define V1_NR_INDIRECT_ZONES 2 41 46 42 47 #endif -
uspace/srv/fs/minixfs/mfs_inode.h
ra6e094f r85d32df7 37 37 #include "mfs_const.h" 38 38 39 /*Declaration of the MinixFS V2 inode as it is on disk.*/ 39 /*MinixFS V1 inode structure as it is on disk*/ 40 struct mfs_v1_inode { 41 uint16_t i_mode; 42 int16_t i_uid; 43 int32_t i_size; 44 int32_t i_mtime; 45 uint8_t i_gid; 46 uint8_t i_nlinks; 47 /*Block numbers for direct zones*/ 48 uint16_t i_dzone[V1_NR_DIRECT_ZONES]; 49 /*Block numbers for indirect zones*/ 50 uint16_t i_izone[V1_NR_INDIRECT_ZONES]; 51 } __attribute__ ((packed)); 40 52 53 /*MinixFS V2 inode structure as it is on disk.*/ 41 54 struct mfs_v2_inode { 42 55 uint16_t i_mode; … … 49 62 int32_t i_ctime; 50 63 /*Block numbers for direct zones*/ 51 uint32_t dzone[V2_NR_DIRECT_ZONES];64 uint32_t i_dzone[V2_NR_DIRECT_ZONES]; 52 65 /*Block numbers for indirect zones*/ 53 uint32_t i zone[V2_NR_INDIRECT_ZONES];66 uint32_t i_izone[V2_NR_INDIRECT_ZONES]; 54 67 } __attribute__ ((packed)); 55 68
Note:
See TracChangeset
for help on using the changeset viewer.