Displaying 3 results from an estimated 3 matches for "368f1eb".
2018 Dec 14
0
[PATCH nbdkit 1/3] sh: Implement inline scripts.
...;'EOF'
+ case "$1" in
+ get_size) echo 1M ;;
+ pread) dd if=/dev/zero count=$3 iflag=count_bytes ;;
+ *) exit 2 ;;
+ esac
+ EOF
+
=head1 WRITING AN NBDKIT SH PLUGIN
For an example plugin written in Bash, see:
diff --git a/plugins/sh/sh.c b/plugins/sh/sh.c
index 368f1eb..fcd839b 100644
--- a/plugins/sh/sh.c
+++ b/plugins/sh/sh.c
@@ -39,6 +39,7 @@
#include <string.h>
#include <unistd.h>
#include <errno.h>
+#include <sys/stat.h>
#include <nbdkit-plugin.h>
@@ -115,6 +116,50 @@ sh_dump_plugin (void)
}
}
+/* This implements t...
2018 Dec 15
5
[PATCH nbdkit v2 0/4] tests: Test export flags (eflags).
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-December/thread.html#00123
v2:
- Document "-" instead of "script=-" and use it in the test; and
verify this also works on FreeBSD; and verify that it doesn't
depend on the particular behaviour of our wrapper script and should
work with installed nbdkit too.
- Fix handling of zero flags parameter.
-
2018 Dec 14
6
[PATCH nbdkit 0/3] tests: Test export flags (eflags).
Some feature additions to the shell script plugin allow us to test the
export flags field reasonably easily.
Rich.