Lines Matching refs:fst
97 static int getnfsquota(struct statfs *fst, struct quotause *qup, long id,
490 struct statfs *fst;
498 nfst = getmntinfo(&fst, MNT_NOWAIT);
513 strcmp(sfb.f_mntonname, fst[i].f_mntonname) != 0)
515 if (strcmp(fst[i].f_fstypename, "nfs") == 0) {
518 if (getnfsquota(&fst[i], qup, id, quotatype) == 0)
520 } else if (strcmp(fst[i].f_fstypename, "ufs") == 0) {
529 if ((fs = getfsspec(fst[i].f_mntfromname)) == NULL)
535 strcpy(qup->fsname, fst[i].f_mntonname);
567 getnfsquota(struct statfs *fst, struct quotause *qup, long id, int quotatype)
577 if (fst->f_flags & MNT_LOCAL)
583 cp = fst->f_mntfromname;
588 warnx("cannot find hostname for %s", fst->f_mntfromname);
592 memcpy(host, fst->f_mntfromname, cp - fst->f_mntfromname);
596 if (strncmp(fst->f_mntfromname, "pid", 3) == 0 &&
597 strchr(fst->f_mntfromname, '@') != NULL)
627 fst->f_mntfromname);
655 warnx("bad rpc result, host: %s", fst->f_mntfromname);