Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for DiskInfo (0.23 sec)

  1. cmd/erasure.go

    // - Non-healing disks
    // - Healing disks (if inclHealing is true)
    func (er erasureObjects) getOnlineDisksWithHealingAndInfo(inclHealing bool) (newDisks []StorageAPI, newInfos []DiskInfo, healing int) {
    	var wg sync.WaitGroup
    	disks := er.getDisks()
    	infos := make([]DiskInfo, len(disks))
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    	for _, i := range r.Perm(len(disks)) {
    		i := i
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  2. cmd/server-startup-msg.go

    		if offlineDisks.Sum() > 0 {
    			mcMessage = "Use `mc admin info` to look for latest server/drive info\n"
    		}
    
    		diskInfo := fmt.Sprintf(" %d Online, %d Offline. ", onlineDisks.Sum(), offlineDisks.Sum())
    		msg += color.Blue("Status:") + fmt.Sprintf(getFormatStr(len(diskInfo), 8), diskInfo)
    		if len(mcMessage) > 0 {
    			msg = fmt.Sprintf("%s %s", mcMessage, msg)
    		}
    	}
    	return msg
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  3. cmd/storage-interface.go

    	// Returns healing information for a newly replaced disk,
    	// returns 'nil' once healing is complete or if the disk
    	// has never been replaced.
    	Healing() *healingTracker
    	DiskInfo(ctx context.Context, opts DiskInfoOptions) (info DiskInfo, err error)
    	NSScanner(ctx context.Context, cache dataUsageCache, updates chan<- dataUsageEntry, scanMode madmin.HealScanMode, shouldSleep func() bool) (dataUsageCache, error)
    
    	// Volume operations.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  4. cmd/naughty-disk_test.go

    		return info, err
    	}
    	return d.disk.NSScanner(ctx, cache, updates, scanMode, weSleep)
    }
    
    func (d *naughtyDisk) DiskInfo(ctx context.Context, opts DiskInfoOptions) (info DiskInfo, err error) {
    	if err := d.calcError(); err != nil {
    		return info, err
    	}
    	return d.disk.DiskInfo(ctx, opts)
    }
    
    func (d *naughtyDisk) MakeVolBulk(ctx context.Context, volumes ...string) (err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  5. cmd/format-erasure.go

    	newFormats := make([][]*formatErasureV3, setCount)
    	for i := range refFormat.Erasure.Sets {
    		newFormats[i] = make([]*formatErasureV3, setDriveCount)
    	}
    	currentDisksInfo := make([][]DiskInfo, setCount)
    	for i := range refFormat.Erasure.Sets {
    		currentDisksInfo[i] = make([]DiskInfo, setDriveCount)
    	}
    	for i := range refFormat.Erasure.Sets {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. cmd/storage-rest-client.go

    	return *client.diskID.Load(), nil
    }
    
    func (client *storageRESTClient) SetDiskID(id string) {
    	client.diskID.Store(&id)
    }
    
    func (client *storageRESTClient) DiskInfo(ctx context.Context, opts DiskInfoOptions) (info DiskInfo, err error) {
    	if !client.IsOnline() {
    		// make sure to check if the disk is offline, since the underlying
    		// value is cached we should attempt to invalidate it if such calls
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  7. cmd/metacache-set.go

    			}
    		}
    		if max < readQuorum {
    			return 0
    		}
    		return commonCount
    	}
    
    	return filter()
    }
    
    func getQuorumDiskInfos(disks []StorageAPI, infos []DiskInfo, readQuorum int) (newDisks []StorageAPI, newInfos []DiskInfo) {
    	commonMutations := calcCommonCounter(infos, readQuorum)
    	for i, info := range infos {
    		mutations := info.Metrics.TotalDeletes + info.Metrics.TotalWrites
    		if mutations >= commonMutations {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  8. cmd/storage-datatypes.go

    	DiskID  string `msg:"id"`
    	Metrics bool   `msg:"m"`
    	NoOp    bool   `msg:"np"`
    }
    
    // DiskInfo is an extended type which returns current
    // disk usage per path.
    // The above means that any added/deleted fields are incompatible.
    //
    // The above means that any added/deleted fields are incompatible.
    //
    //msgp:tuple DiskInfo
    type DiskInfo struct {
    	Total      uint64
    	Free       uint64
    	Used       uint64
    	UsedInodes uint64
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  9. cmd/storage-rest_test.go

    func testStorageAPIDiskInfo(t *testing.T, storage StorageAPI) {
    	testCases := []struct {
    		expectErr bool
    	}{
    		{true},
    	}
    
    	for i, testCase := range testCases {
    		_, err := storage.DiskInfo(context.Background(), DiskInfoOptions{Metrics: true})
    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    			t.Fatalf("case %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  10. cmd/xl-storage-disk-id-check.go

    		return nil
    	}
    	// not the same disk we remember, take it offline.
    	return errDiskNotFound
    }
    
    func (p *xlStorageDiskIDCheck) DiskInfo(ctx context.Context, opts DiskInfoOptions) (info DiskInfo, err error) {
    	if contextCanceled(ctx) {
    		return DiskInfo{}, ctx.Err()
    	}
    
    	si := p.updateStorageMetrics(storageMetricDiskInfo)
    	defer si(&err)
    
    	if opts.NoOp {
    		if opts.Metrics {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
Back to top