Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for partNeedsHealing (0.08 sec)

  1. cmd/erasure-healing-common_test.go

    				t.Errorf("Drive not filtered as expected, drive: %d", diskIndex)
    			}
    			if !partNeedsHealing(dataErrsPerDisk[diskIndex]) {
    				t.Errorf("Disk expected to be healed, driveIndex: %d", diskIndex)
    			}
    		} else {
    			if disk == nil {
    				t.Errorf("Drive erroneously filtered, driveIndex: %d", diskIndex)
    			}
    			if partNeedsHealing(dataErrsPerDisk[diskIndex]) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 15:19:10 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. cmd/erasure-healing-common.go

    		return checkPartFileCorrupt
    	case errVolumeNotFound:
    		return checkPartVolumeNotFound
    	case errDiskNotFound:
    		return checkPartDiskNotFound
    	default:
    		return checkPartUnknown
    	}
    }
    
    func partNeedsHealing(partErrs []int) bool {
    	return slices.IndexFunc(partErrs, func(i int) bool { return i != checkPartSuccess && i != checkPartUnknown }) > -1
    }
    
    func hasPartErr(partErrs []int) bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top