Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for convPartErrToInt (0.1 sec)

  1. cmd/erasure-healing-common.go

    		} else {
    			onlineDisks[index] = nil
    		}
    	}
    
    	return onlineDisks, modTime, ""
    }
    
    // Convert verify or check parts returned error to integer representation
    func convPartErrToInt(err error) int {
    	err = unwrapAll(err)
    	switch err {
    	case nil:
    		return checkPartSuccess
    	case errFileNotFound, errFileVersionNotFound:
    		return checkPartFileNotFound
    	case errFileCorrupt:
    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/xl-storage.go

    		err := s.bitrotVerify(ctx, partPath,
    			erasure.ShardFileSize(part.Size),
    			checksumInfo.Algorithm,
    			checksumInfo.Hash, erasure.ShardSize())
    
    		resp.Results[i] = convPartErrToInt(err)
    
    		// Only log unknown errors
    		if resp.Results[i] == checkPartUnknown && err != errFileAccessDenied {
    			logger.GetReqInfo(ctx).AppendTags("disk", s.String())
    			storageLogOnceIf(ctx, err, partPath)
    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