new pmem magic (from marcinslusarz)
authorChristos Zoulas <christos@zoulas.com>
Sat, 8 Jun 2019 20:53:32 +0000 (20:53 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 8 Jun 2019 20:53:32 +0000 (20:53 +0000)
magic/Magdir/pmem [new file with mode: 0644]
magic/Makefile.am

diff --git a/magic/Magdir/pmem b/magic/Magdir/pmem
new file mode 100644 (file)
index 0000000..7a651af
--- /dev/null
@@ -0,0 +1,47 @@
+
+#------------------------------------------------------------------------------
+# $File: pmem,v 1.1 2019/06/08 20:53:32 christos Exp $
+# pmem: file(1) magic for Persistent Memory Development Kit pool files
+#
+0      string          PMEM
+>4     string          POOLSET         Persistent Memory Poolset file
+>>11   search          REPLICA         with replica
+>4     regex           LOG|BLK|OBJ     Persistent Memory Pool file, type: %s,
+>>8    lelong          >0              version: 0x%x,
+>>12   lelong          x               compat: 0x%x,
+>>16   lelong          x               incompat: 0x%x,
+>>20   lelong          x               ro_compat: 0x%x,
+
+
+>>120  leqldate        x               crtime: %s,
+>>128  lequad          x               alignment_desc: 0x%016llx,
+
+>>136  clear
+>>136  byte            2               machine_class: 64-bit,
+>>136  default         x               machine_class: unknown
+>>>136 byte            x               (0x%d),
+
+>>137  clear
+>>137  byte            1               data: little-endian,
+>>137  byte            2               data: big-endian,
+>>137  default         x               data: unknown
+>>>137 byte            x               (0x%d),
+
+>>138  byte            !0              reserved[0]: %d,
+>>139  byte            !0              reserved[1]: %d,
+>>140  byte            !0              reserved[2]: %d,
+>>141  byte            !0              reserved[3]: %d,
+
+>>142  clear
+>>142  leshort         62              machine: x86_64
+>>142  leshort         183             machine: aarch64
+>>142  default         x               machine: unknown
+>>>142 leshort         x               (0x%d)
+
+>4     string          BLK
+>>4096 lelong          x               \b, blk.bsize: %d
+
+>4     string          OBJ
+>>4096 string          >0              \b, obj.layout: '%s'
+>>4096 string          <0              \b, obj.layout: NULL
+  1  magic/Makefile.am 
index 5424dfbe7c279310da2187915e2bb03ca1edc4dd..6aeeb4ce38c9414933e29ac7c173739e939155f2 100644 (file)
@@ -1,5 +1,5 @@
 #
-# $File: Makefile.am,v 1.146 2019/06/06 19:14:20 christos Exp $
+# $File: Makefile.am,v 1.147 2019/06/08 20:53:32 christos Exp $
 #
 MAGIC_FRAGMENT_BASE = Magdir
 MAGIC_DIR = $(top_srcdir)/magic
@@ -224,6 +224,7 @@ $(MAGIC_FRAGMENT_DIR)/pgp \
 $(MAGIC_FRAGMENT_DIR)/pkgadd \
 $(MAGIC_FRAGMENT_DIR)/plan9 \
 $(MAGIC_FRAGMENT_DIR)/plus5 \
+$(MAGIC_FRAGMENT_DIR)/pmem \
 $(MAGIC_FRAGMENT_DIR)/polyml \
 $(MAGIC_FRAGMENT_DIR)/printer \
 $(MAGIC_FRAGMENT_DIR)/project \