2 #include <sys/statvfs.h>
5 /* This test cannot detect many errors. But it will fail if the
6 statvfs is completely hosed and it'll detect a missing export. So
7 it is better than nothing. */
9 do_test (int argc
, char *argv
[])
11 for (int i
= 1; i
< argc
; ++i
)
14 if (statvfs (argv
[i
], &st
) != 0)
15 printf ("%s: failed (%m)\n", argv
[i
]);
17 printf ("%s: free: %llu, mandatory: %s\n", argv
[i
],
18 (unsigned long long int) st
.f_bfree
,
20 (st
.f_flag
& ST_MANDLOCK
) ? "yes" : "no"
29 #define TEST_FUNCTION do_test (argc, argv)
30 #include "../test-skeleton.c"