Add QEMU suspend image compression format reporting

Resolves: RHEL-68294
This commit is contained in:
Vincent Mihalkovic 2026-04-28 08:45:13 +02:00
parent cf40258eeb
commit 106894209d
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From: Christos Zoulas <christos@zoulas.com>
Date: Wed, 15 Apr 2026 16:56:41 +0000
Subject: PR/752: vmihalko: Add qemu compression formats
# Upstream-commit: 0d435dc73d94743a0e83bf6fb6843564d09d2a7d
# https://github.com/file/file/commit/0d435dc73d94743a0e83bf6fb6843564d09d2a7d
diff --git a/magic/Magdir/virtual b/magic/Magdir/virtual
index e6a30ef1..776eed75 100644
--- a/magic/Magdir/virtual
+++ b/magic/Magdir/virtual
@@ -198,7 +198,11 @@
>0x10 lelong x \b, version %u
>0x14 lelong x \b, XML length %u
>0x18 lelong 1 \b, running
->0x1c lelong 1 \b, compressed
+>0x1c lelong 0 \b, RAW (no compression)
+>0x1c lelong 1 \b, gzip compressed
+>0x1c lelong 2 \b, bzip2 compressed
+>0x1c lelong 3 \b, xz compressed
+>0x1c lelong 4 \b, lzop compressed
0 string LibvirtQemudPart Libvirt QEMU partial Suspend Image
# From: Alex Beregszaszi <alex@fsn.hu>

View File

@ -15,7 +15,7 @@
Summary: Utility for determining file types
Name: file
Version: 5.39
Release: 18%{?dist}
Release: 19%{?dist}
License: BSD
Source0: http://ftp.astron.com/pub/file/file-%{version}.tar.gz
@ -67,6 +67,9 @@ Patch19: file-5.43-python.patch
# Upstream commit fa66260f9a52dba5c3a64e7d69485d24af4cd369
# https://github.com/file/file/commit/fa66260f9a52dba5c3a64e7d69485d24af4cd369
Patch20: file-5.48-magic-getpath-race.patch
# Upstream commit 0d435dc73d94743a0e83bf6fb6843564d09d2a7d
# https://github.com/file/file/commit/0d435dc73d94743a0e83bf6fb6843564d09d2a7d
Patch21: file-5.48-qemu-compression-formats.patch
URL: https://www.darwinsys.com/file/
Requires: file-libs%{?_isa} = %{version}-%{release}
@ -246,6 +249,10 @@ cd %{py3dir}
%endif
%changelog
* Wed Apr 29 2026 Vincent Mihalkovic <vmihalko@redhat.com> - 5.39-19
- Add QEMU suspend image compression format reporting
Resolves: RHEL-68294
* Mon Apr 27 2026 Vincent Mihalkovic <vmihalko@redhat.com> - 5.39-18
- Fix race condition in magic_getpath() for thread safety
Resolves: RHEL-93189