Browse files

libblkid: add ReFS magic string

Reported-by: "Richard W.M. Jones" <rjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information...
1 parent 08af448 commit 84992b8ad654e0215811eed799fb51d5150a9522 @karelzak committed May 14, 2013
View
1 libblkid/src/Makemodule.am
@@ -73,6 +73,7 @@ libblkid_la_SOURCES = \
libblkid/src/superblocks/netware.c \
libblkid/src/superblocks/nilfs.c \
libblkid/src/superblocks/ntfs.c \
+ libblkid/src/superblocks/refs.c \
libblkid/src/superblocks/nvidia_raid.c \
libblkid/src/superblocks/ocfs.c \
libblkid/src/superblocks/promise_raid.c \
View
26 libblkid/src/superblocks/refs.c
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2013 Karel Zak <kzak@redhat.com>
+ *
+ * This file may be redistributed under the terms of the
+ * GNU Lesser General Public License.
+ */
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <inttypes.h>
+
+#include "superblocks.h"
+
+
+const struct blkid_idinfo refs_idinfo =
+{
+ .name = "ReFS",
+ .usage = BLKID_USAGE_FILESYSTEM,
+ .magics =
+ {
+ { .magic = "\000\000\000ReFS\000", .len = 8 },
+ { NULL }
+ }
+};
+
View
1 libblkid/src/superblocks/superblocks.c
@@ -131,6 +131,7 @@ static const struct blkid_idinfo *idinfos[] =
&sysv_idinfo,
&xenix_idinfo,
&ntfs_idinfo,
+ &refs_idinfo,
&cramfs_idinfo,
&romfs_idinfo,
&minix_idinfo,
View
1 libblkid/src/superblocks/superblocks.h
@@ -40,6 +40,7 @@ extern const struct blkid_idinfo reiser4_idinfo;
extern const struct blkid_idinfo hfs_idinfo;
extern const struct blkid_idinfo hfsplus_idinfo;
extern const struct blkid_idinfo ntfs_idinfo;
+extern const struct blkid_idinfo refs_idinfo;
extern const struct blkid_idinfo iso9660_idinfo;
extern const struct blkid_idinfo udf_idinfo;
extern const struct blkid_idinfo vxfs_idinfo;

0 comments on commit 84992b8

Please sign in to comment.