search for: do_nbdkit_pass

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

2020 Aug 07
0
[nbdkit PATCH 2/4] file: Add .list_exports support
...g .open and + # not at some earlier point + rm -f file-dir.witness + nbdkit -U - -v -e "$1" file directory=file-dir \ + --run 'touch file-dir.witness; nbdsh -u "$uri" -c "quit()"' && fail=1 + test -f file-dir.witness || fail=1 +} + +# do_nbdkit_pass NAME DATA +# Check that export NAME serves DATA as its first byte +do_nbdkit_pass () +{ + out=$(nbdkit -U - -v -e "$1" file directory=file-dir \ + --run 'nbdsh -u "$uri" -c "print (h.pread (1, 0).decode (\"utf-8\"))"') + test "$out" =...
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