2 * Copyright (C) 1999 by Andries Brouwer
3 * Copyright (C) 1999, 2000, 2003 by Theodore Ts'o
4 * Copyright (C) 2001 by Andreas Dilger
5 * Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
6 * Copyright (C) 2008 Karel Zak <kzak@redhat.com>
8 * This file may be redistributed under the terms of the
9 * GNU Lesser General Public License.
14 static int probe_minix(blkid_probe pr, const struct blkid_idmag *mag)
16 /* for more details see magic strings below */
17 switch(mag->magic[1]) {
19 blkid_probe_set_version(pr, "1");
22 blkid_probe_set_version(pr, "2");
25 blkid_probe_set_version(pr, "3");
31 const struct blkid_idinfo minix_idinfo =
34 .usage = BLKID_USAGE_FILESYSTEM,
35 .probefunc = probe_minix,
39 { .magic = "\177\023", .len = 2, .kboff = 1, .sboff = 0x10 },
40 { .magic = "\217\023", .len = 2, .kboff = 1, .sboff = 0x10 },
43 { .magic = "\150\044", .len = 2, .kboff = 1, .sboff = 0x10 },
44 { .magic = "\170\044", .len = 2, .kboff = 1, .sboff = 0x10 },
47 { .magic = "\132\115", .len = 2, .kboff = 1, .sboff = 0x18 },