Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DeviceOpened (0.12 sec)

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

    )
    
    // HostUtils defines the set of methods for interacting with paths on a host.
    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)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 13:38:40 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. pkg/volume/util/hostutil/hostutil_windows.go

    				return "", err
    			}
    			return volumeID, nil
    		}
    	}
    
    	return filepath.Base(mountPath), nil
    }
    
    // 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) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 13:38:40 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top