k3s/pkg/util/mount
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
..
doc.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
fake.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
mount.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
mount_linux.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
mount_linux_test.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
mount_unsupported.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
nsenter_mount.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00
nsenter_mount_unsupported.go Rename IsMountPoint to IsLikelyNotMountPoint 2015-08-14 18:45:43 -04:00