- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for PathWithinBase (3.01 sec)
-
pkg/volume/util/subpath/subpath_linux.go
cleanupAction = nil return newHostPath, cleanupAction, err } // This implementation is shared between Linux and NsEnter func safeOpenSubPath(mounter mount.Interface, subpath Subpath) (int, error) { if !mount.PathWithinBase(subpath.Path, subpath.VolumePath) { return -1, fmt.Errorf("subpath %q not within volume path %q", subpath.Path, subpath.VolumePath) } fd, err := doSafeOpen(subpath.Path, subpath.VolumePath) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 12 14:09:11 UTC 2022 - 21.4K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_windows.go
break } if stat.Mode()&os.ModeSymlink != 0 { errorResult = fmt.Errorf("subpath %q is an unexpected symlink after EvalSymlinks", currentFullPath) break } if !mount.PathWithinBase(currentFullPath, volumePath) { errorResult = fmt.Errorf("SubPath %q not within volume path %q", currentFullPath, volumePath) break } } return fileHandles, errorResult }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 12:57:11 UTC 2023 - 12.5K bytes - Viewed (0) -
pkg/volume/local/local.go
refs, err := mounter.GetMountRefs(mountPath) if err != nil { return volume.ReconstructedVolume{}, err } baseMountPath := plugin.generateBlockDeviceBaseGlobalPath() for _, ref := range refs { if mount.PathWithinBase(ref, baseMountPath) { // If the global mount for block device exists, the source is block // device. // The resolved device path may not be the exact same as path in
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 22.2K bytes - Viewed (0) -
pkg/volume/util/hostutil/hostutil_linux.go
// point that is prefix of 'path' - that's the mount where path resides var info *mount.MountInfo for i := len(infos) - 1; i >= 0; i-- { if mount.PathWithinBase(path, infos[i].MountPoint) { info = &infos[i] break } } if info == nil { return mount.MountInfo{}, fmt.Errorf("cannot find mount point for %q", path) } return *info, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 23 08:36:44 UTC 2023 - 10K bytes - Viewed (0)