- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for FindDevicesForISCSILun (0.21 sec)
-
pkg/volume/util/device_util_unsupported.go
func (handler *deviceHandler) GetISCSIPortalHostMapForTarget(targetIqn string) (map[string]int, error) { portalHostMap := make(map[string]int) return portalHostMap, nil } // FindDevicesForISCSILun unsupported returns nil func (handler *deviceHandler) FindDevicesForISCSILun(targetIqn string, lun int) ([]string, error) { devices := []string{} return devices, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 1.3K bytes - Viewed (0) -
pkg/volume/util/device_util.go
type DeviceUtil interface { FindMultipathDeviceForDevice(disk string) string FindSlaveDevicesOnMultipath(disk string) []string GetISCSIPortalHostMapForTarget(targetIqn string) (map[string]int, error) FindDevicesForISCSILun(targetIqn string, lun int) ([]string, error) } type deviceHandler struct { getIo IoUtil } // NewDeviceHandler Create a new IoHandler implementation func NewDeviceHandler(io IoUtil) DeviceUtil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 1.1K bytes - Viewed (0) -
pkg/volume/util/device_util_linux.go
portalHostMap[persistentPortal] = hostNumber } } } return portalHostMap, nil } // FindDevicesForISCSILun given an iqn, and lun number, find all the devices // corresponding to that LUN. func (handler *deviceHandler) FindDevicesForISCSILun(targetIqn string, lun int) ([]string, error) { devices := make([]string, 0) io := handler.getIo // Iterate over all the iSCSI hosts in sysfs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 11:12:06 UTC 2022 - 9.4K bytes - Viewed (0) -
pkg/volume/util/device_util_linux_test.go
} } func TestFindDevicesForISCSILun(t *testing.T) { mockDeviceUtil := NewDeviceHandler(&mockOsIOHandler{}) devices, err := mockDeviceUtil.FindDevicesForISCSILun("target1", 1) if err != nil { t.Fatalf("error getting devices for lun: %v", err) } if devices == nil { t.Fatal("no devices returned") } if len(devices) != 1 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 8K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_util.go
if err != nil { klog.Errorf("iscsi delete devices: lun is not a number: %s\nError: %v", c.iscsiDisk.Lun, err) return err } // Enumerate the devices so we can delete them deviceNames, err := c.deviceUtil.FindDevicesForISCSILun(c.iscsiDisk.Iqn, lunNumber) if err != nil { klog.Errorf("iscsi delete devices: could not get devices associated with LUN %d on target %s\nError: %v", lunNumber, c.iscsiDisk.Iqn, err) return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 22 12:53:01 UTC 2022 - 34.1K bytes - Viewed (0)