Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parent_dep (0.15 sec)

  1. internal/disk/stat_linux.go

    					//        real device name (nvme0n1) to get its sysfs information
    					parentDevPath, e := os.Readlink("/sys/class/block/" + devName)
    					if e == nil {
    						parentDev := filepath.Base(filepath.Dir(parentDevPath))
    						qst, err = bfs.SysBlockDeviceQueueStats(parentDev)
    					}
    				}
    				if err == nil {
    					info.NRRequests = qst.NRRequests
    					rot := qst.Rotational == 1 // Rotational is '1' if the device is HDD
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
Back to top