[Pkg-libvirt-commits] [libguestfs] 60/66: v2v: windows: Give a better message when Fast Restart is found (RHBZ#1145995).

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 f6e40498a90ac6f082bede202d15d5a8fbb80fa3
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Sep 24 18:18:40 2014 +0100

    v2v: windows: Give a better message when Fast Restart is found (RHBZ#1145995).
    
    Thanks: Tingting Zheng
---
 v2v/v2v.ml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index ecc103a..df6a78c 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -403,8 +403,12 @@ and inspect_source g root_choice =
     fun (mp, dev) ->
       try g#mount dev mp
       with G.Error msg ->
-        if mp = "/" then
-          error "%s" msg
+        if mp = "/" then ( (* RHBZ#1145995 *)
+          if string_find msg "Windows" >= 0 && string_find msg "NTFS partition is in an unsafe state" >= 0 then
+            error (f_"unable to mount the disk image for writing. This has probably happened because Windows Hibernation or Fast Restart is being used in this guest. You have to disable this (in the guest) in order to use virt-v2v.\n\nOriginal error message: %s") msg
+          else
+            error "%s" msg
+        )
         else
           warning ~prog (f_"%s (ignored)") msg
   ) mps;

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