Lines Matching refs:fst
87 static int getnfsquota(struct statfs *fst, struct quotause *qup, long id,
480 struct statfs *fst; in getprivs() local
488 nfst = getmntinfo(&fst, MNT_NOWAIT); in getprivs()
503 strcmp(sfb.f_mntonname, fst[i].f_mntonname) != 0) in getprivs()
505 if (strcmp(fst[i].f_fstypename, "nfs") == 0) { in getprivs()
508 if (getnfsquota(&fst[i], qup, id, quotatype) == 0) in getprivs()
510 } else if (strcmp(fst[i].f_fstypename, "ufs") == 0) { in getprivs()
519 if ((fs = getfsspec(fst[i].f_mntfromname)) == NULL) in getprivs()
525 strcpy(qup->fsname, fst[i].f_mntonname); in getprivs()
557 getnfsquota(struct statfs *fst, struct quotause *qup, long id, int quotatype) in getnfsquota() argument
567 if (fst->f_flags & MNT_LOCAL) in getnfsquota()
573 cp = fst->f_mntfromname; in getnfsquota()
578 warnx("cannot find hostname for %s", fst->f_mntfromname); in getnfsquota()
582 memcpy(host, fst->f_mntfromname, cp - fst->f_mntfromname); in getnfsquota()
586 if (strncmp(fst->f_mntfromname, "pid", 3) == 0 && in getnfsquota()
587 strchr(fst->f_mntfromname, '@') != NULL) in getnfsquota()
617 fst->f_mntfromname); in getnfsquota()
645 warnx("bad rpc result, host: %s", fst->f_mntfromname); in getnfsquota()