Lines Matching refs:vfs
111 struct statvfs vfs; /* statvfs() info */
509 if ((n = F_FRSIZE(&df->vfs)) >= 1024)
564 status(const char* path, struct statvfs* vfs)
571 r = statvfs(path, vfs);
596 if (REALITY(df->vfs.f_blocks) == 0)
604 * NOTE: on some systems vfs.f_* are unsigned,
609 df->total = df->vfs.f_blocks;
610 df->used = ((long)df->vfs.f_blocks <= (long)df->vfs.f_bfree) ? 0 : (df->vfs.f_blocks - df->vfs.f_bfree);
611 df->avail = ((long)df->vfs.f_bavail < 0) ? 0 : df->vfs.f_bavail;
617 state.block = F_FRSIZE(&df->vfs);
620 b = F_FRSIZE(&df->vfs);
642 df->itotal = REALITY(df->vfs.f_files);
643 df->iavail = REALITY(df->vfs.f_ffree);
648 df->iavail = REALITY(df->vfs.f_favail);
671 struct statvfs vfs;
871 if (!status(mnt.fs, &df.vfs))
920 if (!status(argv[n], &df.vfs))
959 if (!status(df.mnt->dir, &df.vfs) || !status(df.mnt->fs, &df.vfs))
979 if ((mnt.dir = argv[n]) && !status(mnt.dir, &vfs))