[Libguestfs] [nbdkit PATCH 0/2] Avoid oddities with files unaligned to granularity
Eric Blake
eblake at redhat.com
Thu May 16 02:27:38 UTC 2019
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
More information about the Libguestfs
mailing list