Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LockAndCheckSubPath (0.14 sec)

  1. pkg/kubelet/util/util_unsupported.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package util
    
    import (
    	"fmt"
    	"time"
    )
    
    // LockAndCheckSubPath empty implementation
    func LockAndCheckSubPath(volumePath, subPath string) ([]uintptr, error) {
    	return []uintptr{}, nil
    }
    
    // UnlockPath empty implementation
    func UnlockPath(fileHandles []uintptr) {
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. pkg/volume/util/subpath/subpath_windows_test.go

    			}
    		}
    
    		fileHandles, err := lockAndCheckSubPath(test.volumePath, test.subPath)
    		unlockPath(fileHandles)
    		assert.Equal(t, test.expectedHandleCount, len(fileHandles))
    		if test.expectError {
    			assert.NotNil(t, err, "Expect error during LockAndCheckSubPath(%s, %s)", test.volumePath, test.subPath)
    			continue
    		}
    		assert.Nil(t, err, "Expect no error during LockAndCheckSubPath(%s, %s)", test.volumePath, test.subPath)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 13.8K bytes
    - Viewed (0)
  3. pkg/volume/util/subpath/subpath_windows.go

    }
    
    // check whether hostPath is within volume path
    // this func will lock all intermediate subpath directories, need to close handle outside of this func after container started
    func lockAndCheckSubPath(volumePath, hostPath string) ([]uintptr, error) {
    	if len(volumePath) == 0 || len(hostPath) == 0 {
    		return []uintptr{}, nil
    	}
    
    	finalSubPath, err := evalSymlink(hostPath)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top