8 main(int argc
, char* argv
[])
13 for (i
= 1; i
< argc
; i
++) {
14 if (statfs(argv
[i
], &s
) != 0) {
15 fprintf(stderr
, "%s: %s: statfs failed. %s\n",
16 *argv
, argv
[i
], strerror(errno
));
20 printf("statfs %s:\n\tblocks=%lld\n\tblkfree=%lld\n\tbsize=%d\n",
21 argv
[i
], s
.f_blocks
, s
.f_bfree
, s
.f_bsize
);
22 #ifdef _STATFS_F_FRSIZE
23 printf("\tfrsize=%lld\n", s
.f_frsize
);
24 #elif defined __mips__
25 printf("\tfrsize=mips, unsupported?\n");
27 # error no _STATFS_F_FRSIZE
30 exit(ret
? EXIT_SUCCESS
: EXIT_FAILURE
);