Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for leash (0.26 sec)

  1. cmd/erasure-server-pool.go

    		var maxUsedPct int
    		for _, disk := range zinfo {
    			if disk == nil || disk.Total == 0 {
    				continue
    			}
    			available += disk.Total - disk.Used
    
    			// set maxUsedPct to the value from the disk with the least space percentage.
    			if pctUsed := int(disk.Used * 100 / disk.Total); pctUsed > maxUsedPct {
    				maxUsedPct = pctUsed
    			}
    		}
    
    		// Since we are comparing pools that may have a different number of sets
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  2. cmd/api-errors.go

    		HTTPStatusCode: http.StatusNotImplemented,
    	},
    	ErrPreconditionFailed: {
    		Code:           "PreconditionFailed",
    		Description:    "At least one of the pre-conditions you specified did not hold",
    		HTTPStatusCode: http.StatusPreconditionFailed,
    	},
    	ErrRequestTimeTooSkewed: {
    		Code:           "RequestTimeTooSkewed",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  3. cmd/erasure-object.go

    	for i := range onlineMeta {
    		// verify metadata is valid, it has similar erasure info
    		// as well as common modtime, if modtime is not possible
    		// verify if it has common "etag" at least.
    		if onlineMeta[i].IsValid() && onlineMeta[i].Erasure.Equal(fi.Erasure) {
    			ok := onlineMeta[i].ModTime.Equal(modTime)
    			if modTime.IsZero() || modTime.Equal(timeSentinel) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  4. cmd/xl-storage.go

    				}
    				legacyPreserved = true
    			}
    		}
    	} else {
    		// It is possible that some drives may not have `xl.meta` file
    		// in such scenarios verify if at least `part.1` files exist
    		// to verify for legacy version.
    		if formatLegacy {
    			// We only need this code if we are moving
    			// from `xl.json` to `xl.meta`, we can avoid
    			// one extra readdir operation here for all
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  5. cmd/xl-storage_test.go

    		// Expecting to fail with `errInvalidArgument`.
    		{
    			srcVol:      "ab",
    			destVol:     "dest-vol-non-existent",
    			srcPath:     "file4",
    			destPath:    "new-path/",
    			expectedErr: errVolumeNotFound,
    		},
    		// TestXLStorage case - 13.
    		// TestXLStorage case with invalid destination volume name. Length should be at least 3.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2.go

    // Return used metadata byte slices here.
    var metaDataPool = sync.Pool{New: func() interface{} { return make([]byte, 0, metaDataReadDefault) }}
    
    // metaDataPoolGet will return a byte slice with capacity at least metaDataReadDefault.
    // It will be length 0.
    func metaDataPoolGet() []byte {
    	return metaDataPool.Get().([]byte)[:0]
    }
    
    // metaDataPoolPut will put an unused small buffer back into the pool.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  7. internal/bucket/lifecycle/lifecycle_test.go

    				IsLatest:         !tc.isNoncurrent,
    				SuccessorModTime: tc.objectSuccessorModTime,
    				VersionID:        tc.versionID,
    			}
    			opts.NumVersions = 1
    			if tc.hasManyVersions {
    				opts.NumVersions = 2 // at least one noncurrent version
    			}
    			if res := lc.Eval(opts); res.Action != tc.expectedAction {
    				t.Fatalf("Expected action: `%v`, got: `%v`", tc.expectedAction, res.Action)
    			}
    		})
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top