Searched defs:mnttab (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/uts/common/sys/
H A Dmnttab.h41 #define MNTTAB "/etc/mnttab"
56 * The fields in struct extmnttab should match those in struct mnttab until new
60 * The fields in struct mnttab, struct extmnttab and struct mntentbuf must all
63 struct mnttab { struct
89 extern int getmntent(FILE *, struct mnttab *);
91 extern int getmntany(FILE *, struct mnttab *, struct mnttab *);
92 extern char *hasmntopt(struct mnttab *, char *);
/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/
H A Dlockfs.c38 #include <sys/mnttab.h>
425 FILE *mnttab; local
426 struct mnttab mnt, *mntp = &mnt;
430 if ((mnttab = fopen(MNTTAB, "r")) == NULL) {
435 while ((getmntent(mnttab, mntp)) == 0) {
449 fclose(mnttab);
/illumos-gate/usr/src/cmd/prtvtoc/
H A Dprtvtoc.c50 #include <sys/mnttab.h>
103 static char *mnttab = MNTTAB; /* mnttab pathname */ variable
130 mnttab = optarg;
233 * from the fstab or mnttab. Returns a pointer to an array of pointers to
244 struct mnttab mtab;
250 /* read mnttab for partition mountpoints */
251 if ((file = fopen(mnttab, "r")) == NULL) {
252 (void) warn(mnttab, strerror(errno));
323 * use mnttab entr
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/tunefs/
H A Dtunefs.c68 #include <sys/mnttab.h>
126 FILE *mnttab; local
127 struct mnttab mntbuf;
134 if ((mnttab = fopen(MNTTAB, "r")) == NULL)
136 while (getmntent(mnttab, &mntbuf) == NULL)
145 fclose(mnttab);
165 * For performance, don't search mnttab unless necessary
170 * If mounted directory, search mnttab for special
176 * If mounted device, search mnttab for mountpoint
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dutilities.c44 #include <sys/mnttab.h>
505 * Since we do not believe /etc/mnttab, we stat the mount point
512 struct mnttab mnt;
513 FILE *mnttab; local
518 mnttab = fopen(MNTTAB, "r");
519 if (mnttab == NULL) {
524 while ((getmntent(mnttab, &mnt)) == NULL) {
544 (void) fclose(mnttab);
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgserv.c45 #include <sys/mnttab.h>
158 FILE *mnttab = NULL; local
176 * search the mnttab and find our mountpoint and the underlying
197 if (mnttab == NULL)
198 mnttab = fopen(MNTTAB, "r");
200 resetmnttab(mnttab);
202 while (getextmntent(mnttab, &xmnt, 0) == 0) {
232 if (mnttab != NULL) {
234 (void) fclose(mnttab);
/illumos-gate/usr/src/cmd/fs.d/
H A Dumount.c38 #include <sys/mnttab.h>
72 char mnttab[MAXPATHLEN + 1]; variable
83 * The basic mount struct that describes an mnttab entry.
88 struct mnttab ment; /* the mnttab data */
112 "/etc/mnttab",
129 static void doexec(struct mnttab *);
141 static mountent_t *new_mountent(struct mnttab *);
148 struct mnttab mget;
215 * mnttab ma
[all...]
H A Dmount.c47 #include <sys/mnttab.h>
131 char *mnttab = MNTTAB; variable
176 * mnttab structures from /etc/mnttab.
281 break; /* do not update /etc/mnttab */
374 /* if only reporting mnttab, generic prints mnttab and exits */
606 if ((fd = fopen(mnttab, "r")) == NULL) {
607 fprintf(stderr, gettext("%s: Cannot open mnttab\n"), myname);
784 gettext("%s: Line in mnttab exceed
[all...]
/illumos-gate/usr/src/lib/libbe/common/
H A Dbe_activate.c40 #include <sys/mnttab.h>
50 char *mnttab = MNTTAB; variable
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/
H A Dmkfs.c58 #include <sys/mnttab.h>
181 FILE *mnttab; local
182 struct mnttab mntp;
378 mnttab = fopen(MNTTAB, "r");
379 while ((getmntent(mnttab, &mntp)) == NULL) {
387 (void) fclose(mnttab);
393 gettext("%s is mounted but not in mnttab(4)\n"),
/illumos-gate/usr/src/cmd/fs.d/ufs/df/
H A Ddf.c53 #include <sys/mnttab.h>
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;
367 struct mnttab *mp;
558 dfreemnt(char *file, struct mnttab *mnt)
687 struct mnttab mn
688 FILE *mnttab; local
[all...]
/illumos-gate/usr/src/cmd/stat/fsstat/
H A Dfsstat.c42 #include <sys/mnttab.h>
669 * from /etc/mnttab. We only need to do this once and we don't do it
692 struct mnttab mnttab; local
705 while (getmntent(fp, &mnttab) == 0) {
710 mntp->m_mntpt = strdup(mnttab.mnt_mountp);
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_util.c37 #include <sys/mnttab.h>
627 * -1 = Failure to open /etc/mnttab file or to get ZFS dataset.
635 struct mnttab mnttab; local
636 struct mnttab mntpref;
642 (void) memset(&mnttab, '\0', sizeof (mnttab));
651 if (getmntany(fp, &mnttab, &mntpref) == 0) {
652 if (mnttab.mnt_fstype == NULL)
655 if (strcmp(mnttab
[all...]
/illumos-gate/usr/src/cmd/power/
H A Dhandlers.c31 #include <sys/mnttab.h>
891 char *src, *err_fmt = NULL, *mnttab = MNTTAB; local
893 struct mnttab zroot = { 0 };
894 struct mnttab entry;
898 if ((fp = fopen(mnttab, "r")) == NULL) {
899 mesg(MERR, open_fmt, mnttab, strerror(errno));
921 mesg(MERR, "error reading \"%s\"\n", mnttab);
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dvplat.c111 #include <sys/mnttab.h>
152 static struct mnttab *resolve_lofs_mnts, *resolve_lofs_mnt_max;
210 free_mnttable(struct mnttab *mnt_array, uint_t nelem)
232 build_mnttable(zlog_t *zlogp, const char *zroot, size_t zrootlen, FILE *mnttab, argument
233 struct mnttab **mnt_arrayp, uint_t *nelemp)
235 struct mnttab mnt;
236 struct mnttab *mnts;
237 struct mnttab *mnp;
240 rewind(mnttab);
241 resetmnttab(mnttab);
301 FILE *mnttab; local
629 FILE *mnttab; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c213 #include <sys/mnttab.h>
584 void checkmount(struct mnttab *, char *);
629 FILE *mnttab; local
630 struct mnttab mntp;
1454 if ((mnttab = fopen(MNTTAB, "r")) == NULL) {
1459 while ((getmntent(mnttab, &mntp)) == NULL) {
1471 (void) fclose(mnttab);
4226 checkmount(struct mnttab *mntp, char *bdevname)
4244 "%s is not mounted on %s; mnttab(4) wrong\n"),
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c44 #include <sys/mnttab.h>
3085 * pointing to a mnttab structure containing the mount's information.
3091 zonecfg_find_mounts(char *rootpath, int (*callback)(const struct mnttab *,
3094 FILE *mnttab; local
3095 struct mnttab m;
3109 mnttab = fopen("/etc/mnttab", "r");
3111 if (mnttab == NULL)
3114 if (ioctl(fileno(mnttab), MNTIOC_SHOWHIDDEN, NULL) < 0) {
3119 while (!getmntent(mnttab,
[all...]

Completed in 102 milliseconds