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,
482 struct fsquot *fsqp; in findfsq() local
511 for (fsqp = fsqlist; fsqp != NULL; fsqp = fsqp->fsq_next) { in findfsq()
512 if (sb.st_dev == fsqp->fsq_dev) in findfsq()
513 return (fsqp); in findfsq()
522 struct fsquot *fsqp; in setup_zfs() local
528 fsqp = malloc(sizeof (struct fsquot)); in setup_zfs()
529 if (fsqp == NULL) { in setup_zfs()
533 fsqp->fsq_dir = strdup(mp->mnt_mountp); in setup_zfs()
534 fsqp->fsq_devname = strdup(mp->mnt_special); in setup_zfs()
535 if (fsqp->fsq_dir == NULL || fsqp->fsq_devname == NULL) { in setup_zfs()
540 fsqp->fsq_fstype = MNTTYPE_ZFS; in setup_zfs()
541 fsqp->fsq_dev = sb.st_dev; in setup_zfs()
542 fsqp->fsq_next = fsqlist; in setup_zfs()
543 fsqlist = fsqp; in setup_zfs()
549 struct fsquot *fsqp; in setupfs() local
578 fsqp = malloc(sizeof (struct fsquot)); in setupfs()
579 if (fsqp == NULL) { in setupfs()
583 fsqp->fsq_dir = strdup(m.mnt_mountp); in setupfs()
584 fsqp->fsq_devname = strdup(m.mnt_special); in setupfs()
585 if (fsqp->fsq_dir == NULL || fsqp->fsq_devname == NULL) { in setupfs()
589 fsqp->fsq_fstype = MNTTYPE_UFS; in setupfs()
590 fsqp->fsq_dev = sb.st_rdev; in setupfs()
591 fsqp->fsq_next = fsqlist; in setupfs()
592 fsqlist = fsqp; in setupfs()
605 register struct fsquot *fsqp; in freefs() local
607 while ((fsqp = fsqlist) != NULL) { in freefs()
608 fsqlist = fsqp->fsq_next; in freefs()
609 free(fsqp->fsq_dir); in freefs()
610 free(fsqp->fsq_devname); in freefs()
611 free(fsqp); in freefs()
616 getdiskquota(fsqp, uid, dqp) in getdiskquota() argument
617 struct fsquot *fsqp; in getdiskquota()
624 snprintf(qfilename, sizeof (qfilename), "%s/%s", fsqp->fsq_dir, QFNAME);