Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ Constants func GetDevnumForFile(name string) (devnum uint64, err error) func GetReadSpeed(name string) (uint64, uint64, error) Constants ¶ View Source const ( BUFLEN = 1024 * 1024 MAX_TO_READ = 1024 * 1024 * 128 ) Variables ¶ This section is empty. Functions ¶ func GetDevnumForFile ¶ func GetDevnumForFile(name string) (devnum uint64, err error) func GetReadSpeed ¶ func GetReadSpeed(name string) (uint64, uint64, error) Compute the maximum read speed of a block device, given a file within a file-system mounted on the block device. Returns: bytesPerSecond, blocksPerSecond, error If I/O accounting is enabled, blocksPerSecond will be non-zero. Types ¶ This section is empty. Source Files ¶ View all Source files fsbench.go odirect_linux.go Click to show internal directories. Click to hide internal directories.