Here's an updated version which supports read, write, flush,
write-zeroes, discard and FUA:

https://gitlab.com/rwmjones/nbdkit/-/commits/2023-libblkio/

I was able to access a local file using the io_uring driver using
guestfish.  You can try it like this:

  $ ./nbdkit -fv blkio io_uring path=/var/tmp/fedora-36.img \
      --run ' guestfish --format=raw -a $uri -i '

I haven't tested it exhaustively, but it seems to work OK.  Obviously
it will be a bit slow.

It doesn't implement pre-allocated buffers, so advice on how and when
to do that would be welcome.

Rich.

PS: Eric: One thing we lack in the NBD space is a standards
conformance test [-suite].

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://listman.redhat.com/mailman/listinfo/libguestfs

Reply via email to