shirou_gopsutil/disk
Cameron Sparr da43049324 Fix potential panic in linux disk IO counters
Old kernels have a bug in diskstats where lines can have less than 14
fields. This applies to the kernel present in RHEL 5.2 and earlier.

It's a bit of a niche but probably best to patch to be safe from future
bugs too.

RHEL bug case:
https://bugzilla.redhat.com/show_bug.cgi?id=583285

Encountered in Telegraf:
https://github.com/influxdata/telegraf/issues/1322
2016-06-03 11:16:07 +01:00
..
disk.go add Timeout to invoke command and use common.Invoke refs: #201 2016-05-20 17:59:41 +09:00
disk_darwin.go [disk]darwin,freebsd: implements 'all' argument. 2016-04-16 22:43:55 +09:00
disk_darwin_amd64.go change package name. 2014-12-30 22:09:05 +09:00
disk_darwin_arm64.go Fix compile errors for iOS/arm64 2016-05-10 12:27:10 -07:00
disk_freebsd.go [disk]darwin,freebsd: implements 'all' argument. 2016-04-16 22:43:55 +09:00
disk_freebsd_386.go [disk]freebsd: update 386. 2016-04-23 23:43:00 +09:00
disk_freebsd_amd64.go Merge branch 'master' into v2 2016-03-31 18:08:24 +09:00
disk_linux.go Fix potential panic in linux disk IO counters 2016-06-03 11:16:07 +01:00
disk_test.go [disk]freebsd: update 386. 2016-04-23 23:43:00 +09:00
disk_unix.go [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters 2016-03-22 23:09:12 +09:00
disk_windows.go [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters 2016-03-22 23:09:12 +09:00
types_freebsd.go [disk]freebsd: change to use C.sizeof_struct. 2016-03-20 22:48:17 +09:00