[Libguestfs] [PATCH V4 3/3] umount: use Dev_or_Path for the argument type
Richard W.M. Jones
rjones at redhat.com
Tue Jul 24 11:23:21 UTC 2012
On Tue, Jul 24, 2012 at 06:57:49PM +0800, Wanlong Gao wrote:
> On 07/24/2012 04:47 PM, Wanlong Gao wrote:
> > Use Dev_or_Path.
> > Remove the RESOLVE_DEVICE since Dev_or_Path will generate
> > the resolve code.
> >
> > Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
>
> Forgot this one?
No, I was checking it in detail.
The patch changes the sematics of 'umount', because the generator adds
'REQUIRE_ROOT_OR_RESOLVE_DEVICE'. In other words, umount will now
require root.
I thought that this would break mkmountpoint and friends, but in fact
it turns out this is not the case.
When I've finished testing it I'll push it provided I don't find any
regressions.
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