Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for di (0.17 sec)

  1. cmd/erasure.go

    			di.DrivePath = info.MountPath
    			di.TotalSpace = info.Total
    			di.UsedSpace = info.Used
    			di.AvailableSpace = info.Free
    			di.UUID = info.ID
    			di.Major = info.Major
    			di.Minor = info.Minor
    			di.RootDisk = info.RootDisk
    			di.Healing = info.Healing
    			di.Scanning = info.Scanning
    			di.State = diskErrToDriveState(err)
    			di.FreeInodes = info.FreeInodes
    			di.UsedInodes = info.UsedInodes
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  2. internal/disk/disk_test.go

    package disk_test
    
    import (
    	"testing"
    
    	"github.com/minio/minio/internal/disk"
    )
    
    func TestFree(t *testing.T) {
    	di, err := disk.GetInfo(t.TempDir(), true)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if di.FSType == "UNKNOWN" {
    		t.Error("Unexpected FSType", di.FSType)
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 31 22:20:48 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/operand_test.go

    	{"(0*4)(BP)", "(BP)"},
    	{"(1*4)(DI)", "4(DI)"},
    	{"(4*4)(BP)", "16(BP)"},
    	{"(AX)", "(AX)"},
    	{"(BP)(CX*4)", "(BP)(CX*4)"},
    	{"(BP*8)", "0(BP*8)"},
    	{"(BX)", "(BX)"},
    	{"(SP)", "(SP)"},
    	{"*AX", "AX"}, // TODO: Should make * illegal here; a simple alias for JMP AX.
    	{"*runtimeĀ·_GetStdHandle(SB)", "*runtime._GetStdHandle(SB)"},
    	{"-(4+12)(DI)", "-16(DI)"},
    	{"-1(DI)(BX*1)", "-1(DI)(BX*1)"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  4. src/archive/zip/register.go

    	ci, ok := compressors.Load(method)
    	if !ok {
    		return nil
    	}
    	return ci.(Compressor)
    }
    
    func decompressor(method uint16) Decompressor {
    	di, ok := decompressors.Load(method)
    	if !ok {
    		return nil
    	}
    	return di.(Decompressor)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    		func() (DiskInfo, error) {
    			dcinfo := DiskInfo{}
    			di, err := getDiskInfo(s.drivePath)
    			if err != nil {
    				return dcinfo, err
    			}
    			dcinfo.Major = di.Major
    			dcinfo.Minor = di.Minor
    			dcinfo.Total = di.Total
    			dcinfo.Free = di.Free
    			dcinfo.Used = di.Used
    			dcinfo.UsedInodes = di.Files - di.Ffree
    			dcinfo.FreeInodes = di.Ffree
    			dcinfo.FSType = di.FSType
    			diskID, err := s.GetDiskID()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  6. cmd/metacache-set.go

    func calcCommonWritesDeletes(infos []DiskInfo, readQuorum int) (commonWrite, commonDelete uint64) {
    	deletes := make([]uint64, len(infos))
    	writes := make([]uint64, len(infos))
    	for index, di := range infos {
    		deletes[index] = di.Metrics.TotalDeletes
    		writes[index] = di.Metrics.TotalWrites
    	}
    
    	filter := func(list []uint64) (commonCount uint64) {
    		max := 0
    		signatureMap := map[uint64]int{}
    		for _, v := range list {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  7. cmd/namespace-lock.go

    	opsID   string
    }
    
    // Lock - block until write lock is taken or timeout has occurred.
    func (di *distLockInstance) GetLock(ctx context.Context, timeout *dynamicTimeout) (LockContext, error) {
    	lockSource := getSource(2)
    	start := UTCNow()
    
    	newCtx, cancel := context.WithCancel(ctx)
    	if !di.rwMutex.GetLock(newCtx, cancel, di.opsID, lockSource, dsync.Options{
    		Timeout:       timeout.Timeout(),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  8. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  9. cmd/metrics-resource.go

    	for _, d := range localDrives {
    		di, err := d.DiskInfo(GlobalContext, DiskInfoOptions{})
    		labels := map[string]string{"drive": di.Endpoint}
    		if err == nil {
    			updateResourceMetrics(driveSubsystem, usedBytes, float64(di.Used), labels, false)
    			updateResourceMetrics(driveSubsystem, totalBytes, float64(di.Total), labels, false)
    			updateResourceMetrics(driveSubsystem, usedInodes, float64(di.UsedInodes), labels, false)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  10. cmd/object-api-utils.go

    	for i, disk := range disks {
    		if disk == nil {
    			continue
    		}
    		if di, err := disk.DiskInfo(ctx, opts); err == nil {
    			res[i] = &di
    		}
    	}
    	return res
    }
    
    // hasSpaceFor returns whether the disks in `di` have space for and object of a given size.
    func hasSpaceFor(di []*DiskInfo, size int64) (bool, error) {
    	// We multiply the size by 2 to account for erasure coding.
    	size *= 2
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
Back to top