shirou_gopsutil/disk
Tobias Klauser 6aae71ca26 Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12
Use unix.Getstatfs and its associated Statfs_t type instead of
implementing them locally in this package. This allows to use 64-bit
inode fields on FreeBSD 12 while still keeping backwards compatibility
for old FreeBSD versions, as unix.Getfsstat will use the correct syscall
number and data structure version and convert its result
correspondingly.

Also see https://golang.org/cl/136816 for details.
2020-01-03 13:18:44 +01:00
..
disk.go [disk][linux] add label based on devicemapper name of disk 2018-04-26 18:27:15 -04:00
disk_darwin.c [disk][darwin] Fix #560 using github.com/lufia/iostat cgo implementation 2019-08-15 19:38:03 +02:00
disk_darwin.go disk: Check for error objects returned by Getfsstat 2018-06-21 16:48:16 +02:00
disk_darwin.h [disk][darwin] Fix #560 using github.com/lufia/iostat cgo implementation 2019-08-15 19:38:03 +02:00
disk_darwin_386.go [disk] darwin i386: add definition for darwin/386 2018-03-31 17:02:38 +09:00
disk_darwin_amd64.go [disk] darwin i386: add definition for darwin/386 2018-03-31 17:02:38 +09:00
disk_darwin_arm64.go [disk] darwin i386: add definition for darwin/386 2018-03-31 17:02:38 +09:00
disk_darwin_cgo.go [disk][darwin] Fix #560 using github.com/lufia/iostat cgo implementation 2019-08-15 19:38:03 +02:00
disk_darwin_nocgo.go Add WithContext functions. 2017-12-31 15:25:49 +09:00
disk_fallback.go Revert "[disk][openbsd] Use fallback for openBSD not on amd64" 2019-07-16 12:25:53 +02:00
disk_freebsd.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 2020-01-03 13:18:44 +01:00
disk_freebsd_386.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 2020-01-03 13:18:44 +01:00
disk_freebsd_amd64.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 2020-01-03 13:18:44 +01:00
disk_freebsd_arm.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 2020-01-03 13:18:44 +01:00
disk_freebsd_arm64.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 2020-01-03 13:18:44 +01:00
disk_linux.go [disk][linux] Fix #555 for kernels >=2.6.26 2019-09-01 13:12:13 +02:00
disk_openbsd.go Add missing OpenBSD mount option strings 2019-12-23 13:44:02 +01:00
disk_openbsd_386.go Use MNT_* consts from golang.org/x/sys/unix on freebsd and openbsd 2019-12-23 13:31:05 +01:00
disk_openbsd_amd64.go Use MNT_* consts from golang.org/x/sys/unix on freebsd and openbsd 2019-12-23 13:31:05 +01:00
disk_solaris.go Add WithContext functions. 2017-12-31 15:25:49 +09:00
disk_test.go [disk][darwin] Fix #560 using github.com/lufia/iostat cgo implementation 2019-08-15 19:38:03 +02:00
disk_unix.go Fix typos 2019-03-18 02:52:26 +09:00
disk_windows.go [disk][windows]: does not define ret at begining of the function. 2019-03-23 09:48:18 +09:00
types_freebsd.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 2020-01-03 13:18:44 +01:00
types_openbsd.go Use MNT_* consts from golang.org/x/sys/unix on freebsd and openbsd 2019-12-23 13:31:05 +01:00