containerd/sys
Sebastiaan van Stijn a983599e2b
sys: update volumePath regex to allow returning earlier
The regex only matched volume paths without a trailing path-separator. In cases
where a path would be passed with a trailing path-separator, it would depend on
further code in mkdirall to strip the trailing slash, then to perform the regex
again in the next iteration.

While regexes aren't ideal, we're already executing this one, so we may as well
use it to match those situations as well (instead of executing it twice), to
allow us to return early.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-10-17 00:55:37 +02:00
..
reaper feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
epoll.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
fds.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
filesys_deprecated_windows.go replace sys Sequential funcs with moby/sys/sequential 2022-08-29 18:36:34 +02:00
filesys_unix.go sys: move ForceRemoveAll to integration/client 2022-08-30 17:39:18 +02:00
filesys_windows.go sys: update volumePath regex to allow returning earlier 2022-10-17 00:55:37 +02:00
oom_linux_test.go Use testify 2022-04-01 18:17:58 -07:00
oom_linux.go refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
oom_unsupported.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
socket_unix.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
socket_windows.go Remove redundant build tags 2021-08-05 22:27:46 -07:00
userns_deprecated.go Move RunningInUserNS() to its own package 2021-03-23 11:29:53 +01:00