search for: nbdkitxxxxxx

Displaying 4 results from an estimated 4 matches for "nbdkitxxxxxx".

Did you mean: nbdkitshxxxxxx
2017 Nov 20
3
[nbdkit PATCH 0/2] Add nbd forwarder test coverage
To avoid bitrot, any new feature needs testsuite coverage ;) Still to come: once I get my work on parallel nbd finished, I will add a test-parallel-nbd.sh that closely mirrors what my other series added in test-parallel-file.sh. If desired, it might be a fun exercise to tweak test-nbd into using a for-loop of user-controlled depth for how deep you want to nest the forwarding tree, to see where
2017 Jan 31
0
[PATCH nbdkit] Add support for socket activation.
...ibs/nbdkit-" name "-plugin.so" + +/* Declare program_name. */ +#if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME == 1 +#include <errno.h> +#define program_name program_invocation_short_name +#else +#define program_name "nbdkit" +#endif + +static char tmpdir[] = "/tmp/nbdkitXXXXXX"; +static char sockpath[] = "/tmp/nbdkitXXXXXX/sock"; +static char pidpath[] = "/tmp/nbdkitXXXXXX/pid"; + +static pid_t pid = 0; + +static void +cleanup (void) +{ + if (pid > 0) + kill (pid, SIGTERM); + + unlink (pidpath); + unlink (sockpath); + rmdir (tmpdir); +...
2020 Apr 28
1
[PATCH nbdkit] freebsd, openbsd: Add an extern decl for environ.
...s/sh/call.c b/plugins/sh/call.c index 4ffacfcc..91e69e9a 100644 --- a/plugins/sh/call.c +++ b/plugins/sh/call.c @@ -53,6 +53,10 @@ #include "call.h" +#ifndef HAVE_ENVIRON_DECL +extern char **environ; +#endif + /* Temporary directory for scripts to use. */ char tmpdir[] = "/tmp/nbdkitXXXXXX"; -- 2.25.0
2019 Sep 01
11
[nbdkit PATCH 00/10] Avoid -Wshadow
While working on can_FOO caching, at one point I got confused by whether 'readonly' meant the global set by -r or a local passed to .open(). A quick attempt to compile with -Wshadow found several other confusing points; this series gets us to the point that we can add -Wshadow to builds with --enable-gcc-warnings. Eric Blake (10): server: Avoid -Wshadow warnings guestfs: Avoid