- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for DeviceOpened (0.79 sec)
-
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) -
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) -
pkg/volume/util/hostutil/hostutil_linux.go
func NewHostUtil() *HostUtil { return &HostUtil{} } // DeviceOpened checks if block device in use by calling Open with O_EXCL flag. // If pathname is not a device, log and return false with nil error. // If open returns errno EBUSY, return true with nil error. // If open returns nil, return false with nil error. // Otherwise, return false with error func (hu *HostUtil) DeviceOpened(pathname string) (bool, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 23 08:36:44 UTC 2023 - 10K bytes - Viewed (0) -
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)