[Libguestfs] [libnbd PATCH] nbdsh: Add --opt-mode command line option

Eric Blake eblake at redhat.com
Mon Sep 28 14:27:47 UTC 2020


On 9/28/20 9:09 AM, Richard W.M. Jones wrote:
> 
> Yeah I was wondering when this was coming, and "--full-info" too :-).  ACK.

Notice that you can do:

nbdsh --opt-mode -u "$uri" \
   -c 'h.set_full_info(True)' \
   -c 'h.opt_go()' \
   ...

without issues.  In fact, now that we have --opt-mode, there is less 
reason to need --base-allocation as an option (although I don't plan on 
removing it, for back-compat reasons).  In short, our previous 
limitation was the number of config items that had to be set 
pre-connection, but now with opt mode, we can now configure those things 
things in opt mode.  So I'm less inclined to add --full-info.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




More information about the Libguestfs mailing list