Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getDiskInfo (0.09 sec)

  1. cmd/xl-storage.go

    					dcinfo.Healing = true
    				}
    			}
    
    			dcinfo.ID = diskID
    			return dcinfo, err
    		},
    	)
    
    	// Success.
    	return s, nil
    }
    
    // getDiskInfo returns given disk information.
    func getDiskInfo(drivePath string) (di disk.Info, rootDrive bool, err error) {
    	if err = checkPathLength(drivePath); err == nil {
    		di, err = disk.GetInfo(drivePath, false)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  2. cmd/xl-storage_test.go

    }
    
    // TestXLStorages xlStorage.getDiskInfo()
    func TestXLStorageGetDiskInfo(t *testing.T) {
    	path := t.TempDir()
    
    	testCases := []struct {
    		diskPath    string
    		expectedErr error
    	}{
    		{path, nil},
    		{"/nonexistent-dir", errDiskNotFound},
    	}
    
    	// Check test cases.
    	for _, testCase := range testCases {
    		if _, _, err := getDiskInfo(testCase.diskPath); err != testCase.expectedErr {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
Back to top