[Pkg-libvirt-commits] [libguestfs] 37/179: v2v: Fix the --no-trim option so it works.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 31 19:08:03 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 69fe3945b7641811c99c3c03e05e73d2347e8a42
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Oct 8 21:16:48 2014 +0100

    v2v: Fix the --no-trim option so it works.
    
    We never updated the no_trim variable in the case where this option
    was supplied, so it never did anything, proving once again that unless
    you have a test case, the feature won't work.
---
 v2v/cmdline.ml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml
index 55b5447..646d446 100644
--- a/v2v/cmdline.ml
+++ b/v2v/cmdline.ml
@@ -91,7 +91,8 @@ let parse_cmdline () =
             error (f_"--no-trim: empty mountpoint");
           if mp.[0] <> '/' then
             error (f_"--no-trim: %s: mountpoint does not begin with '/'") mp;
-      ) mps
+      ) mps;
+      no_trim := mps
   in
 
   let output_mode = ref `Not_set in

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list