Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for checkPartSuccess (0.24 sec)

  1. cmd/erasure-healing_test.go

    				nil,
    			},
    			dataErrs: map[int][]int{
    				0: {checkPartFileNotFound, checkPartSuccess, checkPartSuccess, checkPartSuccess},
    				1: {checkPartSuccess, checkPartFileNotFound, checkPartSuccess, checkPartSuccess},
    				2: {checkPartSuccess, checkPartSuccess, checkPartFileNotFound, checkPartSuccess},
    				3: {checkPartSuccess, checkPartSuccess, checkPartSuccess, checkPartFileNotFound},
    			},
    			expectedMeta:     fi,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  2. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. cmd/erasure-healing.go

    			nonActionableCount++
    		}
    	}
    	return
    }
    
    func danglingPartErrsCount(results []int) (notFoundCount int, nonActionableCount int) {
    	for _, partResult := range results {
    		switch partResult {
    		case checkPartSuccess:
    			continue
    		case checkPartFileNotFound:
    			notFoundCount++
    		default:
    			// All other errors are non-actionable
    			nonActionableCount++
    		}
    	}
    	return
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.8K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    			continue
    		}
    		// Check if shard is truncated.
    		if st.Size() < fi.Erasure.ShardFileSize(part.Size) {
    			resp.Results[i] = checkPartFileCorrupt
    			continue
    		}
    		resp.Results[i] = checkPartSuccess
    	}
    
    	return &resp, nil
    }
    
    // deleteFile deletes a file or a directory if its empty unless recursive
    // is set to true. If the target is successfully deleted, it will recursively
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top