search for: 59b26788

Displaying 3 results from an estimated 3 matches for "59b26788".

2019 Aug 13
0
[nbdkit PATCH 2/2] plugins: Permit ENOTSUP as synonym for EOPNOTSUPP
...t flags) return -1; } - if (errno == EOPNOTSUPP) + if (file_is_enotsup (EOPNOTSUPP)) h->can_punch_hole = false; nbdkit_debug ("ignoring failed fallocate during trim: %m"); diff --git a/plugins/perl/perl.c b/plugins/perl/perl.c index e8395dd2..59b26788 100644 --- a/plugins/perl/perl.c +++ b/plugins/perl/perl.c @@ -505,7 +505,7 @@ perl_zero (void *handle, uint32_t count, uint64_t offset, int may_trim) FREETMPS; LEAVE; - if (last_error == EOPNOTSUPP) { + if (last_error == EOPNOTSUPP || last_error == ENOTSUP) { /* When user r...
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 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