- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for GetISCSIPortalHostMapForTarget (0.4 sec)
-
pkg/volume/util/device_util_unsupported.go
func (handler *deviceHandler) FindSlaveDevicesOnMultipath(disk string) []string { out := []string{} return out } // GetISCSIPortalHostMapForTarget unsupported returns nil func (handler *deviceHandler) GetISCSIPortalHostMapForTarget(targetIqn string) (map[string]int, error) { portalHostMap := make(map[string]int) return portalHostMap, nil } // FindDevicesForISCSILun unsupported returns 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
*/ package util // DeviceUtil is a util for common device methods 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 }
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
} } return devices } // GetISCSIPortalHostMapForTarget given a target iqn, find all the scsi hosts logged into // that target. Returns a map of iSCSI portals (string) to SCSI host numbers (integers). // // For example: { // "192.168.30.7:3260": 2, // "192.168.30.8:3260": 3, // } func (handler *deviceHandler) GetISCSIPortalHostMapForTarget(targetIqn string) (map[string]int, error) {
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 TestGetISCSIPortalHostMapForTarget(t *testing.T) { mockDeviceUtil := NewDeviceHandler(&mockOsIOHandler{}) portalHostMap, err := mockDeviceUtil.GetISCSIPortalHostMapForTarget("target1") if err != nil { t.Fatalf("error getting scsi hosts for target: %v", err) } if portalHostMap == nil { t.Fatal("no portal host map returned") } if len(portalHostMap) != 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
defer b.plugin.targetLocks.UnlockKey(b.Iqn) // Build a map of SCSI hosts for each target portal. We will need this to // issue the bus rescans. portalHostMap, err := b.deviceUtil.GetISCSIPortalHostMapForTarget(b.Iqn) if err != nil { return "", err } klog.V(4).Infof("AttachDisk portal->host map for %s is %v", b.Iqn, portalHostMap) for i := 1; i <= maxAttachAttempts; i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 22 12:53:01 UTC 2022 - 34.1K bytes - Viewed (0)