]> err.no Git - util-linux/commitdiff
libblkid: Add initial support for BeFS detection
authorJeroen Oortwijn <oortwijn@gmail.com>
Thu, 14 Jan 2010 18:01:36 +0000 (19:01 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Feb 2010 13:53:04 +0000 (14:53 +0100)
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>
shlibs/blkid/src/superblocks/Makefile.am
shlibs/blkid/src/superblocks/befs.c [new file with mode: 0644]
shlibs/blkid/src/superblocks/superblocks.c
shlibs/blkid/src/superblocks/superblocks.h

index 33e5d0c39a31a0ed6064d20cba65e8c61b5630d8..f5b88b8e9d4c785f039aa7b4a477e5ec47b1eb36 100644 (file)
@@ -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 (file)
index 0000000..73d831d
--- /dev/null
@@ -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 }
+       }
+};
index 689f31bd7b85dbd86a7b73dcb2afd595f5c035ef..fd12e5ec25cd9869ec8fae225e48c8790c6d5946 100644 (file)
@@ -138,7 +138,8 @@ static const struct blkid_idinfo *idinfos[] =
        &btrfs_idinfo,
        &ubifs_idinfo,
        &bfs_idinfo,
-       &vmfs_fs_idinfo
+       &vmfs_fs_idinfo,
+       &befs_idinfo
 };
 
 /*
index 893ae72ae9f283a8b26e67a152067ebe8b38ce37..12f197e590069815731aaa6c110ab6ee0d21c7ce 100644 (file)
@@ -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