- Add Go 1.17
- Fix go fmt from Go 1.17 (build directives)
- Download version of misspell and staticcheck instead of doing
"go get" since current staticcheck would be broken without go.mod
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
The types of fields in syscall.Statfs_t varies between platforms.
fs.Bavail is uint64 on Linux and int64 on FreeBSD. This is the opposite way
around to fs.Bsize.
For now, just coerce the Bavail to be uint64.
If the VFS layer might return -1 for one or the other of these then these casts
will be problematic and we'll need more safeguards.