When using a filter that rounds up to alignment boundaries, the tail
bytes of the plugin are difficult to access correctly. Rather than
duplicating lots of code already in the truncate filter, it's easier
to just make the other filters default to rounding down and add doc
links on how to round up instead.

Eric Blake (2):
  blocksize: Lift restriction against 0-size file
  cache, cow: Round size down

 filters/blocksize/nbdkit-blocksize-filter.pod | 15 +++++++++---
 filters/cache/nbdkit-cache-filter.pod         |  9 +++++++-
 filters/cow/nbdkit-cow-filter.pod             |  8 +++++++
 filters/truncate/nbdkit-truncate-filter.pod   |  9 ++++++++
 filters/blocksize/blocksize.c                 | 23 ++++---------------
 filters/cache/cache.c                         |  8 +++++--
 filters/cow/cow.c                             |  6 ++++-
 7 files changed, 53 insertions(+), 25 deletions(-)

-- 
2.20.1

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to