On Tue, 15 Apr 2025 at 16:33, Daniel P. Berrangé <berra...@redhat.com> wrote:
> Because that's what the QEMU API specification declares
>  * Not all implementations will support this facility, so may report
>  * an error. To avoid errors, the caller may check for the feature
>  * flag QIO_CHANNEL_FEATURE_SEEKABLE prior to calling this method.
>
> and what the QEMU API impl defines
>
>       if (!qio_channel_has_feature(ioc, QIO_CHANNEL_FEATURE_SEEKABLE)) {
>           error_setg_errno(errp, EINVAL, "Requested channel is not seekable");
>           return -1;
>       }

* ie. _FEATURE_SEEKABLE should be set iff the underlying
channel/stream supports seek (random access) functionality, right?
That is quite connected with the lseek(2) OR ->io_seek() and such
support, no?

Thank you.
---
  - Prasad


Reply via email to