thaks for your help!
周涛
From: Richard W.M. Jones
Date: 2012-08-28 04:26
To: libguestfs(a)redhat.com
CC: tao.zhou(a)neusoft.com
Subject: Re: [Libguestfs] libguestfs! help!
I realized that this code is missing the call to shutdown the disk and
detect write errors. (Sorry about that -- the code was adapted from a
read-only example where this is not necessary).
// Unmount everything.
g.umount_all ();
After these two lines, add:
g.shutdown ();
g.close ();
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying
attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or
privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this
communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure
or copying
is strictly prohibited, and may be unlawful.If you have received this communication in
error,please
immediately notify the sender by return e-mail, and delete the original message and all
copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------