Lines Matching defs:fst
87 static int getnfsquota(struct statfs *fst, struct quotause *qup, long id,
483 struct statfs *fst;
491 nfst = getmntinfo(&fst, MNT_NOWAIT);
506 strcmp(sfb.f_mntonname, fst[i].f_mntonname) != 0)
508 if (strcmp(fst[i].f_fstypename, "nfs") == 0) {
511 if (getnfsquota(&fst[i], qup, id, quotatype) == 0)
513 } else if (strcmp(fst[i].f_fstypename, "ufs") == 0) {
522 if ((fs = getfsspec(fst[i].f_mntfromname)) == NULL)
528 strcpy(qup->fsname, fst[i].f_mntonname);
560 getnfsquota(struct statfs *fst, struct quotause *qup, long id, int quotatype)
570 if (fst->f_flags & MNT_LOCAL)
576 cp = fst->f_mntfromname;
581 warnx("cannot find hostname for %s", fst->f_mntfromname);
585 memcpy(host, fst->f_mntfromname, cp - fst->f_mntfromname);
589 if (strncmp(fst->f_mntfromname, "pid", 3) == 0 &&
590 strchr(fst->f_mntfromname, '@') != NULL)
620 fst->f_mntfromname);
648 warnx("bad rpc result, host: %s", fst->f_mntfromname);