Lines Matching refs:mntp
88 struct mnttab mntp; in main() local
209 while ((status = getmntent(mtab, &mntp)) == 0) in main()
223 while ((status = getmntent(mtab, &mntp)) == 0) { in main()
224 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) == 0 && in main()
225 !hasmntopt(&mntp, MNTOPT_RO) && in main()
226 (oneof(mntp.mnt_special, listp, listcnt) || in main()
227 oneof(mntp.mnt_mountp, listp, listcnt))) { in main()
228 errs += quotaonoff(&mntp, offmode); in main()
246 quotaonoff(struct mnttab *mntp, int offmode) in quotaonoff() argument
250 if (quotactl(Q_QUOTAOFF, mntp->mnt_mountp, (uid_t)0, NULL) < 0) in quotaonoff()
253 printf("%s: quotas turned off\n", mntp->mnt_mountp); in quotaonoff()
255 if (quotactl(Q_QUOTAON, mntp->mnt_mountp, (uid_t)0, NULL) < in quotaonoff()
259 printf("%s: quotas turned on\n", mntp->mnt_mountp); in quotaonoff()
264 perror(mntp->mnt_special); in quotaonoff()