Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for DiskInfo (0.38 sec)

  1. cmd/notification-summary.go

    func GetTotalCapacity(diskInfo []madmin.Disk) (capacity uint64) {
    	for _, disk := range diskInfo {
    		capacity += disk.TotalSpace
    	}
    	return
    }
    
    // GetTotalUsableCapacity gets the total usable capacity in the cluster.
    func GetTotalUsableCapacity(diskInfo []madmin.Disk, s StorageInfo) (capacity uint64) {
    	for _, disk := range diskInfo {
    		// Ignore invalid.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 20 00:53:08 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  2. cmd/storage-datatypes_test.go

    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		err := v.DecodeMsg(dc)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func BenchmarkDecodeDiskInfoMsgp(b *testing.B) {
    	v := DiskInfo{
    		Total:     1000,
    		Free:      1000,
    		Used:      1000,
    		FSType:    "xfs",
    		RootDisk:  true,
    		Healing:   true,
    		Endpoint:  "http://localhost:9001/tmp/drive1",
    		MountPath: "/tmp/drive1",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 9.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. cmd/erasure-common.go

    	for _, i := range r.Perm(len(disks)) {
    		i := i
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    			if disks[i] == nil {
    				return
    			}
    			di, err := disks[i].DiskInfo(context.Background(), DiskInfoOptions{})
    			if err != nil || di.Healing {
    				// - Do not consume disks which are not reachable
    				//   unformatted or simply not accessible for some reason.
    				//
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top