Include upstream patches to fix virt-make-fs with qemu-img 0.14.
This commit is contained in:
parent
0e79c1edc1
commit
26e255e1fa
@ -0,0 +1,26 @@
|
||||
From 29b3ffdad5d6774f988fd0e25f9c8242e5dd577a Mon Sep 17 00:00:00 2001
|
||||
From: Richard W.M. Jones <rjones@redhat.com>
|
||||
Date: Fri, 4 Mar 2011 12:13:12 +0000
|
||||
Subject: [PATCH 1/2] virt-make-fs: In debug mode, print qemu-img command line.
|
||||
|
||||
---
|
||||
tools/virt-make-fs | 3 +++
|
||||
1 files changed, 3 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/tools/virt-make-fs b/tools/virt-make-fs
|
||||
index 854cc08..3825f70 100755
|
||||
--- a/tools/virt-make-fs
|
||||
+++ b/tools/virt-make-fs
|
||||
@@ -397,6 +397,9 @@ if (!defined $size) {
|
||||
# Take the unusual step of invoking qemu-img here.
|
||||
|
||||
my @cmd = ("qemu-img", "create", "-f", $format, $output, $size);
|
||||
+if ($debug) {
|
||||
+ print STDERR ("running: ", join (" ", @cmd), "\n");
|
||||
+}
|
||||
system (@cmd) == 0 or
|
||||
die __"qemu-img create: failed to create disk image, see earlier error messages\n";
|
||||
|
||||
--
|
||||
1.7.4
|
||||
|
@ -0,0 +1,29 @@
|
||||
From eda9826d25336bcf661700270c580d4d62128750 Mon Sep 17 00:00:00 2001
|
||||
From: Richard W.M. Jones <rjones@redhat.com>
|
||||
Date: Fri, 4 Mar 2011 12:13:32 +0000
|
||||
Subject: [PATCH 2/2] virt-make-fs: Round disk size to integer, fix for qemu-img 0.14.
|
||||
|
||||
qemu-img used to allow you to specify a fractional image size in bytes
|
||||
(or at least, it used to ignore the part after the decimal place). In
|
||||
qemu-img 0.14 it no longer does this so we round down the size to a
|
||||
whole number of bytes.
|
||||
---
|
||||
tools/virt-make-fs | 2 ++
|
||||
1 files changed, 2 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/tools/virt-make-fs b/tools/virt-make-fs
|
||||
index 3825f70..833c8a5 100755
|
||||
--- a/tools/virt-make-fs
|
||||
+++ b/tools/virt-make-fs
|
||||
@@ -393,6 +393,8 @@ if (!defined $size) {
|
||||
}
|
||||
}
|
||||
|
||||
+$size = int ($size);
|
||||
+
|
||||
# Create the output disk.
|
||||
# Take the unusual step of invoking qemu-img here.
|
||||
|
||||
--
|
||||
1.7.4
|
||||
|
@ -40,6 +40,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
# Disable FUSE tests, not supported in Koji at the moment.
|
||||
Patch0: libguestfs-1.7.13-no-fuse-test.patch
|
||||
|
||||
# Upstream patches to fix virt-make-fs with qemu-img 0.14.
|
||||
# These are included after 0.9.9.
|
||||
Patch1: 0001-virt-make-fs-In-debug-mode-print-qemu-img-command-li.patch
|
||||
Patch2: 0002-virt-make-fs-Round-disk-size-to-integer-fix-for-qemu.patch
|
||||
|
||||
# Basic build requirements:
|
||||
BuildRequires: /usr/bin/pod2man
|
||||
BuildRequires: /usr/bin/pod2text
|
||||
@ -426,6 +431,8 @@ php-%{name} contains PHP bindings for %{name}.
|
||||
%setup -q
|
||||
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
mkdir -p daemon/m4
|
||||
|
||||
@ -758,6 +765,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Mar 4 2011 Richard W.M. Jones <rjones@redhat.com> - 1:1.9.9-2
|
||||
- Include upstream patches to fix virt-make-fs with qemu-img 0.14.
|
||||
|
||||
* Fri Mar 4 2011 Richard W.M. Jones <rjones@redhat.com> - 1:1.9.9-1
|
||||
- New upstream version 1.9.9.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user