Re: [Libguestfs] [libnbd PATCH 1/3] nbdsh: Refactor handling of -u and friends

2022-10-31 Thread Eric Blake
On Thu, Oct 27, 2022 at 09:28:19AM +0100, Richard W.M. Jones wrote: > > On Wed, Oct 26, 2022 at 04:15:59PM -0500, Eric Blake wrote: > > Slightly rearrange the code so that we can reuse the -c framework for > > executing the code snippets for -u, --opt-mode, and --base-allocation. > > Slightly

Re: [Libguestfs] [libnbd PATCH 1/3] nbdsh: Refactor handling of -u and friends

2022-10-27 Thread Richard W.M. Jones
On Wed, Oct 26, 2022 at 04:15:59PM -0500, Eric Blake wrote: > Slightly rearrange the code so that we can reuse the -c framework for > executing the code snippets for -u, --opt-mode, and --base-allocation. > Slightly changes the error message when a URI is invalid (which > requires revamping

[Libguestfs] [libnbd PATCH 1/3] nbdsh: Refactor handling of -u and friends

2022-10-26 Thread Eric Blake
Slightly rearrange the code so that we can reuse the -c framework for executing the code snippets for -u, --opt-mode, and --base-allocation. Slightly changes the error message when a URI is invalid (which requires revamping test-error.sh a bit to match), but otherwise no semantic change intended.