Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for checkPartSuccess (0.15 sec)

  1. cmd/erasure-healing-common.go

    	}
    }
    
    func partNeedsHealing(partErrs []int) bool {
    	return slices.IndexFunc(partErrs, func(i int) bool { return i != checkPartSuccess && i != checkPartUnknown }) > -1
    }
    
    func hasPartErr(partErrs []int) bool {
    	return slices.IndexFunc(partErrs, func(i int) bool { return i != checkPartSuccess }) > -1
    }
    
    // disksWithAllParts - This function needs to be called with
    // []StorageAPI returned by listOnlineDisks. Returns,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. cmd/storage-datatypes.go

    }
    
    const (
    	checkPartUnknown int = iota
    
    	// Changing the order can cause a data loss
    	// when running two nodes with incompatible versions
    	checkPartSuccess
    	checkPartDiskNotFound
    	checkPartVolumeNotFound
    	checkPartFileNotFound
    	checkPartFileCorrupt
    )
    
    // CheckPartsResp is a response of the storage CheckParts and VerifyFile APIs
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  3. cmd/xl-storage.go

    	if st.Mode().IsDir() {
    		resp = checkPartFileNotFound
    		return
    	}
    	// Check if shard is truncated.
    	if st.Size() < expectedSize {
    		resp = checkPartFileCorrupt
    		return
    	}
    	return checkPartSuccess
    }
    
    // CheckParts check if path has necessary parts available.
    func (s *xlStorage) CheckParts(ctx context.Context, volume string, path string, fi FileInfo) (*CheckPartsResp, error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top