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