Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for PathIsDevice (0.14 sec)

  1. pkg/volume/util/hostutil/hostutil_unsupported.go

    // DeviceOpened always returns an error on unsupported platforms
    func (hu *HostUtil) DeviceOpened(pathname string) (bool, error) {
    	return false, errUnsupported
    }
    
    // PathIsDevice always returns an error on unsupported platforms
    func (hu *HostUtil) PathIsDevice(pathname string) (bool, error) {
    	return true, errUnsupported
    }
    
    // GetDeviceNameFromMount always returns an error on unsupported platforms
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 10:17:38 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  2. pkg/volume/util/hostutil/fake_hostutil.go

    	hu.mutex.Lock()
    	defer hu.mutex.Unlock()
    
    	for _, mp := range hu.MountPoints {
    		if mp.Device == pathname {
    			return true, nil
    		}
    	}
    	return false, nil
    }
    
    // PathIsDevice always returns true
    func (hu *FakeHostUtil) PathIsDevice(pathname string) (bool, error) {
    	return true, nil
    }
    
    // GetDeviceNameFromMount given a mount point, find the volume id
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 13:32:38 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. pkg/volume/util/hostutil/hostutil.go

    type HostUtils interface {
    	// DeviceOpened determines if the device (e.g. /dev/sdc) is in use elsewhere
    	// on the system, i.e. still mounted.
    	DeviceOpened(pathname string) (bool, error)
    	// PathIsDevice determines if a path is a device.
    	PathIsDevice(pathname string) (bool, error)
    	// GetDeviceNameFromMount finds the device name by checking the mount path
    	// to get the global mount path within its plugin directory.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 13:38:40 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. pkg/volume/util/hostutil/hostutil_windows.go

    }
    
    // DeviceOpened determines if the device is in use elsewhere
    func (hu *HostUtil) DeviceOpened(pathname string) (bool, error) {
    	return false, nil
    }
    
    // PathIsDevice determines if a path is a device.
    func (hu *HostUtil) PathIsDevice(pathname string) (bool, error) {
    	return false, nil
    }
    
    // MakeRShared checks that given path is on a mount with 'rshared' mount
    // propagation. Empty implementation here.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 13:38:40 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. pkg/volume/util/hostutil/hostutil_linux.go

    // Otherwise, return false with error
    func (hu *HostUtil) DeviceOpened(pathname string) (bool, error) {
    	return ExclusiveOpenFailsOnDevice(pathname)
    }
    
    // PathIsDevice uses FileInfo returned from os.Stat to check if path refers
    // to a device.
    func (hu *HostUtil) PathIsDevice(pathname string) (bool, error) {
    	pathType, err := hu.GetFileType(pathname)
    	isDevice := pathType == FileTypeCharDev || pathType == FileTypeBlockDev
    	return isDevice, err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 23 08:36:44 UTC 2023
    - 10K bytes
    - Viewed (0)
  6. pkg/volume/util/operationexecutor/operation_generator.go

    			return volumetypes.NewOperationContext(eventErr, detailedErr, migrated)
    		}
    		// Before logging that UnmountDevice succeeded and moving on,
    		// use hostutil.PathIsDevice to check if the path is a device,
    		// if so use hostutil.DeviceOpened to check if the device is in use anywhere
    		// else on the system. Retry if it returns true.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
Back to top