blkid is currently missing a probe for the bfs filesystem, leading to a blkid-enable xfsprogs failing xfsqa testcase 032. This patch adds a trivial probe for the magic. Signed-off-by: Christoph Hellwig <hch@xxxxxx> Index: util-linux-ng/shlibs/blkid/src/superblocks/bfs.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ util-linux-ng/shlibs/blkid/src/superblocks/bfs.c 2009-10-06 17:50:09.000000000 +0000 @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2009 Red Hat, Inc. + * + * This file may be redistributed under the terms of the + * GNU Lesser General Public License. + */ + +#include "superblocks.h" + +/* + * BFS actually has two different labels in the superblock, each + * of them only 6 bytes long. Until we find out what their use + * we just ignore them. + */ +const struct blkid_idinfo bfs_idinfo = +{ + .name = "bfs", + .usage = BLKID_USAGE_FILESYSTEM, + .magics = { + { .magic = "\xce\xfa\xad\x1b", .len = 4 }, + { NULL } + } +}; Index: util-linux-ng/shlibs/blkid/src/superblocks/Makefile.am =================================================================== --- util-linux-ng.orig/shlibs/blkid/src/superblocks/Makefile.am 2009-10-06 17:37:31.000000000 +0000 +++ util-linux-ng/shlibs/blkid/src/superblocks/Makefile.am 2009-10-06 17:37:47.000000000 +0000 @@ -42,4 +42,5 @@ libblkid_superblocks_la_SOURCES = \ btrfs.c \ lvm.c \ zfs.c \ - ubifs.c + ubifs.c \ + bfs.c Index: util-linux-ng/shlibs/blkid/src/superblocks/superblocks.c =================================================================== --- util-linux-ng.orig/shlibs/blkid/src/superblocks/superblocks.c 2009-10-06 17:37:32.000000000 +0000 +++ util-linux-ng/shlibs/blkid/src/superblocks/superblocks.c 2009-10-06 17:37:47.000000000 +0000 @@ -131,7 +131,8 @@ static const struct blkid_idinfo *idinfo &squashfs_idinfo, &netware_idinfo, &btrfs_idinfo, - &ubifs_idinfo + &ubifs_idinfo, + &bfs_idinfo }; /* Index: util-linux-ng/shlibs/blkid/src/superblocks/superblocks.h =================================================================== --- util-linux-ng.orig/shlibs/blkid/src/superblocks/superblocks.h 2009-10-06 17:37:32.000000000 +0000 +++ util-linux-ng/shlibs/blkid/src/superblocks/superblocks.h 2009-10-06 17:37:47.000000000 +0000 @@ -60,6 +60,7 @@ extern const struct blkid_idinfo xenix_i extern const struct blkid_idinfo btrfs_idinfo; extern const struct blkid_idinfo ubifs_idinfo; extern const struct blkid_idinfo zfs_idinfo; +extern const struct blkid_idinfo bfs_idinfo; /* * superblock functions -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html