[Libguestfs] [PATCH nbdkit 0/5] protocol: Generate map functions from NBD protocol flags to printable strings.

Richard W.M. Jones rjones at redhat.com
Thu Dec 6 21:50:14 UTC 2018


With some crufty sed scripts we can generate functions that map from
NBD protocol flags (eg. NBD_CMD_READ) to strings ("NBD_CMD_READ").

This works on GNU sed and with FreeBSD, also with GNU sed's --posix
option, so I guess the sed code is POSIX-compatible.

Rich.





More information about the Libguestfs mailing list