/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | getpathbylabel.c | 51 struct mnttab *mntl_mnt; 101 tsol_mnt_free(struct mnttab *mnt) in tsol_mnt_free() 122 struct mnttab *mnt = mlp->mntl_mnt; in tsol_mlist_free() 132 static struct mnttab * 133 mntdup(struct mnttab *mnt) in mntdup() 135 struct mnttab *new; in mntdup() 137 new = (struct mnttab *)malloc(sizeof (*new)); in mntdup() 175 struct mnttab mnt; in tsol_mkmntlist() 189 mntl->mntl_mnt = mntdup((struct mnttab *)(&mnt)); in tsol_mkmntlist() 229 struct mnttab *autofs_mnt, char *globalpath, char *zonepath, int global_len) in getnfspathbyautofs() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | mnttab.h | 63 struct mnttab { struct 89 extern int getmntent(FILE *, struct mnttab *); argument 91 extern int getmntany(FILE *, struct mnttab *, struct mnttab *); 92 extern char *hasmntopt(struct mnttab *, char *);
|
/illumos-gate/usr/src/cmd/fs.d/ufs/df/ |
H A D | df.c | 83 static void dfreemnt(char *, struct mnttab *); 87 static int mdev(char *, struct mnttab **); 89 static struct mnttab *mntdup(struct mnttab *mnt); 136 struct mnttab *mntl_mnt; 153 struct mnttab mnt; in main() 367 struct mnttab *mp; in main() 558 dfreemnt(char *file, struct mnttab *mnt) in dfreemnt() 687 struct mnttab mnt; in mpath() 688 FILE *mnttab; in mpath() local 692 mnttab = fopen(MNTTAB, "r"); in mpath() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getmntent.c | 48 static int getmntent_compat(FILE *fp, struct mnttab *mp); 107 getmntany_compat(FILE *fp, struct mnttab *mgetp, struct mnttab *mrefp) in getmntany_compat() 141 getmntany(FILE *fp, struct mnttab *mgetp, struct mnttab *mrefp) in getmntany() 160 bzero(mgetp, sizeof (struct mnttab)); in getmntany() 265 return (getmntent_compat(fp, (struct mnttab *)emp)); in getmntent_common() 272 getmntent(FILE *fp, struct mnttab *mp) in getmntent() 306 hasmntopt(struct mnttab *mnt, char *opt) in hasmntopt() 361 getmntent_compat(FILE *fp, struct mnttab *mp) in getmntent_compat()
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | umount.c | 74 char mnttab[MAXPATHLEN + 1]; variable 90 struct mnttab ment; /* the mnttab data */ 131 static void doexec(struct mnttab *); 143 static mountent_t *new_mountent(struct mnttab *); 150 struct mnttab mget; in main() 224 if (realpath(MNTTAB, mnttab) == NULL) { in main() 225 strcpy(mnttab, MNTTAB); in main() 252 myname, mnttab); in main() 332 doexec(struct mnttab *ment) in doexec() 621 myname, mnttab); in parumount() [all …]
|
/illumos-gate/usr/src/cmd/svc/milestone/ |
H A D | fs-minimal | 41 readmnttab / < /etc/mnttab 50 mounted $mountp $mntopts $fstype < /etc/mnttab && continue 66 mounted /var/run - tmpfs < /etc/mnttab 79 mounted $mountp - zfs < /etc/mnttab && continue
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | fs_mounts.c | 48 static fs_mntlist_t *create_mntlist_entry(struct mnttab mnttab_entry); 50 static struct mnttab *create_mnttab_filter(char *resource, char *mountp, 54 static void free_mnttab_entry(struct mnttab *mnttab_entry); 170 struct mnttab mnttab_entry; in fs_get_filtered_mount_list() 171 struct mnttab *search_entry; in fs_get_filtered_mount_list() 284 struct mnttab mnttab_entry; in fs_get_mounts_by_mntopt() 530 create_mntlist_entry(struct mnttab mnttab_entry) { in create_mntlist_entry() 653 static struct mnttab * 657 struct mnttab *search_entry; in create_mnttab_filter() 659 search_entry = (struct mnttab *)calloc((size_t)1, in create_mnttab_filter() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | fs | 131 hdr mntent,mnttab stdio.h 132 sys mntent,mnttab stdio.h 135 mem mnttab.mt_dev,mnttab.mt_filsys,mnttab.mt_fstyp sys/types.h mnttab.h 136 mem mntent.mnt_opts,w_mntent.mnt_opts,mnttab.mnt_opts sys/types.h stdio.h mntent.h sys/mntent.h 137 mem mntent.mnt_opts,mnttab.mnt_opts stdio.h sys/types.h mnttab.h sys/mnttab.h
|
/illumos-gate/usr/src/cmd/fs.d/ufs/mount/ |
H A D | mount.c | 93 static int eatmntopt(struct mnttab *, char *); 95 static void fixopts(struct mnttab *, char *); 96 static void mountfs(struct mnttab *); 99 static void rmopt(struct mnttab *, char *); 129 struct mnttab mntent; in in_mnttab() 168 struct mnttab mnt; in main() 414 mountfs(struct mnttab *mnt) in mountfs() 616 eatmntopt(struct mnttab *mnt, char *opt) in eatmntopt() 629 rmopt(struct mnttab *mnt, char *opt) in rmopt() 660 fixopts(struct mnttab *mnt, char *opts) in fixopts() [all …]
|
/illumos-gate/usr/src/lib/libinstzones/common/ |
H A D | zones_lofs.c | 47 static struct mnttab *mountTable; 63 struct mnttab ent; in z_createMountTable() 64 struct mnttab *entp; in z_createMountTable() 238 struct mnttab *mnp; in z_resolve_lofs()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/ |
H A D | lockfs.c | 423 FILE *mnttab; in getmntnames() local 424 struct mnttab mnt, *mntp = &mnt; in getmntnames() 428 if ((mnttab = fopen(MNTTAB, "r")) == NULL) { in getmntnames() 433 while ((getmntent(mnttab, mntp)) == 0) { in getmntnames() 447 fclose(mnttab); in getmntnames()
|
/illumos-gate/usr/src/cmd/iscsid/ |
H A D | iscsi-initiator | 120 /usr/bin/grep " $mountp " /etc/mnttab >/dev/null \ 163 /usr/bin/grep " $iscsilun " /etc/mnttab >/dev/null 2>&1 185 /usr/bin/grep " $mountp " /etc/mnttab >/dev/null 2>&1
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_util.c | 636 struct mnttab mnttab; in smb_getdataset() local 637 struct mnttab mntpref; in smb_getdataset() 670 (void) memset(&mnttab, '\0', sizeof (mnttab)); in smb_getdataset() 679 if (getmntany(fp, &mnttab, &mntpref) == 0) { in smb_getdataset() 680 if (mnttab.mnt_fstype == NULL) in smb_getdataset() 683 if (strcmp(mnttab.mnt_fstype, "zfs") != 0) in smb_getdataset() 689 cp = mnttab.mnt_special; in smb_getdataset()
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_mount.c | 58 static int unmount_mntpnt(struct mnttab *); 338 struct mnttab m; 480 struct mnttab m; 541 struct mnttab *mnt; in unmount_mntpnt() 610 struct mnttab mtmap; in inherit_options() 611 struct mnttab mtopt; in inherit_options() 646 struct mnttab mt; in hasrestrictopt()
|
H A D | automount.c | 95 struct mnttab *omntp; in main() 263 omntp = (struct mnttab *)mntp; in main() 266 omntp = (struct mnttab *)mntp; in main() 484 struct mnttab *omnt; in do_unmounts() 497 omnt = (struct mnttab *)mnt; in do_unmounts()
|
H A D | automount.h | 288 extern int str_opt(struct mnttab *, char *, char **); 297 extern int nopt(struct mnttab *, char *, int *); 310 extern int nfsunmount(struct mnttab *);
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/ |
H A D | zpool_add.kshlib | 62 typeset mnttab="/etc/mnttab" 68 cat $mnttab | grep "^/dev/dsk" >$tmpfile
|
/illumos-gate/usr/src/cmd/fs.d/ufs/tunefs/ |
H A D | tunefs.c | 124 FILE *mnttab; in searchmnttab() local 125 struct mnttab mntbuf; in searchmnttab() 132 if ((mnttab = fopen(MNTTAB, "r")) == NULL) in searchmnttab() 134 while (getmntent(mnttab, &mntbuf) == 0) in searchmnttab() 143 fclose(mnttab); in searchmnttab()
|
/illumos-gate/usr/src/lib/libvolmgt/common/ |
H A D | volmgt_on_private.c | 58 static int vol_getmntdev(FILE *, struct mnttab *, dev_t, 79 struct mnttab mnt; /* set bug not used */ in _dev_mounted() 267 vol_getmntdev(FILE *fp, struct mnttab *mp, dev_t dev, struct dk_cinfo *ip) in vol_getmntdev() 407 static int vol_getmntdev(FILE *, struct mnttab *, dev_t, 418 struct mnttab mnt; in get_media_info()
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | utilities.c | 513 struct mnttab mnt; in mounted() 514 FILE *mnttab; in mounted() local 519 mnttab = fopen(MNTTAB, "r"); in mounted() 520 if (mnttab == NULL) { in mounted() 525 while ((getmntent(mnttab, &mnt)) == 0) { in mounted() 545 (void) fclose(mnttab); in mounted()
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.h | 100 struct mnttab *root_mnttab; 108 extern int zfm_print(const struct mnttab *mntp, void *unused);
|
H A D | zfs.c | 116 struct mnttab entry; in match_mountpoint() 172 struct mnttab entry; in is_mountpnt() 1292 mnttab_destroy(struct mnttab *tabp) in mnttab_destroy() 1310 static struct mnttab * 1311 mnttab_dup(const struct mnttab *srcp) in mnttab_dup() 1313 struct mnttab *retval; in mnttab_dup() 1317 retval = (struct mnttab *)calloc(1, sizeof (*retval)); in mnttab_dup() 1407 zone_mounts_cb(const struct mnttab *mountp, void *cookiep) in zone_mounts_cb() 1520 struct mnttab *mtab; in zone_mount_rootfs() 1611 struct mnttab *mtab; in zone_unmount_rootfs()
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgserv.c | 162 FILE *mnttab = NULL; in pkgfindrealsadmdir() local 201 if (mnttab == NULL) in pkgfindrealsadmdir() 202 mnttab = fopen(MNTTAB, "r"); in pkgfindrealsadmdir() 204 resetmnttab(mnttab); in pkgfindrealsadmdir() 206 while (getextmntent(mnttab, &xmnt, 0) == 0) { in pkgfindrealsadmdir() 236 if (mnttab != NULL) { in pkgfindrealsadmdir() 238 (void) fclose(mnttab); in pkgfindrealsadmdir()
|
/illumos-gate/usr/src/cmd/initpkg/ |
H A D | rcS.sh | 57 mnttab=/etc/mnttab
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 90 static void warn(struct mnttab *, struct dqblk *); 92 static void prquota(struct mnttab *, struct dqblk *); 242 struct mnttab mnt; in showquotas() 438 warn(struct mnttab *mntp, struct dqblk *dqp) in warn() 517 prquota(struct mnttab *mntp, struct dqblk *dqp) in prquota() 622 getdiskquota(struct mnttab *mntp, uid_t uid, struct dqblk *dqp) in getdiskquota() 672 struct mnttab mnt; in quotactl()
|