1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
6 #include <asm/byteorder.h>
8 #define FS_OFS 0x444F5300
9 #define FS_FFS 0x444F5301
10 #define FS_INTLOFS 0x444F5302
11 #define FS_INTLFFS 0x444F5303
12 #define FS_DCOFS 0x444F5304
13 #define FS_DCFFS 0x444F5305
14 #define MUFS_FS 0x6d754653 /* 'muFS' */
15 #define MUFS_OFS 0x6d754600 /* 'muF\0' */
16 #define MUFS_FFS 0x6d754601 /* 'muF\1' */
17 #define MUFS_INTLOFS 0x6d754602 /* 'muF\2' */
18 #define MUFS_INTLFFS 0x6d754603 /* 'muF\3' */
19 #define MUFS_DCOFS 0x6d754604 /* 'muF\4' */
20 #define MUFS_DCFFS 0x6d754605 /* 'muF\5' */
26 #define ST_LINKFILE -4
33 #define AFFS_ROOT_BMAPS 25
35 /* Seconds since Amiga epoch of 1978/01/01 to UNIX */
36 #define AFFS_EPOCH_DELTA ((8 * 365 + 2) * 86400LL)
44 struct affs_short_date {
50 struct affs_root_head {
60 struct affs_root_tail {
62 __be32 bm_blk[AFFS_ROOT_BMAPS];
64 struct affs_date root_change;
68 struct affs_date disk_change;
69 struct affs_date disk_create;
93 struct affs_date change;
111 u8 symname[1]; /* depends on block size */
114 struct affs_data_head
122 u8 data[1]; /* depends on block size */
125 /* Permission bits */
127 #define FIBF_OTR_READ 0x8000
128 #define FIBF_OTR_WRITE 0x4000
129 #define FIBF_OTR_EXECUTE 0x2000
130 #define FIBF_OTR_DELETE 0x1000
131 #define FIBF_GRP_READ 0x0800
132 #define FIBF_GRP_WRITE 0x0400
133 #define FIBF_GRP_EXECUTE 0x0200
134 #define FIBF_GRP_DELETE 0x0100
136 #define FIBF_HIDDEN 0x0080
137 #define FIBF_SCRIPT 0x0040
138 #define FIBF_PURE 0x0020 /* no use under linux */
139 #define FIBF_ARCHIVED 0x0010 /* never set, always cleared on write */
140 #define FIBF_NOREAD 0x0008 /* 0 means allowed */
141 #define FIBF_NOWRITE 0x0004 /* 0 means allowed */
142 #define FIBF_NOEXECUTE 0x0002 /* 0 means allowed, ignored under linux */
143 #define FIBF_NODELETE 0x0001 /* 0 means allowed */
145 #define FIBF_OWNER 0x000F /* Bits pertaining to owner */
146 #define FIBF_MASK 0xEE0E /* Bits modified by Linux */