containerd/testutil
Akihiro Suda 5cc915c26c overlay: add Supported() checker
This function is not called during plugin initialization (#2140),
but should be useful for downstream projects that uses overlayfs
snapshotter as a Go library.

Benchmark result on Ubuntu 17.10, GCE n1-standard-4:

BenchmarkOverlaySupportedOnExt4-4                    100          20490598 ns/op
BenchmarkOverlayUnsupportedOnFType0XFS-4           30000             39316 ns/op
BenchmarkOverlaySupportedOnFType1XFS-4               100          19287083 ns/op
BenchmarkOverlayUnsupportedOnFAT-4                   100          14217772 ns/op

i.e. the overhead is typically about 20 msec on this machine.

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-03-06 16:53:21 +09:00
..
helpers_unix.go overlay: add Supported() checker 2018-03-06 16:53:21 +09:00
helpers_windows.go Licence header added 2018-02-19 10:32:26 +09:00
helpers.go Licence header added 2018-02-19 10:32:26 +09:00
loopback_linux.go Licence header added 2018-02-19 10:32:26 +09:00
mount_linux.go Licence header added 2018-02-19 10:32:26 +09:00
mount_other.go Licence header added 2018-02-19 10:32:26 +09:00