lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 7de65cd was e2ad8e4, checked in by Maurizio Lombardi <m.lombardi85@…>, 15 years ago |
|
Add MinixFS superblock structure definition.
|
-
Property mode
set to
100644
|
|
File size:
675 bytes
|
| Rev | Line | |
|---|
| [e2ad8e4] | 1 | #ifndef _MFS_INODE_H_
|
|---|
| 2 | #define _MFS_INODE_H_
|
|---|
| [657ab26] | 3 |
|
|---|
| [c2eef61c] | 4 | #include "mfs_const.h"
|
|---|
| [657ab26] | 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];
|
|---|
| [e2ad8e4] | 19 | } __attribute__ ((packed));
|
|---|
| [657ab26] | 20 |
|
|---|
| 21 | #endif
|
|---|
| 22 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.