Lines Matching refs:mntp
90 struct mnttab mntp; in main() local
211 while ((status = getmntent(mtab, &mntp)) == 0) in main()
225 while ((status = getmntent(mtab, &mntp)) == NULL) { in main()
226 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) == 0 && in main()
227 !hasmntopt(&mntp, MNTOPT_RO) && in main()
228 (oneof(mntp.mnt_special, listp, listcnt) || in main()
229 oneof(mntp.mnt_mountp, listp, listcnt))) { in main()
230 errs += quotaonoff(&mntp, offmode); in main()
248 quotaonoff(struct mnttab *mntp, int offmode) in quotaonoff() argument
252 if (quotactl(Q_QUOTAOFF, mntp->mnt_mountp, (uid_t)0, NULL) < 0) in quotaonoff()
255 printf("%s: quotas turned off\n", mntp->mnt_mountp); in quotaonoff()
257 if (quotactl(Q_QUOTAON, mntp->mnt_mountp, (uid_t)0, NULL) < in quotaonoff()
261 printf("%s: quotas turned on\n", mntp->mnt_mountp); in quotaonoff()
266 perror(mntp->mnt_special); in quotaonoff()