2010-06-01 14:35:33 +02:00
|
|
|
#ifndef __MFS_TYPE_H__
|
|
|
|
#define __MFS_TYPE_H__
|
|
|
|
|
2012-10-16 17:40:39 +02:00
|
|
|
#include <minix/libminixfs.h>
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
/* Declaration of the V2 inode as it is on the disk (not in core). */
|
|
|
|
typedef struct { /* V2.x disk inode */
|
2009-11-06 09:55:07 +01:00
|
|
|
u16_t d2_mode; /* file type, protection, etc. */
|
2005-04-21 16:53:53 +02:00
|
|
|
u16_t d2_nlinks; /* how many links to this file. HACK! */
|
2009-11-06 09:55:07 +01:00
|
|
|
i16_t d2_uid; /* user id of the file's owner. */
|
2005-04-21 16:53:53 +02:00
|
|
|
u16_t d2_gid; /* group number HACK! */
|
2009-11-06 09:55:07 +01:00
|
|
|
i32_t d2_size; /* current file size in bytes */
|
|
|
|
i32_t d2_atime; /* when was file data last accessed */
|
|
|
|
i32_t d2_mtime; /* when was file data last changed */
|
|
|
|
i32_t d2_ctime; /* when was inode data last changed */
|
2005-04-21 16:53:53 +02:00
|
|
|
zone_t d2_zone[V2_NR_TZONES]; /* block nums for direct, ind, and dbl ind */
|
|
|
|
} d2_inode;
|
2008-11-19 13:26:10 +01:00
|
|
|
|
2010-06-01 14:35:33 +02:00
|
|
|
#endif
|
|
|
|
|