summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnisse Astier <aastier@freebox.fr>2019-09-16 19:12:49 +0200
committerAnisse Astier <aastier@freebox.fr>2019-09-17 10:27:12 +0200
commit88ee228dbede92308c2bd34e37d411aa0b858a49 (patch)
treece3501b89d5496857f41841e8b20ea30ec2f3c3c
parentdb6efe84d3137df09e9849b163d0c5770ba1794a (diff)
downloadshared-mime-info-88ee228dbede92308c2bd34e37d411aa0b858a49.tar.gz
Add support for QCOW images
Note that the disk.qcow2 is a QCOW version 3 file, which is very similar to version 2. I haven't found the .qcow3 extension used in the wild though.
-rw-r--r--freedesktop.org.xml.in13
-rw-r--r--tests/disk.qcow2bin0 -> 196608 bytes
-rw-r--r--tests/list3
3 files changed, 16 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 5d45e7b3..83570fa0 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -7292,4 +7292,17 @@ command to generate the output files.
</magic>
</mime-type>
+ <mime-type type="application/x-qemu-disk">
+ <comment>QEMU QCOW disk image</comment>
+ <acronym>QCOW</acronym>
+ <expanded-acronym>QEMU Copy On Write</expanded-acronym>
+ <glob pattern="*.qcow2"/>
+ <glob pattern="*.qcow"/>
+ <magic>
+ <match type="string" value="QFI" offset="0">
+ <match value="0xfb" type="byte" offset="3"/>
+ </match>
+ </magic>
+ </mime-type>
+
</mime-info>
diff --git a/tests/disk.qcow2 b/tests/disk.qcow2
new file mode 100644
index 00000000..ef892e19
--- /dev/null
+++ b/tests/disk.qcow2
Binary files differ
diff --git a/tests/list b/tests/list
index d89038bc..dc6347c3 100644
--- a/tests/list
+++ b/tests/list
@@ -711,3 +711,6 @@ dbus-comment.service text/x-dbus-service
binary.stl model/stl oxo
ascii.stl model/stl
test.gcode text/x.gcode ox
+
+# QEMU disk image
+disk.qcow2 application/x-qemu-disk