plugins: Match docs for .errno_is_preserved
commit1f5b642613edd7d84017b9a6068e6db3afd286e6
authorEric Blake <eblake@redhat.com>
Thu, 1 Aug 2019 21:56:22 +0000 (1 16:56 -0500)
committerEric Blake <eblake@redhat.com>
Fri, 2 Aug 2019 11:44:45 +0000 (2 06:44 -0500)
treefcaf9c6717c13cbd9c4e485efd4fb289ceed1e27
parent4c588cb415610bf8526f0ec881a8fd6a0d769f04
plugins: Match docs for .errno_is_preserved

Ever since commit 69ae137f, the docs claimed that we check
.errno_is_preserved == 1, but the code has checked for != 0.  It's
easy enough to add new fields if we need new semantics, so there is no
reason to break any existing plugin that was setting the field to 2;
so change the docs to match reality, but also change --dump-plugin to
canonicalize its output.

Furthermore, the mention of .errno_is_preserved in the docs was rather
hidden; a new section will make it easier to add future knobs that
likewise affect the plugin as a whole and not an individual
connection.

Fixes: 69ae137f
Signed-off-by: Eric Blake <eblake@redhat.com>
docs/nbdkit-plugin.pod
server/plugins.c