- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for extractDeviceAndPrefix (0.21 sec)
-
pkg/volume/iscsi/iscsi_util_test.go
mountPrefix := "/var/lib/kubelet/plugins/kubernetes.io/iscsi/iface-default/" + devicePath lun := "-lun-0" device, prefix, err := extractDeviceAndPrefix(mountPrefix + lun) if err != nil || device != (devicePath+lun) || prefix != mountPrefix { t.Errorf("extractDeviceAndPrefix: expected %s and %s, got %v %s and %s", devicePath+lun, mountPrefix, err, device, prefix) } } func TestExtractIface(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 18 09:43:07 UTC 2022 - 14.5K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi.go
return volume.ReconstructedVolume{}, fmt.Errorf("couldn't fetch globalPDPath. failed to obtain volume spec") } // Obtain iscsi disk configurations from globalPDPath device, _, err := extractDeviceAndPrefix(globalPDPath) if err != nil { return volume.ReconstructedVolume{}, err } bkpPortal, iqn, err := extractPortalAndIqn(device) if err != nil { return volume.ReconstructedVolume{}, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 23.4K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_util.go
klog.Errorf("iscsi detach disk: failed to unmount: %s\nError: %v", mntPath, err) return err } } // if device is no longer used, see if need to logout the target device, _, err := extractDeviceAndPrefix(mntPath) if err != nil { return err } var bkpPortal []string var volName, iqn, iface, initiatorName string found := true // load iscsi disk config from json file
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 22 12:53:01 UTC 2022 - 34.1K bytes - Viewed (0)