search for: nbdino

Displaying 2 results from an estimated 2 matches for "nbdino".

Did you mean: nbdinfo
2020 Oct 06
0
Re: [PATCH libnbd] info: Write output atomically.
..._fn rm -f $out > + > +nbdkit -U - eval open='echo EIO fail >&2; exit 1' \ > + --run '$VG nbdinfo --size "nbd+unix:///?socket=$unixsocket"' > $out ||: nbdkit added $uri in 1.14, and the eval plugin in 1.18. You could shorten this to --run '$VG nbdino --size "$uri"'. (We still use the longhand elsewhere because of older RHEL having older nbdkit, but this will already be skipped on those setups). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
2020 Oct 06
2
[PATCH libnbd] info: Write output atomically.
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": "newstyle-fixed", "TLS": false, nbdkit: eval[1]: error: /tmp/nbdkitii3pZW/open: fail nbdkit: eval[1]: