Lines Matching defs:fst
435 struct statfs *fst;
440 nfst = getmntinfo(&fst, MNT_WAIT);
449 if (strncmp(fst[i].f_fstypename, "nfs", MFSNAMELEN) == 0) {
450 if (getnfsquota(&fst[i], NULL, qup, id, quotatype) == 0)
452 } else if (!strncmp(fst[i].f_fstypename, "ffs", MFSNAMELEN) ||
453 !strncmp(fst[i].f_fstypename, "ufs", MFSNAMELEN) ||
454 !strncmp(fst[i].f_fstypename, "mfs", MFSNAMELEN)) {
463 if ((fs = getfsspec(fst[i].f_mntfromspec)) == NULL)
465 if (getufsquota(&fst[i], fs, qup, id, quotatype) == 0)
469 strncpy(qup->fsname, fst[i].f_mntonname, sizeof qup->fsname-1);
525 getufsquota(struct statfs *fst, struct fstab *fs, struct quotause *qup,
562 getnfsquota(struct statfs *fst, struct fstab *fs, struct quotause *qup,
571 if (fst->f_flags & MNT_LOCAL)
583 cp = strchr(fst->f_mntfromname, ':');
585 warnx("cannot find hostname for %s", fst->f_mntfromname);
597 if (callaurpc(fst->f_mntfromname, RQUOTAPROG, RQUOTAVERS,
608 warnx("permission error, host: %s", fst->f_mntfromname);
637 warnx("bad rpc result, host: %s", fst->f_mntfromname);