Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for diskCount (0.19 sec)

  1. cmd/erasure-metadata-utils_test.go

    		disks     []StorageAPI
    		diskCount int
    	}{
    		// Test case - 1
    		{
    			disks:     []StorageAPI{&xlStorage{}, &xlStorage{}, &xlStorage{}, &xlStorage{}},
    			diskCount: 4,
    		},
    		// Test case - 2
    		{
    			disks:     []StorageAPI{nil, &xlStorage{}, &xlStorage{}, &xlStorage{}},
    			diskCount: 3,
    		},
    	}
    	for i, testCase := range testCases {
    		cdiskCount := diskCount(testCase.disks)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. cmd/erasure-healing-common.go

    	timeSentinel1970 = time.Unix(0, 1).UTC() // 1970 used for special cases when xlmeta.version == 0
    )
    
    // Boot modTimes up to disk count, setting the value to time sentinel.
    func bootModtimes(diskCount int) []time.Time {
    	modTimes := make([]time.Time, diskCount)
    	// Boots up all the modtimes.
    	for i := range modTimes {
    		modTimes[i] = timeSentinel
    	}
    	return modTimes
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. cmd/erasure-metadata-utils.go

    }
    
    // Similar to 'len(slice)' but returns the actual elements count
    // skipping the unallocated elements.
    func diskCount(disks []StorageAPI) int {
    	diskCount := 0
    	for _, disk := range disks {
    		if disk == nil {
    			continue
    		}
    		diskCount++
    	}
    	return diskCount
    }
    
    // hashOrder - hashes input key to return consistent
    // hashed integer slice. Returned integer order is salted
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. cmd/erasure-healing.go

    		}()
    	}
    
    	// Initialize heal result object
    	result = madmin.HealResultItem{
    		Type:      madmin.HealItemObject,
    		Bucket:    bucket,
    		Object:    object,
    		VersionID: versionID,
    		DiskCount: len(storageDisks),
    	}
    
    	if !opts.NoLock {
    		lk := er.NewNSLock(bucket, object)
    		lkctx, err := lk.GetLock(ctx, globalOperationTimeout)
    		if err != nil {
    			return result, err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 02 17:50:41 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  5. cmd/peer-s3-server.go

    				return serr
    			}
    			return nil
    		}, index)
    	}
    
    	errs := g.Wait()
    
    	// Initialize heal result info
    	res = madmin.HealResultItem{
    		Type:      madmin.HealItemBucket,
    		Bucket:    bucket,
    		DiskCount: len(localDrives),
    		SetCount:  -1, // explicitly set an invalid value -1, for bucket heal scenario
    	}
    
    	// mutate only if not a dry-run
    	if opts.DryRun {
    		return res, nil
    	}
    
    	for i := range beforeState {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. cmd/erasure-healing-common_test.go

    					t.Fatalf("expected error to be nil: %s", errs[j])
    				}
    				partsMetadata[j].ModTime = test.modTimes[j]
    			}
    
    			if erasureDisks, err = writeUniqueFileInfo(ctx, erasureDisks, "", bucket, object, partsMetadata, diskCount(erasureDisks)); err != nil {
    				t.Fatal(ctx, err)
    			}
    
    			tamperedIndex := -1
    			switch test._tamperBackend {
    			case deletePart:
    				for index, err := range test.errs {
    					if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 15:19:10 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool.go

    			continue
    		}
    		// Count errNoHealRequired across all serverPools,
    		// to return appropriate error to the caller
    		if errors.Is(err, errNoHealRequired) {
    			countNoHeal++
    		}
    		r.DiskCount += result.DiskCount
    		r.SetCount += result.SetCount
    		r.Before.Drives = append(r.Before.Drives, result.Before.Drives...)
    		r.After.Drives = append(r.After.Drives, result.After.Drives...)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  8. cmd/erasure-sets.go

    	if err != nil {
    		return res, err
    	}
    
    	// Prepare heal-result
    	res = madmin.HealResultItem{
    		Type:      madmin.HealItemMetadata,
    		Detail:    "disk-format",
    		DiskCount: s.setCount * s.setDriveCount,
    		SetCount:  s.setCount,
    	}
    
    	// Fetch all the drive info status.
    	beforeDrives := formatsToDrivesInfo(s.endpoints.Endpoints, formats, sErrs)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
  9. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    diet
    
    // digital : 2014-03-06 Binky Moon, LLC
    digital
    
    // direct : 2014-04-10 Binky Moon, LLC
    direct
    
    // directory : 2013-09-20 Binky Moon, LLC
    directory
    
    // discount : 2014-03-06 Binky Moon, LLC
    discount
    
    // discover : 2015-07-23 Discover Financial Services
    discover
    
    // dish : 2015-07-30 Dish DBS Corporation
    dish
    
    // diy : 2015-11-05 Lifestyle Domain Holdings, Inc.
    diy
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 240.3K bytes
    - Viewed (0)
  10. okhttp/src/main/resources/okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz

    devices.resinstaging.io df.gov.br df.leg.br dgca.aero dh.bytemark.co.uk dhl diadem.cloud diamonds dielddanuorri.no diet digick.jp digital dinosaur.museum direct direct.quickconnect.cn direct.quickconnect.to directory discordsays.com discordsez.com discount discourse.group discourse.team discover discovery.museum dish diskstation.eu diskstation.me diskstation.org diskussionsbereich.de ditchyourip.com divtasvuodna.no divttasvuotna.no diy dj dk dk.eu.org dlugoleka.pl dm dn.ua dnepropetrovsk.ua dni.us...
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 40.4K bytes
    - Viewed (0)
Back to top