Lines Matching refs:fsqp

319 	struct fsquot *fsqp;  local
339 fsqp = findfsq(gqa.gqa_pathp);
340 if (fsqp == NULL) {
346 if (strcmp(fsqp->fsq_fstype, MNTTYPE_ZFS) == 0) {
347 if (getzfsquota(gqa.gqa_uid, fsqp->fsq_devname, &dqblk)) {
353 if (quotactl(Q_GETQUOTA, fsqp->fsq_dir,
366 if (quotactl(Q_ALLSYNC, fsqp->fsq_dir,
372 if (getdiskquota(fsqp, (uid_t)gqa.gqa_uid,
478 struct fsquot *fsqp; in findfsq() local
507 for (fsqp = fsqlist; fsqp != NULL; fsqp = fsqp->fsq_next) { in findfsq()
508 if (sb.st_dev == fsqp->fsq_dev) in findfsq()
509 return (fsqp); in findfsq()
518 struct fsquot *fsqp; in setup_zfs() local
524 fsqp = malloc(sizeof (struct fsquot)); in setup_zfs()
525 if (fsqp == NULL) { in setup_zfs()
529 fsqp->fsq_dir = strdup(mp->mnt_mountp); in setup_zfs()
530 fsqp->fsq_devname = strdup(mp->mnt_special); in setup_zfs()
531 if (fsqp->fsq_dir == NULL || fsqp->fsq_devname == NULL) { in setup_zfs()
536 fsqp->fsq_fstype = MNTTYPE_ZFS; in setup_zfs()
537 fsqp->fsq_dev = sb.st_dev; in setup_zfs()
538 fsqp->fsq_next = fsqlist; in setup_zfs()
539 fsqlist = fsqp; in setup_zfs()
545 struct fsquot *fsqp; in setupfs() local
574 fsqp = malloc(sizeof (struct fsquot)); in setupfs()
575 if (fsqp == NULL) { in setupfs()
579 fsqp->fsq_dir = strdup(m.mnt_mountp); in setupfs()
580 fsqp->fsq_devname = strdup(m.mnt_special); in setupfs()
581 if (fsqp->fsq_dir == NULL || fsqp->fsq_devname == NULL) { in setupfs()
585 fsqp->fsq_fstype = MNTTYPE_UFS; in setupfs()
586 fsqp->fsq_dev = sb.st_rdev; in setupfs()
587 fsqp->fsq_next = fsqlist; in setupfs()
588 fsqlist = fsqp; in setupfs()
601 register struct fsquot *fsqp; in freefs() local
603 while ((fsqp = fsqlist) != NULL) { in freefs()
604 fsqlist = fsqp->fsq_next; in freefs()
605 free(fsqp->fsq_dir); in freefs()
606 free(fsqp->fsq_devname); in freefs()
607 free(fsqp); in freefs()
612 getdiskquota(fsqp, uid, dqp) in getdiskquota() argument
613 struct fsquot *fsqp; in getdiskquota()
620 snprintf(qfilename, sizeof (qfilename), "%s/%s", fsqp->fsq_dir, QFNAME);