Lines Matching refs:statfsbuf
126 /* "man statfs" says that statfsbuf->f_fsid is a mess */
128 static unsigned long long get_f_fsid(const struct statfs *statfsbuf)
130 const unsigned *p = (const void*) &statfsbuf->f_fsid;
131 unsigned sz = sizeof(statfsbuf->f_fsid) / sizeof(unsigned);
159 const struct statfs *statfsbuf = data;
164 printf(pformat, get_f_fsid(statfsbuf));
167 printf(pformat, (unsigned long) statfsbuf->f_namelen);
170 printf(pformat, (unsigned long) statfsbuf->f_type); /* no equiv */
172 printfs(pformat, human_fstype(statfsbuf->f_type));
175 printf(pformat, (unsigned long long) statfsbuf->f_blocks);
178 printf(pformat, (unsigned long long) statfsbuf->f_bfree);
181 printf(pformat, (unsigned long long) statfsbuf->f_bavail);
184 printf(pformat, (unsigned long) statfsbuf->f_bsize);
187 printf(pformat, (unsigned long long) statfsbuf->f_files);
190 printf(pformat, (unsigned long long) statfsbuf->f_ffree);
366 struct statfs statfsbuf;
384 if (statfs(filename, &statfsbuf) != 0) {
418 print_it(format, filename, print_statfs, &statfsbuf IF_SELINUX(, scontext));
426 get_f_fsid(&statfsbuf),
427 statfsbuf.f_namelen);
430 printf("%lx ", (unsigned long) statfsbuf.f_type);
432 printf("Type: %s\n", human_fstype(statfsbuf.f_type));
441 (unsigned long) statfsbuf.f_bsize,
442 (unsigned long long) statfsbuf.f_blocks,
443 (unsigned long long) statfsbuf.f_bfree,
444 (unsigned long long) statfsbuf.f_bavail,
445 (unsigned long long) statfsbuf.f_files,
446 (unsigned long long) statfsbuf.f_ffree);
461 (unsigned long) statfsbuf.f_bsize,
462 (unsigned long long) statfsbuf.f_blocks,
463 (unsigned long long) statfsbuf.f_bfree,
464 (unsigned long long) statfsbuf.f_bavail,
465 (unsigned long long) statfsbuf.f_files,
466 (unsigned long long) statfsbuf.f_ffree,