mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone
Blob Blame History Raw
From 322bf1dd40559d554f5c7540adbe49deacd5f590 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Sat, 31 Aug 2013 22:47:44 +0100
Subject: [PATCH] sparsify: Use cachemode "unsafe" for the overlay disk.

(cherry picked from commit f3a9c9f867bed178d1aabf9675955f633bf3069a)
---
 sparsify/sparsify.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sparsify/sparsify.ml b/sparsify/sparsify.ml
index 819a145..659d46f 100644
--- a/sparsify/sparsify.ml
+++ b/sparsify/sparsify.ml
@@ -260,7 +260,7 @@ let g =
   if verbose then g#set_verbose true;
 
   (* Note that the temporary overlay disk is always qcow2 format. *)
-  g#add_drive ~format:"qcow2" ~readonly:false overlaydisk;
+  g#add_drive ~format:"qcow2" ~readonly:false ~cachemode:"unsafe" overlaydisk;
 
   if not quiet then Progress.set_up_progress_bar ~machine_readable g;
   g#launch ();
-- 
1.8.3.1