truncate: Implement .cache
commit10d1c6e72025fe4ce727dddb0d7c7f91746f3fe4
authorEric Blake <eblake@redhat.com>
Wed, 15 May 2019 20:37:25 +0000 (15 15:37 -0500)
committerEric Blake <eblake@redhat.com>
Fri, 17 May 2019 21:27:34 +0000 (17 16:27 -0500)
treed165a89a0a2af5f9edec64558f6b8fa44d62e1e3
parent9c649b3ade12313341597488134b7024e114823a
truncate: Implement .cache

In the truncate filter, all we need to do is copy-and-paste existing
per-command count rewriting (well, technically, this isn't enabled
until a later patch flips the default for .can_cache to pass-through).

Signed-off-by: Eric Blake <eblake@redhat.com>
filters/truncate/truncate.c