summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2023-02-20 16:23:19 +0000
committerChristos Zoulas <christos@zoulas.com>2023-02-20 16:23:19 +0000
commitcfefe16cf64c2b1c9398b062bb706345009d7774 (patch)
treea7465f14bd5f0fd8696ebce9a08392a016ef718b
parentf1b483eba04d7f87f222e3f2b277d7e394c02ebc (diff)
downloadfile-git-cfefe16cf64c2b1c9398b062bb706345009d7774.tar.gz
new bcachefs support from thomas at t-8ch dot de
-rw-r--r--magic/Magdir/filesystems32
-rw-r--r--tests/Makefile.am2
-rw-r--r--tests/bcachefs2.result1
-rw-r--r--tests/bcachefs2.testfilebin0 -> 8192 bytes
4 files changed, 22 insertions, 13 deletions
diff --git a/magic/Magdir/filesystems b/magic/Magdir/filesystems
index 0213bed5..097c1b17 100644
--- a/magic/Magdir/filesystems
+++ b/magic/Magdir/filesystems
@@ -1,5 +1,5 @@
#------------------------------------------------------------------------------
-# $File: filesystems,v 1.155 2023/02/04 13:31:07 christos Exp $
+# $File: filesystems,v 1.156 2023/02/20 16:23:19 christos Exp $
# filesystems: file(1) magic for different filesystems
#
0 name partid
@@ -2603,19 +2603,25 @@
>10 ubelong x \b-%08x
>14 ubeshort x \b%04x
-0x1018 string \xc6\x85\x73\xf6\x4e\x1a\x45\xca\x82\x65\xf5\x7f\x48\xba\x6d\x81 bcachefs
->0x1068 lequad 8 \b, UUID=
->>0x1038 use bcachefs-uuid
->>0x1048 string >0 \b, label "%.32s"
->>0x1010 uleshort x \b, version %u
->>0x1012 uleshort x \b, min version %u
->>0x107a byte x \b, device %d
+0 name bcachefs bcachefs
+>0x68 lequad 8 \b, UUID=
+>>0x38 use bcachefs-uuid
+>>0x48 string >0 \b, label "%.32s"
+>>0x10 uleshort x \b, version %u
+>>0x12 uleshort x \b, min version %u
+>>0x7a byte x \b, device %d
# assumes the first field is the members field
->>0x12f4 ulelong 0x01 \b/UUID=
->>>0x12f0 default x
->>>&(0x107a.b*56) use bcachefs-uuid
->>0x107b byte x \b, %d devices
->>0x1090 byte ^0x02 \b (unclean)
+>>0x2f4 ulelong 0x01 \b/UUID=
+>>>0x2f0 default x
+>>>&(0x07a.b*56) use bcachefs-uuid
+>>0x07b byte x \b, %d devices
+>>0x090 byte ^0x02 \b (unclean)
+
+0x1018 string \xc6\x85\x73\xf6\x4e\x1a\x45\xca\x82\x65\xf5\x7f\x48\xba\x6d\x81
+>0x1000 use bcachefs
+
+0x1018 string \xc6\x85\x73\xf6\x66\xce\x90\xa9\xd9\x6a\x60\xcf\x80\x3d\xf7\xef
+>0x1000 use bcachefs
# EROFS
# https://kernel.googlesource.com/pub/scm/linux/kernel/git/xiang/erofs-utils/\
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 092e4019..22b45152 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -11,6 +11,8 @@ arj.result \
arj.testfile \
bcachefs.result \
bcachefs.testfile \
+bcachefs2.result \
+bcachefs2.testfile \
cl8m8ocofedso.result \
cl8m8ocofedso.testfile \
cmd1.result \
diff --git a/tests/bcachefs2.result b/tests/bcachefs2.result
new file mode 100644
index 00000000..9ebf64bb
--- /dev/null
+++ b/tests/bcachefs2.result
@@ -0,0 +1 @@
+bcachefs, UUID=4fa11b1e-75e6-4210-9167-34e1769c0fe1, label "Label", version 26, min version 26, device 0/UUID=0a3643b7-c515-47f8-a0ea-91fc38d043d1, 1 devices (unclean) \ No newline at end of file
diff --git a/tests/bcachefs2.testfile b/tests/bcachefs2.testfile
new file mode 100644
index 00000000..3391822a
--- /dev/null
+++ b/tests/bcachefs2.testfile
Binary files differ