diff options
author | Christoph Hellwig | 2009-10-06 20:10:31 +0200 |
---|---|---|
committer | Karel Zak | 2009-10-06 22:02:13 +0200 |
commit | e38ccfcd8e05aa08ff854359eefd7335df1317bd (patch) | |
tree | c4162c2f053cae80cbd4706c3071a1efdf384b10 /shlibs | |
parent | build-sys: fix BUILD_PIVOT_ROOT condition (diff) | |
download | kernel-qcow2-util-linux-e38ccfcd8e05aa08ff854359eefd7335df1317bd.tar.gz kernel-qcow2-util-linux-e38ccfcd8e05aa08ff854359eefd7335df1317bd.tar.xz kernel-qcow2-util-linux-e38ccfcd8e05aa08ff854359eefd7335df1317bd.zip |
libblkid: add a probe for bfs
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@lst.de>
Diffstat (limited to 'shlibs')
-rw-r--r-- | shlibs/blkid/src/superblocks/Makefile.am | 3 | ||||
-rw-r--r-- | shlibs/blkid/src/superblocks/bfs.c | 23 | ||||
-rw-r--r-- | shlibs/blkid/src/superblocks/superblocks.c | 3 | ||||
-rw-r--r-- | shlibs/blkid/src/superblocks/superblocks.h | 1 |
4 files changed, 28 insertions, 2 deletions
diff --git a/shlibs/blkid/src/superblocks/Makefile.am b/shlibs/blkid/src/superblocks/Makefile.am index b4097217f..a7c4a2315 100644 --- a/shlibs/blkid/src/superblocks/Makefile.am +++ b/shlibs/blkid/src/superblocks/Makefile.am @@ -42,4 +42,5 @@ libblkid_superblocks_la_SOURCES = \ btrfs.c \ lvm.c \ zfs.c \ - ubifs.c + ubifs.c \ + bfs.c diff --git a/shlibs/blkid/src/superblocks/bfs.c b/shlibs/blkid/src/superblocks/bfs.c new file mode 100644 index 000000000..8a34c583a --- /dev/null +++ b/shlibs/blkid/src/superblocks/bfs.c @@ -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 } + } +}; diff --git a/shlibs/blkid/src/superblocks/superblocks.c b/shlibs/blkid/src/superblocks/superblocks.c index 8cd50c953..d2c7825e8 100644 --- a/shlibs/blkid/src/superblocks/superblocks.c +++ b/shlibs/blkid/src/superblocks/superblocks.c @@ -131,7 +131,8 @@ static const struct blkid_idinfo *idinfos[] = &squashfs_idinfo, &netware_idinfo, &btrfs_idinfo, - &ubifs_idinfo + &ubifs_idinfo, + &bfs_idinfo }; /* diff --git a/shlibs/blkid/src/superblocks/superblocks.h b/shlibs/blkid/src/superblocks/superblocks.h index 170c82606..641397a7f 100644 --- a/shlibs/blkid/src/superblocks/superblocks.h +++ b/shlibs/blkid/src/superblocks/superblocks.h @@ -60,6 +60,7 @@ extern const struct blkid_idinfo xenix_idinfo; 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 |