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.
26 uint8_t signature[16];
33 } __attribute__((packed)) info;
35 } __attribute__((packed));
37 static int probe_cramfs(blkid_probe pr, const struct blkid_idmag *mag)
39 struct cramfs_super *cs;
41 cs = blkid_probe_get_sb(pr, mag, struct cramfs_super);
45 blkid_probe_set_label(pr, cs->name, sizeof(cs->name));
49 const struct blkid_idinfo cramfs_idinfo =
52 .usage = BLKID_USAGE_FILESYSTEM,
53 .probefunc = probe_cramfs,
56 { "\x45\x3d\xcd\x28", 4, 0, 0 },
57 { "\x28\xcd\x3d\x45", 4, 0, 0 },