[Libguestfs] [PATCH 3/5] umount: add force umount and lazy umount

Richard W.M. Jones rjones at redhat.com
Sat Jul 21 16:17:57 UTC 2012


On Sat, Jul 21, 2012 at 10:58:26PM +0800, Wanlong Gao wrote:
> On 07/21/2012 08:26 PM, Richard W.M. Jones wrote:
> > On Sat, Jul 21, 2012 at 03:27:15PM +0800, Wanlong Gao wrote:
> >> Add the option force and lazy for force and lazy umount.
> > 
> > What are these options used for?  I think maybe they are useful for
> > libguestfs live, but not for the libguestfs appliance case
> > (mountpoints should never be busy in the appliance).  Is libguestfs
> > live what you're using them for?
> > 
> 
> mount_local and do something, and then I met busy umount.

That could be a different problem.  The way to unmount
guestfs_mount_local is either: guestfs_umount_local or calling
'fusermount'.

http://libguestfs.org/guestfs.3.html#guestfs_umount_local
https://github.com/libguestfs/libguestfs/blob/a58368b3db4f02b9fd907cec82621be11884d256/fish/test-mount-local.sh

(Don't confuse mounts on the host with mounts in the appliance.)

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora




More information about the Libguestfs mailing list