4 #include <linux/types.h>
5 #include <asm/byteorder.h>
7 #define FS_OFS 0x444F5300
8 #define FS_FFS 0x444F5301
9 #define FS_INTLOFS 0x444F5302
10 #define FS_INTLFFS 0x444F5303
11 #define FS_DCOFS 0x444F5304
12 #define FS_DCFFS 0x444F5305
13 #define MUFS_FS 0x6d754653 /* 'muFS' */
14 #define MUFS_OFS 0x6d754600 /* 'muF\0' */
15 #define MUFS_FFS 0x6d754601 /* 'muF\1' */
16 #define MUFS_INTLOFS 0x6d754602 /* 'muF\2' */
17 #define MUFS_INTLFFS 0x6d754603 /* 'muF\3' */
18 #define MUFS_DCOFS 0x6d754604 /* 'muF\4' */
19 #define MUFS_DCFFS 0x6d754605 /* 'muF\5' */
25 #define ST_LINKFILE -4
32 #define AFFS_ROOT_BMAPS 25
40 struct affs_short_date
{
46 struct affs_root_head
{
56 struct affs_root_tail
{
58 __be32 bm_blk
[AFFS_ROOT_BMAPS
];
60 struct affs_date root_change
;
64 struct affs_date disk_change
;
65 struct affs_date disk_create
;
89 struct affs_date change
;
107 u8 symname
[1]; /* depends on block size */
110 struct affs_data_head
118 u8 data
[1]; /* depends on block size */
121 /* Permission bits */
123 #define FIBF_OTR_READ 0x8000
124 #define FIBF_OTR_WRITE 0x4000
125 #define FIBF_OTR_EXECUTE 0x2000
126 #define FIBF_OTR_DELETE 0x1000
127 #define FIBF_GRP_READ 0x0800
128 #define FIBF_GRP_WRITE 0x0400
129 #define FIBF_GRP_EXECUTE 0x0200
130 #define FIBF_GRP_DELETE 0x0100
132 #define FIBF_HIDDEN 0x0080
133 #define FIBF_SCRIPT 0x0040
134 #define FIBF_PURE 0x0020 /* no use under linux */
135 #define FIBF_ARCHIVED 0x0010 /* never set, always cleared on write */
136 #define FIBF_NOREAD 0x0008 /* 0 means allowed */
137 #define FIBF_NOWRITE 0x0004 /* 0 means allowed */
138 #define FIBF_NOEXECUTE 0x0002 /* 0 means allowed, ignored under linux */
139 #define FIBF_NODELETE 0x0001 /* 0 means allowed */
141 #define FIBF_OWNER 0x000F /* Bits pertaining to owner */
142 #define FIBF_MASK 0xEE0E /* Bits modified by Linux */