/illumos-gate/usr/src/cmd/file/ |
H A D | magicutils.c | 233 mtab = mtab1; in f_mkmtab() 237 mtab = mtab2; in f_mkmtab() 251 ep = mtab; in f_mkmtab() 275 if ((mtab = realloc(mtab, tbsize)) == NULL) { in f_mkmtab() 511 mtab1 = mtab; in f_mkmtab() 515 mtab2 = mtab; in f_mkmtab() 539 Entry *mtab; in f_ckmtab() local 549 mtab = mtab1; in f_ckmtab() 551 mtab = mtab2; in f_ckmtab() 1067 Entry *mtab; in f_prtmtab() local [all …]
|
/illumos-gate/usr/src/cmd/hal/tools/ |
H A D | hal-storage-shared.c | 74 struct mtab_handle *mtab; in mtab_open() local 76 mtab = g_new0 (struct mtab_handle, 1); in mtab_open() 77 mtab->n_mounts = getmntinfo (&mtab->mounts, MNT_NOWAIT); in mtab_open() 78 if (mtab->n_mounts == 0) { in mtab_open() 79 g_free (mtab); in mtab_open() 83 *handle = mtab; in mtab_open() 98 struct mtab_handle *mtab = handle; in mtab_next() local 100 if (mtab->iter < mtab->n_mounts) in mtab_next() 101 return mtab->mounts[mtab->iter++].f_mntfromname; in mtab_next()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quotaon/ |
H A D | quotaon.c | 92 FILE *mtab, *vfstab, *tmp; in main() local 202 mtab = fopen(MNTTAB, "r"); in main() 203 if (mtab == NULL) { in main() 209 while ((status = getmntent(mtab, &mntp)) == 0) in main() 213 rewind(mtab); in main() 223 while ((status = getmntent(mtab, &mntp)) == 0) { in main() 231 fclose(mtab); in main()
|
/illumos-gate/usr/src/cmd/prtvtoc/ |
H A D | prtvtoc.c | 252 struct mnttab mtab; in getmntpt() local 262 while (getmntent(file, &mtab) == 0) { in getmntpt() 263 item = mtab.mnt_special; in getmntpt() 264 if (item == NULL || mtab.mnt_mountp == NULL) in getmntpt() 293 SAFE_STRDUP(mtab.mnt_mountp); in getmntpt() 552 char *name, char **mtab) in puttable() argument 594 if (mtab != NULL) { in puttable() 595 mount_dir = mtab[idx]; in puttable() 607 puttable64(struct dk_gpt *efi, freemap_t *freemap, char *name, char **mtab) in puttable64() argument 642 if (idx < 7 && mtab != NULL) { in puttable64() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quotacheck/ |
H A D | quotacheck.c | 125 FILE *mtab, *vfstab; in main() local 229 if ((mtab = fopen(MNTTAB, "r")) == NULL) { in main() 234 while (getmntent(mtab, &mntp) == 0) { in main() 246 fclose(mtab); in main() 274 FILE *mtab; in preen() local 279 if ((mtab = fopen(MNTTAB, "r")) == NULL) { in preen() 302 rewind(mtab); in preen() 304 if (getmntany(mtab, &mntp, &mpref) == 0 && in preen() 327 rewind(mtab); in preen() 329 if (getmntany(mtab, &mntp, &mpref) != 0) { in preen() [all …]
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zfs.c | 1520 struct mnttab *mtab; in zone_mount_rootfs() local 1529 mtab = mounts->root_mnttab; in zone_mount_rootfs() 1530 if (mtab == NULL) in zone_mount_rootfs() 1547 if (mtab->mnt_mountp != NULL) { in zone_mount_rootfs() 1568 mtab->mnt_mountp) != 0) in zone_mount_rootfs() 1582 if (mtab->mnt_mntopts != NULL) in zone_mount_rootfs() 1586 if (mount(mtab->mnt_special, zoneroot, flags, mtab->mnt_fstype, NULL, 0, in zone_mount_rootfs() 1611 struct mnttab *mtab; in zone_unmount_rootfs() local 1620 mtab = mounts->root_mnttab; in zone_unmount_rootfs() 1621 if (mtab == NULL) in zone_unmount_rootfs() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/ |
H A D | repquota.c | 105 FILE *mtab, *vfstab; in main() local 202 if ((mtab = fopen(MNTTAB, "r")) == NULL) { in main() 207 while (getmntent(mtab, &mntp) == 0) { in main() 218 (void) fclose(mtab); in main()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | main.c | 838 struct mnttab mtab; in hasvfsopt() local 842 mtab.mnt_mntopts = vfs->vfs_mntopts; in hasvfsopt() 843 return (hasmntopt(&mtab, opt)); in hasvfsopt()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/edquota/ |
H A D | edquota.c | 662 FILE *mtab; in setupfs() local 665 if ((mtab = fopen(MNTTAB, "r")) == (FILE *)0) { in setupfs() 669 while (getmntent(mtab, &mntp) == 0) { in setupfs() 697 (void) fclose(mtab); in setupfs()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 243 FILE *mtab; in showquotas() local 266 mtab = fopen(MNTTAB, "r"); in showquotas() 267 while (getmntent(mtab, &mnt) == 0) { in showquotas() 434 fclose(mtab); in showquotas()
|
/illumos-gate/usr/src/lib/libxcurses/h/posix/ |
H A D | mkslocal.h | 801 #define M_FSMOUNT "/etc/mtab"
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | df.c | 526 struct extmnttab mtab; in mtab_read_file() local 537 while ((status = getextmntent(fp, &mtab, sizeof (struct extmnttab))) in mtab_read_file() 548 mtep->mte_mount = mntdup(&mtab); in mtab_read_file() 550 mtep->mte_ignore = (hasmntopt((struct mnttab *)&mtab, in mtab_read_file()
|
/illumos-gate/usr/src/lib/libxcurses/h/ |
H A D | mks.h | 240 #define M_FSMOUNT M_ETCDIR(mtab)
|