lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since e2ad8e4 was e2ad8e4, checked in by Maurizio Lombardi <m.lombardi85@…>, 14 years ago |
Add MinixFS superblock structure definition.
|
-
Property mode
set to
100644
|
File size:
675 bytes
|
Line | |
---|
1 | #ifndef _MFS_INODE_H_
|
---|
2 | #define _MFS_INODE_H_
|
---|
3 |
|
---|
4 | #include "mfs_const.h"
|
---|
5 |
|
---|
6 | /*Declaration of the V2 inode as it is on disk.*/
|
---|
7 |
|
---|
8 | struct mfs_v2_inode {
|
---|
9 | uint16_t mode; /*File type, protection, etc.*/
|
---|
10 | uint16_t n_links; /*How many links to this file.*/
|
---|
11 | int16_t uid; /*User id of the file owner.*/
|
---|
12 | uint16_t gid; /*Group number.*/
|
---|
13 | int32_t size; /*Current file size in bytes.*/
|
---|
14 | int32_t atime; /*When was file data last accessed.*/
|
---|
15 | int32_t mtime; /*When was file data last changed.*/
|
---|
16 | int32_t ctime; /*When was inode data last changed.*/
|
---|
17 | /*Block nums for direct, indirect, and double indirect zones.*/
|
---|
18 | uint32_t zone[V2_NR_TZONES];
|
---|
19 | } __attribute__ ((packed));
|
---|
20 |
|
---|
21 | #endif
|
---|
22 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.