containerd/content
Akihiro Suda 7b323b1402 services/content: fix reading a blob which is smaller than the read buffer.
The newly added test fails without this fix in services/content/service.go:

    $ go test -c . && sudo ./containerd.test -test.v -test.root -test.run TestContentClient
    ...
        --- FAIL: TestContentClient/SmallBlob (0.02s)
            provideringester.go:62: rpc error: code = OutOfRange desc = read
    past object length 6 bytes
            helpers.go:67: drwx------       4096
    /tmp/content-suite-ContentClient-286788688
    FAIL

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-03-23 12:51:28 +09:00
..
local Licence header added 2018-02-19 10:32:26 +09:00
testsuite services/content: fix reading a blob which is smaller than the read buffer. 2018-03-23 12:51:28 +09:00
content.go Licence header added 2018-02-19 10:32:26 +09:00
helpers_test.go Licence header added 2018-02-19 10:32:26 +09:00
helpers.go Add writer open helper to handle unavailable refs 2018-03-21 16:30:22 -07:00