Blame SOURCES/file-5.11-qcow3.patch

89be67
diff --git a/magic/Magdir/msdos b/magic/Magdir/msdos
89be67
index 8f3e532..21f055d 100644
89be67
--- a/magic/Magdir/msdos
89be67
+++ b/magic/Magdir/msdos
89be67
@@ -811,6 +811,21 @@
89be67
 >>24	bequad	x	\b, %lld bytes
89be67
 >>32	belong	1	\b, AES-encrypted
89be67
 
89be67
+>4	belong	3	(v3)
89be67
+# Using the existence of the Backing File Offset to determine whether
89be67
+# to read Backing File Information
89be67
+>>8	bequad  >0	 \b, has backing file
89be67
+# Note that this isn't a null-terminated string; the length is actually
89be67
+# (16.L). Assuming a null-terminated string happens to work usually, but it
89be67
+# may spew junk until it reaches a \0 in some cases. Also, since there's no
89be67
+# .Q modifier, we just use the bottom four bytes as an offset. Note that if
89be67
+# the file is over 4G, and the backing file path is stored after the first 4G,
89be67
+# the wrong filename will be printed. (This should be (8.Q), when that syntax
89be67
+# is introduced.)
89be67
+>>>(12.L)	 string >\0	(path %s)
89be67
+>>24	bequad	x	\b, %lld bytes
89be67
+>>32	belong	1	\b, AES-encrypted
89be67
+
89be67
 >4	default x	(unknown version)
89be67
 
89be67
 0	string/b	QEVM		QEMU suspend to disk image