Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DeviceOpened (0.22 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)
  3. pkg/volume/util/operationexecutor/operation_generator.go

    		deviceOpened = false
    	} else if devicePathErr != nil {
    		return false, deviceToDetach.GenerateErrorDetailed("PathIsDevice failed", devicePathErr)
    	} else {
    		deviceOpened, deviceOpenedErr = hostUtil.DeviceOpened(deviceToDetach.DevicePath)
    		if deviceOpenedErr != nil {
    			return false, deviceToDetach.GenerateErrorDetailed("DeviceOpened failed", deviceOpenedErr)
    		}
    	}
    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