[Libguestfs] [PATCH nbdkit v2 0/7] server: Add new plugin/filter .block_size

Richard W.M. Jones rjones at redhat.com
Thu Feb 17 14:36:41 UTC 2022


v1 was posted here:
https://listman.redhat.com/archives/libguestfs/2022-February/thread.html#00224

The changes since v1:

Extra checks for plugin:
  * minimum between 1 and 64K
  * preferred must be a power of 2
  * prefered must be 512 .. 32M
  * maximum must be 0xffff_ffff or a multiple of minimum

Same extra checks added to the filter

Add the tls-fallback filter patch.  This has to be added early on to
avoid a bisection problem with the tests.

Documentation
  * fixed minor typos
  * document what "preferred" means wrt read-modify-write
  * document returning all zeroes to mean no information

Rename new filter to "nbdkit-blocksize-policy-filter"

Document how to use nbdkit-blocksize-filter + blocksize-policy together

Implement error policy
  * add new test to cover it

However I chose _not_ to implement other error policies.  We can
extend them in future if required.

Rich.





More information about the Libguestfs mailing list