Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for RootDisk (0.22 sec)

  1. internal/disk/root_disk.go

    import "runtime"
    
    // IsRootDisk returns if diskPath belongs to root-disk, i.e the disk mounted at "/"
    func IsRootDisk(diskPath string, rootDisk string) (bool, error) {
    	if runtime.GOOS == "windows" {
    		// On windows this function is not implemented.
    		return false, nil
    	}
    	return SameDisk(diskPath, rootDisk)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  2. cmd/storage-datatypes_test.go

    		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",
    		ID:        "uuid",
    		Error:     "",
    	}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  3. 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
    			if info.Healing {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. cmd/storage-datatypes.go

    type DiskInfo struct {
    	Total      uint64
    	Free       uint64
    	Used       uint64
    	UsedInodes uint64
    	FreeInodes uint64
    	Major      uint32
    	Minor      uint32
    	NRRequests uint64
    	FSType     string
    	RootDisk   bool
    	Healing    bool
    	Scanning   bool
    	Endpoint   string
    	MountPath  string
    	ID         string
    	Rotational bool
    	Metrics    DiskMetrics
    	Error      string // carries the error over the network
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. cmd/storage-datatypes_gen.go

    		return
    	}
    	z.FSType, err = dc.ReadString()
    	if err != nil {
    		err = msgp.WrapError(err, "FSType")
    		return
    	}
    	z.RootDisk, err = dc.ReadBool()
    	if err != nil {
    		err = msgp.WrapError(err, "RootDisk")
    		return
    	}
    	z.Healing, err = dc.ReadBool()
    	if err != nil {
    		err = msgp.WrapError(err, "Healing")
    		return
    	}
    	z.Scanning, err = dc.ReadBool()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 130.6K bytes
    - Viewed (0)
  6. cmd/erasure-sets.go

    	}
    
    	format, err := loadFormatErasure(disk, false)
    	if err != nil {
    		if errors.Is(err, errUnformattedDisk) {
    			info, derr := disk.DiskInfo(context.TODO(), DiskInfoOptions{})
    			if derr != nil && info.RootDisk {
    				disk.Close()
    				return nil, nil, fmt.Errorf("Drive: %s is a root drive", disk)
    			}
    		}
    		disk.Close()
    		return nil, nil, fmt.Errorf("Drive: %s returned %w", disk, err) // make sure to '%w' to wrap the error
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 37.7K bytes
    - Viewed (0)
Back to top