containerd/content
Derek McGowan a12f493bd3
Update copy to discard over truncate
Prevents the copy method from calling discard on the
writer when the reader is not seekable. Instead,
the copy method will discard up to the offset.
Truncate is a more expensive operation since any
bytes that are truncated already have their hash calculated
and are stored on disk in the backend. Re-writing bytes
which were truncated requires transfering the data over
GRPC again and re-computing the hash up to the point of
truncation.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-01-26 11:44:50 -08:00
..
local Add unconvert linter 2018-01-09 17:36:44 -05:00
testsuite Update copy to discard over truncate 2018-01-26 11:44:50 -08:00
content.go Abort newly created references on error 2017-10-11 10:10:19 -07:00
helpers_test.go Update copy to discard over truncate 2018-01-26 11:44:50 -08:00
helpers.go Update copy to discard over truncate 2018-01-26 11:44:50 -08:00