
#include <sys/statvfs.h>
#include <sys/statfs.h>

int main(int argc, char **argv)
{
	struct statfs sfs;
	struct statvfs svfs;
	int i;

	printf("    Path                                 bsize    bavail    frsize\n");
	for (i=1;i<argc;i++) {
		statfs(argv[i], &sfs);
		printf("    %-30s - %9d %9d\n", argv[i], sfs.f_bsize, sfs.f_bavail);
		statvfs(argv[i], &svfs);
		printf("vfs %-30s - %9d %9d %9d\n", argv[i], svfs.f_bsize, svfs.f_bavail, svfs.f_frsize);
	}
}
