|
|
0b9da0f |
From 06ca4eebe87808d650a441a8f936afb0b7d1f0b4 Mon Sep 17 00:00:00 2001
|
|
|
89d86ed |
From: Richard W.M. Jones <rjones@redhat.com>
|
|
|
89d86ed |
Date: Fri, 22 Jun 2012 10:24:48 +0100
|
|
|
06798bf |
Subject: [PATCH 16/20] EPEL 5: sparsify: Fix command line options for old qemu-img.
|
|
|
89d86ed |
|
|
|
89d86ed |
This didn't have -o backing_file etc. Use old -b and -F options instead.
|
|
|
89d86ed |
---
|
|
|
89d86ed |
sparsify/sparsify.ml | 14 ++++++--------
|
|
|
89d86ed |
1 files changed, 6 insertions(+), 8 deletions(-)
|
|
|
89d86ed |
|
|
|
89d86ed |
diff --git a/sparsify/sparsify.ml b/sparsify/sparsify.ml
|
|
|
89d86ed |
index ec3512a..1374662 100644
|
|
|
89d86ed |
--- a/sparsify/sparsify.ml
|
|
|
89d86ed |
+++ b/sparsify/sparsify.ml
|
|
|
89d86ed |
@@ -169,14 +169,12 @@ let overlaydisk =
|
|
|
89d86ed |
|
|
|
89d86ed |
(* Create it with the indisk as the backing file. *)
|
|
|
89d86ed |
let cmd =
|
|
|
89d86ed |
- let backing_file_option =
|
|
|
89d86ed |
- sprintf "backing_file=%s%s"
|
|
|
89d86ed |
- (replace_str indisk "," ",,")
|
|
|
89d86ed |
- (match format with
|
|
|
89d86ed |
- | None -> ""
|
|
|
89d86ed |
- | Some fmt -> sprintf ",backing_fmt=%s" fmt) in
|
|
|
89d86ed |
- sprintf "qemu-img create -f qcow2 -o %s %s > /dev/null"
|
|
|
89d86ed |
- (Filename.quote backing_file_option) (Filename.quote tmp) in
|
|
|
89d86ed |
+ sprintf "qemu-img create -f qcow2%s -b %s %s > /dev/null"
|
|
|
89d86ed |
+ (match format with
|
|
|
89d86ed |
+ | None -> ""
|
|
|
89d86ed |
+ | Some fmt -> sprintf " -F %s" fmt)
|
|
|
89d86ed |
+ (replace_str indisk "," ",,")
|
|
|
89d86ed |
+ (Filename.quote tmp) in
|
|
|
89d86ed |
if verbose then
|
|
|
89d86ed |
printf "%s\n%!" cmd;
|
|
|
89d86ed |
if Sys.command cmd <> 0 then
|
|
|
89d86ed |
--
|
|
|
89d86ed |
1.7.4.1
|
|
|
89d86ed |
|