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

Richard W.M. Jones rjones at redhat.com
Sat Jul 21 11:06:49 UTC 2012


On Sat, Jul 21, 2012 at 03:27:15PM +0800, Wanlong Gao wrote:
> diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
> index 1ce4026..67116b5 100644
> --- a/generator/generator_actions.ml
> +++ b/generator/generator_actions.ml
> @@ -2742,7 +2742,7 @@ characters does I<not> work, even if the length is specified." };
>  
>    { defaults with
>      name = "umount";
> -    style = RErr, [String "pathordevice"], [];
> +    style = RErr, [String "pathordevice"], [OBool "force"; OBool "laze"];

"lazy"

>      proc_nr = Some 45;
>      fish_alias = ["unmount"];
>      tests = [

You have to add:

  once_had_no_optargs = true

if a function goes from no optargs to one with optargs as in this case.

See generator/README.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list