search for: nbkdit

Displaying 6 results from an estimated 6 matches for "nbkdit".

Did you mean: nbdkit
2020 Mar 20
2
[nbdkit PATCH] tests: Don't strand hung nbdkit processes
...ble, skipping this test" + exit 77 fi } @@ -139,7 +139,32 @@ start_nbdkit () fi # Kill nbdkit on exit. - cleanup_fn kill "$(cat "$pidfile")" + cleanup_fn kill_nbdkit "$(cat "$pidfile")" +} + +# kill_nbdkit pid +# +# End the nbkdit process that created pidfile. Exit this script with an +# error if nbdkit does not gracefully shutdown in a timely manner. +kill_nbdkit () +{ + local pid=$1 i + + # Start with SIGTERM, and wait for graceful exit + kill $pid + for i in {1..60}; do + if ! kill -0 $pid 2>/dev/nu...
2019 May 28
1
Re: [PATCH] api: Add a special type for the flags argument.
..., nbd.CMD_FLAG_FUA) There's still the question of how to pass two flags at once; if I understand your patch (and after confirming it with nbdsh), we have to write: h.zero (64*1024, 0, nbd.CMD_FLAG_FUA | nbd.CMD_FLAG_NO_HOLE) [side note - requires a server that supports flush; to my surprise, nbkdit 'null' does but 'memory' did not; I'll probably fix that] I don't know if we want to somehow allow: h.zero (64*1024, 0, nbd.CMD_FLAG_FUA, nbd.CMD_FLAG_NO_HOLE) instead (two arguments, each with one flag, which the glue code then combines into a single integer; compared to...
2019 Aug 23
1
[nbdkit PATCH 1/3] server: Add internal support for NBDKIT_FLAG_FAST_ZERO
Qemu was able to demonstrate that knowing whether a zero operation is fast is useful when copying from one image to another: there is a choice between bulk pre-zeroing and then revisiting the data sections (fewer transactions, but depends on the zeroing to be fast), vs. visiting every portion of the disk only once (more transactions, but no time lost to duplicated I/O due to slow zeroes). As
2019 May 28
2
[PATCH] api: Add a special type for the flags argument.
This applies on top of patches 1 & 2 here (instead of patch 3): https://www.redhat.com/archives/libguestfs/2019-May/msg00206.html https://www.redhat.com/archives/libguestfs/2019-May/msg00207.html Rich.
2020 Aug 18
3
[libnbd PATCH v3 0/2] Implementing NBD_OPT_LIST
This is a subset of my v2 posting, but limited to just the NBD_OPT_LIST handling. The biggest change since v2 is the addition of added unit testing in all four language bindings (C, python, ocaml, golang). The tests require nbdkit built from git on PATH, and may not be entirely idiomatic, but I at least validated that they catch issues (for example, adding an exit statement near the end of the
2020 Mar 26
15
[PATCH nbdkit 0/9] Create libnbdkit.so
This creates libnbdkit.so as discussed in the following thread: https://www.redhat.com/archives/libguestfs/2020-March/thread.html#00203 test-delay-shutdown.sh fails for unclear reasons. This series starts by reverting "tests: Don't strand hung nbdkit processes" which is because several other tests fail randomly unless I revert this patch. I didn't investigate this yet so it