- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for DeviceOpened (0.1 sec)
-
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)