- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getVolCount (0.12 sec)
-
pkg/volume/iscsi/iscsi_util.go
fsDir := host.GetPluginDir(iscsiPluginName) countFS, err := getVolCount(fsDir, portal, iqn) if err != nil { klog.Errorf("iscsi: could not determine FS volumes in use: %v", err) return true } blockDir := host.GetVolumeDevicePluginDir(iscsiPluginName) countBlock, err := getVolCount(blockDir, portal, iqn) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 22 12:53:01 UTC 2022 - 34.1K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_util_test.go
portal: "127.0.0.1:3260", iqn: "iqn.2003-01.io.k8s:e2e.unknown", count: 0, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { count, err := getVolCount(tc.baseDir, tc.portal, tc.iqn) if err != nil { t.Errorf("expected no error, got %v", err) } if count != tc.count { t.Errorf("expected %d volumes, got %d", tc.count, count) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 18 09:43:07 UTC 2022 - 14.5K bytes - Viewed (0)