func (ds *DiskStat) GetReadBytes() int64 {
	return int64(ds.ReadSectors) * 512
}
GetReadBytes returns the number of bytes read.
package linux
import (
	"io/ioutil"
	"strconv"
	"strings"
	"time"
)
type DiskStat struct {
	Major        int    `json:"major"`          
	Minor        int    `json:"minor"`          
	Name         string `json:"name"`           
	ReadIOs      uint64 `json:"read_ios"`       
	ReadMerges   uint64 `json:"read_merges"`    
	ReadSectors  uint64 `json:"read_sectors"`   
	ReadTicks    uint64 `json:"read_ticks"`     
	WriteIOs     uint64 `json:"write_ios"`      
	WriteMerges  uint64 `json:"write_merges"`   
	WriteSectors uint64 `json:"write_sectors"`  
	WriteTicks   uint64 `json:"write_ticks"`    
	InFlight     uint64 `json:"in_flight"`      
	IOTicks      uint64 `json:"io_ticks"`       
	TimeInQueue  uint64 `json:"time_in_queue"`  
}
func ReadDiskStats(path string) ([]DiskStat, error) {
	data, err := ioutil.ReadFile(path)
	if err != nil {
		return nil, err
	}
	devices := strings.Split(string(data), "\n")
	results := make([]DiskStat, len(devices)-1)
	for i := range results {
		fields := strings.Fields(devices[i])
		Major, _ := strconv.ParseInt(fields[0], 10, strconv.IntSize)
		results[i].Major = int(Major)
		Minor, _ := strconv.ParseInt(fields[1], 10, strconv.IntSize)
		results[i].Minor = int(Minor)
		results[i].Name = fields[2]
		results[i].ReadIOs, _ = strconv.ParseUint(fields[3], 10, 64)
		results[i].ReadMerges, _ = strconv.ParseUint(fields[4], 10, 64)
		results[i].ReadSectors, _ = strconv.ParseUint(fields[5], 10, 64)
		results[i].ReadTicks, _ = strconv.ParseUint(fields[6], 10, 64)
		results[i].WriteIOs, _ = strconv.ParseUint(fields[7], 10, 64)
		results[i].WriteMerges, _ = strconv.ParseUint(fields[8], 10, 64)
		results[i].WriteSectors, _ = strconv.ParseUint(fields[9], 10, 64)
		results[i].WriteTicks, _ = strconv.ParseUint(fields[10], 10, 64)
		results[i].InFlight, _ = strconv.ParseUint(fields[11], 10, 64)
		results[i].IOTicks, _ = strconv.ParseUint(fields[12], 10, 64)
		results[i].TimeInQueue, _ = strconv.ParseUint(fields[13], 10, 64)
	}
	return results, nil
}