[Pkg-libvirt-commits] [libguestfs] 59/66: v2v: Failure to mount the root partition is a hard error.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:47:57 UTC 2014


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

bengen pushed a commit to annotated tag debian/1%1.27.54-1
in repository libguestfs.

commit 4cc0677da74e847f1112303cbc4413697f7f7345
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Sep 24 18:11:40 2014 +0100

    v2v: Failure to mount the root partition is a hard error.
    
    For other partitions, it is a warning.
---
 v2v/v2v.ml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 110c092..ecc103a 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -402,7 +402,11 @@ and inspect_source g root_choice =
   List.iter (
     fun (mp, dev) ->
       try g#mount dev mp
-      with G.Error msg -> eprintf "%s (ignored)\n" msg
+      with G.Error msg ->
+        if mp = "/" then
+          error "%s" msg
+        else
+          warning ~prog (f_"%s (ignored)") msg
   ) mps;
 
   (* Get list of applications/packages installed. *)

-- 
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