> What would be the right way to fix this? I think there should not > be a statfs call from a statvfs64 function, but statfs64. That seems reasonable. It's possible that in some situations statfs64 doesn't exist (we'd have to check), in which case it might need to try statfs64 and fall back to statfs on ENOSYS.