Blame SOURCES/file-5.11-qcow3.patch

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