Displaying 3 results from an estimated 3 matches for "eopnosupp".
Did you mean:
eopnotsupp
2018 Jul 27
4
[PATCH] file: Fix zero/trim with block device
...or (copied from strace):
[pid 39551] fallocate(8, FALLOC_FL_ZERO_RANGE, 1536, 64000) = -1 ENODEV (No such device)
This is expected error according to the manual:
ENODEV fd does not refer to a regular file or a directory. (If fd is a
pipe or FIFO, a different error results.)
Treat this error as EOPNOSUPP.
Tested only on Fedora 28; I don't know how to build nbdkit on RHEL, but
the change is pretty trivial.
---
plugins/file/file.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/plugins/file/file.c b/plugins/file/file.c
index b6e33de..a7c07fb 100644
--- a/plugins/file...
2018 Jul 28
1
Re: [PATCH] file: Fix zero/trim with block device
...s result
> (using discard, if that works), and
> FALLOC_FL_PUNCH_HOLE|FALLOC_FL_NO_HIDE_STALE (which only discards,
> and no longer guarantees a read-zeroes result). But you are also
> right that in all cases, the errno returned when the operation
> cannot be supported is not always EOPNOSUPP.
>
> >
> >Treat this error as EOPNOSUPP.
> >
> >Tested only on Fedora 28; I don't know how to build nbdkit on RHEL, but
> >the change is pretty trivial.
> >---
> > plugins/file/file.c | 8 ++++----
> > 1 file changed, 4 insertions(+), 4 delet...
2018 Jul 27
0
Re: [PATCH] file: Fix zero/trim with block device
...uarantee a read-zeroes result (using discard,
if that works), and FALLOC_FL_PUNCH_HOLE|FALLOC_FL_NO_HIDE_STALE (which
only discards, and no longer guarantees a read-zeroes result). But you
are also right that in all cases, the errno returned when the operation
cannot be supported is not always EOPNOSUPP.
>
> Treat this error as EOPNOSUPP.
>
> Tested only on Fedora 28; I don't know how to build nbdkit on RHEL, but
> the change is pretty trivial.
> ---
> plugins/file/file.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/plugi...