You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/nbd
Vladimir Sementsov-Ogievskiy 1ed8903916 treewide: handle result of qio_channel_set_blocking()
Currently, we just always pass NULL as errp argument. That doesn't
look good.

Some realizations of interface may actually report errors.
Channel-socket realization actually either ignore or crash on
errors, but we are going to straighten it out to always reporting
an errp in further commits.

So, convert all callers to either handle the error (where environment
allows) or explicitly use &error_abort.

Take also a chance to change the return value to more convenient
bool (keeping also in mind, that underlying realizations may
return -1 on failure, not -errno).

Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
[DB: fix return type mismatch in TLS/websocket channel
     impls for qio_channel_set_blocking]
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2 weeks ago
..
client-connection.c nbd: Set unix socket send buffer on macOS 4 months ago
client.c nbd/server: do not poll within a coroutine context 1 year ago
common.c nbd: Set unix socket send buffer on Linux 4 months ago
meson.build nbd: move connection code from block/nbd to nbd/client-connection 4 years ago
nbd-internal.h nbd: Set unix socket send buffer on macOS 4 months ago
server.c treewide: handle result of qio_channel_set_blocking() 2 weeks ago
trace-events nbd/server: CVE-2024-7409: Drop non-negotiating clients 1 year ago
trace.h