/illumos-gate/usr/src/cmd/rexd/ |
H A D | mntent.c | 35 static struct mnttab *mntp = 0; variable in typeref:struct:mnttab 45 if (mntp == 0) 46 mntp = (struct mnttab *)calloc(1, sizeof (struct mnttab)); 47 return (mntp); 180 * nfields = mnttabscan(mnttabp, mntp); 185 * mp = mntp; 203 * nfields = mnttabscan(mnttabp, mntp); 206 * return (mntp);
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | mntent.c | 37 static struct mntent *mntp; variable in typeref:struct:mntent 43 if (mntp == 0) 44 mntp = (struct mntent *)calloc(1, sizeof (struct mntent)); 45 return (mntp); 161 nfields = mnttabscan(mnttabp, mntp); 164 return (mntp);
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/umount/ |
H A D | umount.c | 133 struct extmnttab *mntp; local 136 mntp = mnttab_find(pathname); 137 if (mntp) { 138 pathname = mntp->mnt_mountp;
|
/illumos-gate/usr/src/cmd/fs.d/nfs/umount/ |
H A D | umount.c | 165 struct extmnttab *mntp; local 169 mntp = mnttab_find(pathname); 170 if (mntp) { 171 pathname = mntp->mnt_mountp; 174 if (mntp) 175 is_v4 = is_v4_mount(mntp); 195 if (mntp) { 196 inform_server(mntp->mnt_special, mntp->mnt_mntopts, quick); 361 is_v4_mount(struct extmnttab *mntp) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/ |
H A D | lockfs.c | 426 struct mnttab mnt, *mntp = &mnt; local 435 while ((getmntent(mnttab, mntp)) == 0) { 436 if (strcmp(mntp->mnt_fstype, MNTTYPE_UFS) != 0) 438 fnlen = strlen(mntp->mnt_mountp) + 1; 441 strcpy(fnp->fn_name, mntp->mnt_mountp);
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quotaon/ |
H A D | quotaon.c | 90 struct mnttab mntp; local 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) argument 252 if (quotactl(Q_QUOTAOFF, mntp [all...] |
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | automount.c | 94 struct extmnttab mnt, *mntp; local 236 if (mntp = find_mount(dir->dir_name, 1)) { 241 if (strcmp(mntp->mnt_fstype, MNTTYPE_AUTOFS) != 0) { 243 mntp->mnt_mountp); 253 if (strcmp(mntp->mnt_special, dir->dir_map) == 0 && 255 mntp->mnt_mntopts) == 0) { 263 omntp = (struct mnttab *)mntp; 265 mntp = find_mount(dir->dir_name, 0); 266 omntp = (struct mnttab *)mntp;
|
H A D | autod_nfs.c | 4088 struct extmnttab *mntp; local 4091 if ((mntp = mnttab_find(mntpath)) == NULL) 4095 mnt_minor = mntp->mnt_minor; 4096 fsfreemnttab(mntp);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/ |
H A D | rpc.rquotad.c | 417 struct mnttab mntp; local 430 while ((status = getmntent(fstab, &mntp)) == NULL) { 431 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0 || 432 !(hasmntopt(&mntp, MNTOPT_RQ) || 433 hasmntopt(&mntp, MNTOPT_QUOTA))) 435 (void) strlcpy(mountpoint, mntp.mnt_mountp,
|
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/ |
H A D | repquota.c | 101 struct mnttab mntp; local 209 while (getmntent(mtab, &mntp) == 0) { 210 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) == 0 && 211 !hasmntopt(&mntp, MNTOPT_RO) && 212 (oneof(mntp.mnt_special, listp, listcnt) || 213 oneof(mntp.mnt_mountp, listp, listcnt))) { 215 mntp.mnt_mountp, QFNAME); 216 errs += repquota(mntp.mnt_special, 217 mntp.mnt_mountp, quotafile); 440 struct mnttab mntp; local [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/edquota/ |
H A D | edquota.c | 659 struct mnttab mntp; local 670 while (getmntent(mtab, &mntp) == 0) { 671 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0) 673 if (stat64(mntp.mnt_special, &statb) < 0) 679 mntp.mnt_mountp, QFNAME); 688 fsqp->fsq_fs = strdup(mntp.mnt_mountp); 689 fsqp->fsq_dev = strdup(mntp.mnt_special); 820 struct mnttab mntp; local 844 while ((status = getmntent(fstab, &mntp)) == NULL) { 853 if (strcmp(mntp [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | setup.c | 405 * Reports the index of the magic filesystem that mntp names. 410 which_corefs(const caddr_t mntp) argument 415 if (strcmp(mntp, magic_fs[corefs]) == 0)
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quot/ |
H A D | quot.c | 193 struct mnttab mntp; local 203 while (getmntent(fstab, &mntp) == NULL) { 204 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0) 207 if ((cp = getfullrawname(mntp.mnt_special)) == NULL) 213 if (check(cp, mntp.mnt_mountp) == 0) { 248 struct mnttab mntp; local 255 while (getmntent(fstab, &mntp) == NULL) { 256 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0) 258 if (strcmp(mntp.mnt_special, file) == 0) { 259 fsdir = mntp 470 struct mnttab mntp; local [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 438 warn(struct mnttab *mntp, struct dqblk *dqp) argument 446 printf("Block limit reached on %s\n", mntp->mnt_mountp); 451 mntp->mnt_mountp, 458 mntp->mnt_mountp, 464 mntp->mnt_mountp, 470 printf("File count limit reached on %s\n", mntp->mnt_mountp); 475 mntp->mnt_mountp, 485 mntp->mnt_mountp, 492 mntp->mnt_mountp, 517 prquota(struct mnttab *mntp, struc argument 622 getdiskquota(struct mnttab *mntp, uid_t uid, struct dqblk *dqp) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/quotacheck/ |
H A D | quotacheck.c | 121 struct mnttab mntp; local 236 while (getmntent(mtab, &mntp) == NULL) { 237 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) == 0 && 238 !hasmntopt(&mntp, MNTOPT_RO) && 239 (oneof(mntp.mnt_special, listp, listcnt) || 240 oneof(mntp.mnt_mountp, listp, listcnt))) { 242 "%s/%s", mntp.mnt_mountp, QFNAME); 244 chkquota(mntp.mnt_special, 245 mntp.mnt_mountp, quotafile); 274 struct mnttab mntp, mpre local 709 struct mnttab mntp; local [all...] |
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | umount.c | 525 * first match of specp or mntp. The list is expected to be in reverse 531 getmntlast(mountent_t *mlist, char *specp, char *mntp) argument 537 if (mntp && (strcmp(mlist->ment.mnt_mountp, mntp) == 0)) { 543 if (mntp == NULL)
|
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/ |
H A D | mkfs.c | 182 struct mnttab mntp; local 379 while ((getmntent(mnttab, &mntp)) == NULL) { 380 if (strcmp(special, mntp.mnt_special) == 0) {
|
/illumos-gate/usr/src/cmd/fs.d/ufs/df/ |
H A D | df.c | 725 FILE *mntp; local 728 if ((mntp = fopen(MNTTAB, "r")) == 0) { 734 while (getmntent(mntp, &mnt) == 0) { 736 (void) fclose(mntp); 741 (void) fclose(mntp);
|
/illumos-gate/usr/src/cmd/stat/fsstat/ |
H A D | fsstat.c | 681 struct mnt *mntp; local 706 if ((mntp = malloc(sizeof (*mntp))) == NULL) { 710 mntp->m_mntpt = strdup(mnttab.mnt_mountp); 711 mntp->m_next = mnt_list; 712 mnt_list = mntp; 726 for (mntp = mnt_list; mntp; mntp = mntp [all...] |
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 234 struct mnttab *mntp; local 291 mntp = (struct mnttab *)malloc(sizeof (struct mnttab)); 292 if (mntp == NULL) { 298 while (getmntent(fp, mntp) == 0) { 305 DPRINTF1(" %s \n", mntp->mnt_special); 306 if (strstr(mntp->mnt_special, tmp_path_name) != 307 mntp->mnt_special) { 311 DPRINTF1("Found!! %s\n", mntp->mnt_special); 327 free(mntp); 346 struct mnttab *mntp; local [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/mount/ |
H A D | mount.c | 391 mount_nfs(struct mnttab *mntp, int ro, err_ret_t *retry_error) argument 413 mntp->mnt_fstype = MNTTYPE_NFS; 418 if (p = strstr(mntp->mnt_mntopts, "rw")) { 427 list = parse_replica(mntp->mnt_special, &n); 520 if (r = set_args(&mntflags, argp, host, mntp)) { 714 mntp->mnt_special) == -1) { 721 mntp->mnt_special = special; 767 saveopts = strdup(mntp->mnt_mntopts); 775 if (mount(mntp->mnt_special, mntp 2569 retry(struct mnttab *mntp, int ro) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | mountd.c | 1605 is_substring(char **mntp, char **path) argument 1607 char *p1 = *mntp, *p2 = *path;
|
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/ |
H A D | mkfs.c | 630 struct mnttab mntp; local 1459 while ((getmntent(mnttab, &mntp)) == NULL) { 1461 checkmount(&mntp, special); 1464 if (strcmp(special, mntp.mnt_special) == 0) { 4226 checkmount(struct mnttab *mntp, char *bdevname) argument 4231 if (strcmp(bdevname, mntp->mnt_special) == 0) { 4232 if (stat64(mntp->mnt_mountp, &statdir) == -1) { 4234 mntp->mnt_mountp); 4237 if (stat64(mntp->mnt_special, &statdev) == -1) { 4239 mntp [all...] |