Hrm.... (on Linux):
$ cat test.c
#include<stdio.h>
#include<sys/statfs.h>
int main() {
struct statfs fsInfo;
if (statfs("/afs/cs.cmu.edu", &fsInfo) == -1) {
printf("error\n");
} else {
printf("fs_type == %x\n", fsInfo.f_type);
}
}
$ gcc test.c && ./a.out
fs_type == 0
Is this right?
- a
--
PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380