Thanks - this was extremely useful. I have now completed a simple random-access XZ NBD server plugin:
https://github.com/libguestfs/nbdkit/tree/master/plugins/xz which may be of interest. It works enough that I can read out some xz-compressed Windows guest disks, which is a fairly good test. Currently the caching mechanism used for blocks is terrible so performance sucks. However that's something which is relatively easy to fix. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#)