- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for getDiskLocation (0.12 sec)
-
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)