Re: [Libguestfs] [PATCH libnbd] info: Write output atomically.

2020-10-06 Thread Richard W.M. Jones
On Tue, Oct 06, 2020 at 01:01:49PM -0500, Eric Blake wrote: > On 10/6/20 11:54 AM, Richard W.M. Jones wrote: > > If the server fails, nbdinfo can write partial output before the error > > message (albeit on different channels). Here is an example: > > > > $ nbdkit eval open='echo EIO fail >&2;

Re: [Libguestfs] [PATCH libnbd] info: Write output atomically.

2020-10-06 Thread Eric Blake
On 10/6/20 11:54 AM, Richard W.M. Jones wrote: > If the server fails, nbdinfo can write partial output before the error > message (albeit on different channels). Here is an example: > > $ nbdkit eval open='echo EIO fail >&2; exit 1' --run 'nbdinfo --json "$uri"' > { > "protocol":