summaryrefslogtreecommitdiffstats
path: root/libblkid/src/superblocks/apfs.c
diff options
context:
space:
mode:
authorHarry Mallon2018-06-25 17:19:18 +0200
committerHarry Mallon2018-06-25 17:19:18 +0200
commit084f092a62f8767998d8b00222eb14f3ec94e8b6 (patch)
tree31f15524a89a84f793ec3f6be8d7db8e229e0ed1 /libblkid/src/superblocks/apfs.c
parentdocs: update TODO (diff)
downloadkernel-qcow2-util-linux-084f092a62f8767998d8b00222eb14f3ec94e8b6.tar.gz
kernel-qcow2-util-linux-084f092a62f8767998d8b00222eb14f3ec94e8b6.tar.xz
kernel-qcow2-util-linux-084f092a62f8767998d8b00222eb14f3ec94e8b6.zip
libblkid: Add very basic APFS recognition
Diffstat (limited to 'libblkid/src/superblocks/apfs.c')
-rw-r--r--libblkid/src/superblocks/apfs.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libblkid/src/superblocks/apfs.c b/libblkid/src/superblocks/apfs.c
new file mode 100644
index 000000000..6303d9b17
--- /dev/null
+++ b/libblkid/src/superblocks/apfs.c
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2018 Harry Mallon <hjmallon@gmail.com>
+ *
+ * This file may be redistributed under the terms of the
+ * GNU Lesser General Public License.
+ */
+
+#include "superblocks.h"
+
+const struct blkid_idinfo apfs_idinfo =
+{
+ .name = "apfs",
+ .usage = BLKID_USAGE_FILESYSTEM,
+ .magics =
+ {
+ { .magic = "NXSB", .len = 4, .sboff = 32 },
+ { NULL }
+ }
+};