diff options
author | Jeroen Oortwijn | 2010-01-14 19:01:36 +0100 |
---|---|---|
committer | Karel Zak | 2010-02-02 14:53:04 +0100 |
commit | 5f9fb168f3b710e4ff17139182112e2594fdb583 (patch) | |
tree | 4bb1ae6a5764f517d9644df3fee7511f1440f039 | |
parent | fsck/mkfs/mount: unify default search paths for helpers (diff) | |
download | kernel-qcow2-util-linux-5f9fb168f3b710e4ff17139182112e2594fdb583.tar.gz kernel-qcow2-util-linux-5f9fb168f3b710e4ff17139182112e2594fdb583.tar.xz kernel-qcow2-util-linux-5f9fb168f3b710e4ff17139182112e2594fdb583.zip |
libblkid: Add initial support for BeFS detection
Add initial support for detection of the Be File System
<http://en.wikipedia.org/wiki/Be_File_System> to libblkid.
Signed-off-by: Jeroen Oortwijn <oortwijn@gmail.com>
-rw-r--r-- | shlibs/blkid/src/superblocks/Makefile.am | 3 | ||||
-rw-r--r-- | shlibs/blkid/src/superblocks/befs.c | 18 | ||||
-rw-r--r-- | shlibs/blkid/src/superblocks/superblocks.c | 3 | ||||
-rw-r--r-- | shlibs/blkid/src/superblocks/superblocks.h | 1 |
4 files changed, 23 insertions, 2 deletions
diff --git a/shlibs/blkid/src/superblocks/Makefile.am b/shlibs/blkid/src/superblocks/Makefile.am index 33e5d0c39..f5b88b8e9 100644 --- a/shlibs/blkid/src/superblocks/Makefile.am +++ b/shlibs/blkid/src/superblocks/Makefile.am @@ -45,4 +45,5 @@ libblkid_superblocks_la_SOURCES = \ ubifs.c \ bfs.c \ drbd.c \ - vmfs.c + vmfs.c \ + befs.c diff --git a/shlibs/blkid/src/superblocks/befs.c b/shlibs/blkid/src/superblocks/befs.c new file mode 100644 index 000000000..73d831df8 --- /dev/null +++ b/shlibs/blkid/src/superblocks/befs.c @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2010 Jeroen Oortwijn <oortwijn@gmail.com> + * + * This file may be redistributed under the terms of the + * GNU Lesser General Public License. + */ + +#include "superblocks.h" + +const struct blkid_idinfo befs_idinfo = +{ + .name = "befs", + .usage = BLKID_USAGE_FILESYSTEM, + .magics = { + { .magic = "1SFB", .len = 4, .sboff = 0x220 }, + { NULL } + } +}; diff --git a/shlibs/blkid/src/superblocks/superblocks.c b/shlibs/blkid/src/superblocks/superblocks.c index 689f31bd7..fd12e5ec2 100644 --- a/shlibs/blkid/src/superblocks/superblocks.c +++ b/shlibs/blkid/src/superblocks/superblocks.c @@ -138,7 +138,8 @@ static const struct blkid_idinfo *idinfos[] = &btrfs_idinfo, &ubifs_idinfo, &bfs_idinfo, - &vmfs_fs_idinfo + &vmfs_fs_idinfo, + &befs_idinfo }; /* diff --git a/shlibs/blkid/src/superblocks/superblocks.h b/shlibs/blkid/src/superblocks/superblocks.h index 893ae72ae..12f197e59 100644 --- a/shlibs/blkid/src/superblocks/superblocks.h +++ b/shlibs/blkid/src/superblocks/superblocks.h @@ -64,6 +64,7 @@ extern const struct blkid_idinfo bfs_idinfo; extern const struct blkid_idinfo vmfs_volume_idinfo; extern const struct blkid_idinfo vmfs_fs_idinfo; extern const struct blkid_idinfo drbd_idinfo; +extern const struct blkid_idinfo befs_idinfo; /* * superblock functions |