Displaying 2 results from an estimated 2 matches for "88a41044".
2019 Aug 13
3
[nbdkit PATCH 0/2] errno cleanup patches
I ran into these while trying to prepare patches to add
NBD_CMD_FLAG_FAST_ZERO, which will expose a new NBD_ENOTSUP wire
value.
Eric Blake (2):
plugins: Don't lose original error when emulating FUA
plugins: Permit ENOTSUP as synonym for EOPNOTSUPP
docs/nbdkit-filter.pod | 11 ++++++-----
docs/nbdkit-plugin.pod | 12 +++++++-----
plugins/file/file.c | 16 +++++++++++-----
2019 Aug 13
0
[nbdkit PATCH 2/2] plugins: Permit ENOTSUP as synonym for EOPNOTSUPP
...(last_error == EOPNOTSUPP ||
+ if (last_error == EOPNOTSUPP || last_error == ENOTSUP ||
exception_happened == EXCEPTION_NO_METHOD_ERROR) {
nbdkit_debug ("zero falling back to pwrite");
nbdkit_set_error (EOPNOTSUPP);
diff --git a/server/plugins.c b/server/plugins.c
index 88a41044..1497c8b1 100644
--- a/server/plugins.c
+++ b/server/plugins.c
@@ -679,7 +679,7 @@ plugin_zero (struct backend *b, struct connection *conn,
emulate = true;
if (r == -1)
*err = emulate ? EOPNOTSUPP : get_error (p);
- if (r == 0 || *err != EOPNOTSUPP)
+ if (r == 0 || (*err !=...