containerd/pkg/cri
Amit Barve bfde58e3cd Bug fix for mount path handling
Currently when handling 'container_path' elements in container mounts we simply call
filepath.Clean on those paths. However, filepath.Clean adds an extra '.' if the path is a
simple drive letter ('E:' or 'Z:' etc.). These type of paths cause failures (with incorrect
parameter error) when creating containers via hcsshim. This commit checks for such paths
and doesn't call filepath.Clean on them.
It also adds a new check to error out if the destination path is a C drive and moves the
dst path checks out of the named pipe condition.

Signed-off-by: Amit Barve <ambarve@microsoft.com>
2022-03-21 09:40:19 -07:00
..
annotations cri, sandbox: pass sandbox resource details if available, applicable 2021-12-13 08:41:41 -08:00
config feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
constants move up to CRI v1 and support v1alpha in parallel 2021-06-28 09:34:12 -05:00
io Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
opts Bug fix for mount path handling 2022-03-21 09:40:19 -07:00
server Add nolint:staticcheck to platform-specific calls 2022-03-17 18:24:00 -04:00
store test: use T.TempDir to create temporary test directory 2022-03-15 14:03:50 +08:00
streaming go.mod: update to github.com/emicklei/go-restful/v3 v3.7.3 2022-02-18 21:54:27 +01:00
util Replace golang.org/x/net/context with std library 2022-02-22 02:27:05 +08:00
cri.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00