Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getDiskLocation (0.06 sec)

  1. docs/debugging/reorder-disks/main.go

    	if err != nil {
    		return format{}, err
    	}
    	var f format
    	err = json.Unmarshal(formatJSON, &f)
    	if err != nil {
    		return format{}, err
    	}
    
    	return f, nil
    }
    
    func getDiskLocation(f format) (string, error) {
    	for i, set := range f.XL.Sets {
    		for j, disk := range set {
    			if disk == f.XL.This {
    				return fmt.Sprintf("%d-%d", i, j), nil
    			}
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top