search for: name_of_nbd_

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

2019 Sep 24
0
[PATCH nbdkit 2/4] common/protocol: Remove protostrings.sed, use bash+sed instead.
...(int fl) {\ - switch (fl) {/; - - # Convert #define lines into cases. - s/^#define \([_A-Z]*\).*/ case \1: return "\1\";/; - - # Append closing brace. - s/^$/ default: return "unknown";\ - }\ -}/; - - # Print pattern buffer. - p; - -} +# Generate each 'const char *name_of_nbd_<fn>' +for fn in "${!functions[@]}"; do + echo 'extern const char *' + echo "name_of_nbd_$fn (int fl)" + echo '{' + echo ' switch (fl) {' + $SED -n "/^#define ${functions[$fn]}/,/^$/p" nbd-protocol.h | + $SED '...
2019 Sep 24
11
[PATCH nbdkit 0/4] common/protocol: Unify public <nbd-protocol.h>
We should have only one NBD protocol file. Let's make nbdkit's version the canonical one, and use it in libnbd. Rich.