<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: ËÎÌå; COLOR: #000000; FONT-SIZE: 10.5pt
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.19298"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>thaks for your help!</DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>ÖÜÌÎ</SPAN></DIV>
<DIV> </DIV>
<DIV 
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV 
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:rjones@redhat.com">Richard W.M. 
Jones</A></DIV>
<DIV><B>Date:</B> 2012-08-28 04:26</DIV>
<DIV><B>To:</B> <A 
href="mailto:libguestfs@redhat.com">libguestfs@redhat.com</A></DIV>
<DIV><B>CC:</B> <A 
href="mailto:tao.zhou@neusoft.com">tao.zhou@neusoft.com</A></DIV>
<DIV><B>Subject:</B> Re: [Libguestfs] libguestfs! help!</DIV></DIV></DIV>
<DIV>
<DIV> </DIV>
<DIV>I realized that this code is missing the call to shutdown the disk and</DIV>
<DIV>detect write errors.  (Sorry about that -- the code was adapted from a</DIV>
<DIV>read-only example where this is not necessary).</DIV>
<DIV> </DIV>
<DIV>>             // Unmount everything.</DIV>
<DIV>>             g.umount_all ();</DIV>
<DIV> </DIV>
<DIV>After these two lines, add:</DIV>
<DIV> </DIV>
<DIV>     g.shutdown ();</DIV>
<DIV>     g.close ();</DIV>
<DIV> </DIV>
<DIV>Rich.</DIV>
<DIV> </DIV>
<DIV>-- </DIV>
<DIV>Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones</DIV>
<DIV>virt-p2v converts physical machines to virtual machines.  Boot with a</DIV>
<DIV>live CD or over the network (PXE) and turn machines into Xen guests.</DIV>
<DIV>http://et.redhat.com/~rjones/virt-p2v</DIV></DIV><p>---------------------------------------------------------------------------------------------------<br>
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) <br>
is intended only for the use of the intended recipient and may be confidential and/or privileged of <br>
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is <br>
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying <br>
is strictly prohibited, and may be unlawful.If you have received this communication in error,please <br>
immediately notify the sender by return e-mail, and delete the original message and all copies from <br>
your system. Thank you. <br>
---------------------------------------------------------------------------------------------------</p></BODY></HTML>