Displaying 2 results from an estimated 2 matches for "do_nbdkit_list".
2020 Aug 07
0
[nbdkit PATCH 2/4] file: Add .list_exports support
...bd >= 1.3.11,
+# which does not have its own decent witness...
+requires nbdsh -c 'print (h.get_list_export_description)'
+
+requires nbdinfo --version
+requires jq --version
+
+files="file-dir file-dir.out file-dir.witness"
+rm -rf $files
+cleanup_fn rm -rf $files
+fail=0
+
+# do_nbdkit_list [--no-sort] EXPOUT
+# Check that the advertised list of exports matches EXPOUT
+do_nbdkit_list ()
+{
+ sort=' | sort'
+ if [ "$1" = --no-sort ]; then
+ sort=
+ shift
+ fi
+ nbdkit -U - -v file directory=file-dir \
+ --run 'nbdinfo --list --json "$uri&qu...
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