Displaying 2 results from an estimated 2 matches for "do_nbdkit_fail".
2020 Aug 07
0
[nbdkit PATCH 2/4] file: Add .list_exports support
...- -v file directory=file-dir \
+ --run 'nbdinfo --list --json "$uri"' >file-dir.out
+ cat file-dir.out
+ diff -u <(jq -c '[.exports[]."export-name"]'"$sort" file-dir.out) \
+ <(printf %s\\n "$1") || fail=1
+}
+
+# do_nbdkit_fail NAME
+# Check that attempting to connect to export NAME fails
+do_nbdkit_fail ()
+{
+ # The --run script occurs only if nbdkit gets past .config_complete;
+ # testing for witness proves that our failure was during .open and
+ # not at some earlier point
+ rm -f file-dir.witness
+ nbd...
2020 Aug 07
8
[nbdkit PATCH 0/4] More .list_exports uses
Here's changes to the file plugin (which I'm happy with) and a new
exportname filter (which is still at RFC stage; I need to finish
implementing strict mode in .open, and add tests).
I also discovered that we really want .list_exports and .open to know
when they are used on plaintext vs. tls clients for --tls=on, and we
may want to split out a new .default_export callback rather than