k3s/pkg/volume/empty_dir
Eric Paris f125ad88ce Rename IsMountPoint to IsLikelyNotMountPoint
IsLikelyNotMountPoint determines if a directory is not a mountpoint.
It is fast but not necessarily ALWAYS correct. If the path is in fact
a bind mount from one part of a mount to another it will not be detected.
mkdir /tmp/a /tmp/b; mount --bin /tmp/a /tmp/b; IsLikelyNotMountPoint("/tmp/b")
will return true. When in fact /tmp/b is a mount point. So this patch
renames the function and switches it from a positive to a negative (I
could think of a good positive name). This should make future users of
this function aware that it isn't quite perfect, but probably good
enough.
2015-08-14 18:45:43 -04:00
..
chcon_runner.go Make emptyDir volumes work for non-root UIDs 2015-07-29 18:36:51 -04:00
chcon_runner_linux.go Make emptyDir volumes work for non-root UIDs 2015-07-29 18:36:51 -04:00
chcon_runner_unsupported.go Make emptyDir volumes work for non-root UIDs 2015-07-29 18:36:51 -04:00
doc.go Add doc.go files for all volume plugins 2015-05-23 16:59:12 -04:00
empty_dir.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
empty_dir_linux.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
empty_dir_test.go Correcting all go vet errors 2015-08-11 13:55:37 -07:00
empty_dir_unsupported.go rewrite go imports 2015-08-05 17:30:03 -07:00