OS documentation refer to statfs() as deprecated and recommend statsvfs(), but generally both are available and most software would not care about the difference.
Go exposes statfs(), but I’m running go on a platform which has statvfs() but has deprecated statfs() to the point of renaming the syscall and making it awkward to link against.
Wondering if I should
- Write a go statfs() wrapper which pulls from statvfs() and converts
- Try real hard to get the linking to work
- Raise the question of whether go should expose statvfs() on a forum
Implicit here is option 4) “Run go on another platform”, but I’m already doing that as well
David