Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for disksCount (0.36 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 12.5K 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.8K 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go

    	{"ddb.trigger", []_C_int{9, 8}},
    	{"fs.posix.setuid", []_C_int{3, 1, 1}},
    	{"hw.allowpowerdown", []_C_int{6, 22}},
    	{"hw.byteorder", []_C_int{6, 4}},
    	{"hw.cpuspeed", []_C_int{6, 12}},
    	{"hw.diskcount", []_C_int{6, 10}},
    	{"hw.disknames", []_C_int{6, 8}},
    	{"hw.diskstats", []_C_int{6, 9}},
    	{"hw.machine", []_C_int{6, 1}},
    	{"hw.model", []_C_int{6, 2}},
    	{"hw.ncpu", []_C_int{6, 3}},
    	{"hw.ncpufound", []_C_int{6, 21}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go

    	{"ddb.trigger", []_C_int{9, 8}},
    	{"fs.posix.setuid", []_C_int{3, 1, 1}},
    	{"hw.allowpowerdown", []_C_int{6, 22}},
    	{"hw.byteorder", []_C_int{6, 4}},
    	{"hw.cpuspeed", []_C_int{6, 12}},
    	{"hw.diskcount", []_C_int{6, 10}},
    	{"hw.disknames", []_C_int{6, 8}},
    	{"hw.diskstats", []_C_int{6, 9}},
    	{"hw.machine", []_C_int{6, 1}},
    	{"hw.model", []_C_int{6, 2}},
    	{"hw.ncpu", []_C_int{6, 3}},
    	{"hw.ncpufound", []_C_int{6, 21}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go

    	{"ddb.trigger", []_C_int{9, 8}},
    	{"fs.posix.setuid", []_C_int{3, 1, 1}},
    	{"hw.allowpowerdown", []_C_int{6, 22}},
    	{"hw.byteorder", []_C_int{6, 4}},
    	{"hw.cpuspeed", []_C_int{6, 12}},
    	{"hw.diskcount", []_C_int{6, 10}},
    	{"hw.disknames", []_C_int{6, 8}},
    	{"hw.diskstats", []_C_int{6, 9}},
    	{"hw.machine", []_C_int{6, 1}},
    	{"hw.model", []_C_int{6, 2}},
    	{"hw.ncpu", []_C_int{6, 3}},
    	{"hw.ncpufound", []_C_int{6, 21}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  9. src/syscall/zsysctl_openbsd.go

    	{"ddb.trigger", []_C_int{9, 8}},
    	{"fs.posix.setuid", []_C_int{3, 1, 1}},
    	{"hw.allowpowerdown", []_C_int{6, 22}},
    	{"hw.byteorder", []_C_int{6, 4}},
    	{"hw.cpuspeed", []_C_int{6, 12}},
    	{"hw.diskcount", []_C_int{6, 10}},
    	{"hw.disknames", []_C_int{6, 8}},
    	{"hw.diskstats", []_C_int{6, 9}},
    	{"hw.machine", []_C_int{6, 1}},
    	{"hw.model", []_C_int{6, 2}},
    	{"hw.ncpu", []_C_int{6, 3}},
    	{"hw.ncpufound", []_C_int{6, 21}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go

    	{"ddb.trigger", []_C_int{9, 8}},
    	{"fs.posix.setuid", []_C_int{3, 1, 1}},
    	{"hw.allowpowerdown", []_C_int{6, 22}},
    	{"hw.byteorder", []_C_int{6, 4}},
    	{"hw.cpuspeed", []_C_int{6, 12}},
    	{"hw.diskcount", []_C_int{6, 10}},
    	{"hw.disknames", []_C_int{6, 8}},
    	{"hw.diskstats", []_C_int{6, 9}},
    	{"hw.machine", []_C_int{6, 1}},
    	{"hw.model", []_C_int{6, 2}},
    	{"hw.ncpu", []_C_int{6, 3}},
    	{"hw.ncpufound", []_C_int{6, 21}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.9K bytes
    - Viewed (0)
Back to top