2 * Copyright (C) 2008 Karel Zak <kzak@redhat.com>
4 * Inspired by libvolume_id by
5 * Kay Sievers <kay.sievers@vrfy.org>
7 * This file may be redistributed under the terms of the
8 * GNU Lesser General Public License.
16 #include "bitops.h" /* swab16() */
17 #include "superblocks.h"
19 static int probe_jffs2(blkid_probe pr
, const struct blkid_idmag
*mag
)
24 const struct blkid_idinfo jffs2_idinfo
=
27 .usage
= BLKID_USAGE_FILESYSTEM
,
28 .probefunc
= probe_jffs2
,
31 { .magic
= "\x19\x85", .len
= 2 },
32 { .magic
= "\x85\x19", .len
= 2 },