Skip to content

Commit 48f9feb

Browse files
committed
feat: fixed minix fs magic and added more versions
and endiannesses
1 parent 668a434 commit 48f9feb

File tree

1 file changed

+46
-21
lines changed

1 file changed

+46
-21
lines changed

mime/file_systems

Lines changed: 46 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -157,32 +157,57 @@
157157
#>0x464 lelong &0x0000020 (many subdirs)
158158
#>0x463 lelong &0x0000040 (extra isize)
159159

160-
# Minix filesystems - Juan Cespedes <cespedes@debian.org>
161-
0x410 leshort 0x137f
162-
!:strength / 2
163-
>0x402 beshort < 100
164-
>0x402 beshort > -1 Minix filesystem, V1, 14 char names, %d zones
160+
# Minix filesystems
161+
# based on linux/minix_fs.h
162+
0x410 leshort 0x137f MINIX filesystem v1, little endian, 14 byte file names,
165163
!:mime filesystem/minix
166-
>0x1e string minix \b, bootable
167-
0x410 beshort 0x137f
168-
!:strength / 2
169-
>0x402 beshort < 100
170-
>0x402 beshort > -1 Minix filesystem, V1 (big endian), %d zones
164+
>0x400 leshort x %d inodes
165+
166+
0x410 leshort 0x138f MINIX filesystem v1, little endian, 30 byte file names,
167+
!:mime filesystem/minix
168+
>0x400 leshort x %d inodes
169+
170+
0x410 beshort 0x137f MINIX filesystem v1, big endian, 14 byte file names,
171+
!:mime filesystem/minix
172+
>0x400 beshort x %d inodes
173+
174+
0x410 beshort 0x138f MINIX filesystem v1, big endian, 30 byte file names,
175+
!:mime filesystem/minix
176+
>0x400 beshort x %d inodes
177+
178+
0x410 leshort 0x2468 MINIX filesystem v2, little endian, 14 byte file names,
171179
!:mime filesystem/minix
172-
>0x1e string minix \b, bootable
173-
0x410 leshort 0x138f
174-
!:strength / 2
175-
>0x402 beshort < 100
176-
>0x402 beshort > -1 Minix filesystem, V1, 30 char names, %d zones
180+
>0x400 leshort x %d inodes,
181+
>0x414 lelong x %d blocks
182+
183+
0x410 leshort 0x2478 MINIX filesystem v2, little endian, 30 byte file names,
184+
!:mime filesystem/minix
185+
>0x400 leshort x %d inodes,
186+
>0x414 lelong x %d blocks
187+
188+
0x410 beshort 0x2468 MINIX filesystem v2, big endian, 14 byte file names,
177189
!:mime filesystem/minix
178-
>0x1e string minix \b, bootable
179-
0x410 beshort 0x138f
180-
!:strength / 2
181-
>0x402 beshort < 100
182-
>0x402 beshort > -1 Minix filesystem, V1, 30 char names (big endian), %d zones
190+
>0x400 beshort x %d inodes,
191+
>0x414 belong x %d blocks
192+
193+
0x410 beshort 0x2478 MINIX filesystem v2, big endian, 30 byte file names,
183194
!:mime filesystem/minix
184-
>0x1e string minix \b, bootable
195+
>0x400 beshort x %d inodes,
196+
>0x414 belong x %d blocks
197+
198+
0x418 leshort 0x4d5a
199+
>0x41a leshort 0 MINIX filesystem v3, little endian,
200+
!:mime filesystem/minix
201+
>0x400 lelong x %d inodes,
202+
>0x414 lelong x %d blocks,
203+
>0x41c leshort x blocksize %d
204+
205+
0x418 beshort 0x4d5a
206+
>0x41a beshort 0 MINIX filesystem v3, big endian,
185207
!:mime filesystem/minix
208+
>0x400 belong x %d inodes,
209+
>0x414 belong x %d blocks,
210+
>0x41c beshort x blocksize %d
186211

187212
# *.hfs updated by Joerg Jenderek
188213
# http://en.wikipedia.org/wiki/Hierarchical_File_System

0 commit comments

Comments
 (0)