You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/disk
Tobias Klauser 422c4f61a1 Use Getfsstat from golang.org/x/sys/unix on Darwin
Starting with Go 1.12, direct syscalls on darwin are no longer
supported. Instead, libSystem is used when making syscalls. See
https://golang.org/doc/go1.12#darwin

In order to still support Getfsstat, use the syscall wrapper and types
from golang.org/x/sys/unix which uses the correct syscall method
depending on the Go version.

Also use the correct MNT_* consts and their respective strings according
to the mount(8) manpage.

Follow-up for #810
6 years ago
..
disk.go [disk][linux] add label based on devicemapper name of disk 7 years ago
disk_darwin.c [disk][darwin] Fix #560 using github.com/lufia/iostat cgo implementation 6 years ago
disk_darwin.go Use Getfsstat from golang.org/x/sys/unix on Darwin 6 years ago
disk_darwin.h [disk][darwin] Fix #560 using github.com/lufia/iostat cgo implementation 6 years ago
disk_darwin_cgo.go [disk][darwin] Fix #560 using github.com/lufia/iostat cgo implementation 6 years ago
disk_darwin_nocgo.go Add WithContext functions. 8 years ago
disk_fallback.go Revert "[disk][openbsd] Use fallback for openBSD not on amd64" 6 years ago
disk_freebsd.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 6 years ago
disk_freebsd_386.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 6 years ago
disk_freebsd_amd64.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 6 years ago
disk_freebsd_arm.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 6 years ago
disk_freebsd_arm64.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 6 years ago
disk_linux.go [disk][linux] Fix #555 for kernels >=2.6.26 6 years ago
disk_openbsd.go Add missing OpenBSD mount option strings 6 years ago
disk_openbsd_386.go Use MNT_* consts from golang.org/x/sys/unix on freebsd and openbsd 6 years ago
disk_openbsd_amd64.go Use MNT_* consts from golang.org/x/sys/unix on freebsd and openbsd 6 years ago
disk_solaris.go Add WithContext functions. 8 years ago
disk_test.go [disk][darwin] Fix #560 using github.com/lufia/iostat cgo implementation 6 years ago
disk_unix.go Fix typos 6 years ago
disk_windows.go [disk][windows]: does not define ret at begining of the function. 6 years ago
types_freebsd.go Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12 6 years ago
types_openbsd.go Use MNT_* consts from golang.org/x/sys/unix on freebsd and openbsd 6 years ago