- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for extractDeviceAndPrefix (0.26 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)