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.c66 #include <sys/mnttab.h>
124 FILE *mnttab; local
125 struct mnttab mntbuf;
132 if ((mnttab = fopen(MNTTAB, "r")) == NULL)
134 while (getmntent(mnttab, &mntbuf) == 0)
143 fclose(mnttab);
163 * For performance, don't search mnttab unless necessary
168 * If mounted directory, search mnttab for special
174 * 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)) == 0) {
544 (void) fclose(mnttab);
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgserv.c49 #include <sys/mnttab.h>
162 FILE *mnttab = NULL; local
180 * search the mnttab and find our mountpoint and the underlying
201 if (mnttab == NULL)
202 mnttab = fopen(MNTTAB, "r");
204 resetmnttab(mnttab);
206 while (getextmntent(mnttab, &xmnt, 0) == 0) {
236 if (mnttab != NULL) {
238 (void) fclose(mnttab);
/illumos-gate/usr/src/cmd/fs.d/
H A Dumount.c39 #include <sys/mnttab.h>
74 char mnttab[MAXPATHLEN + 1]; variable
85 * The basic mount struct that describes an mnttab entry.
90 struct mnttab ment; /* the mnttab data */
114 "/etc/mnttab",
131 static void doexec(struct mnttab *);
143 static mountent_t *new_mountent(struct mnttab *);
150 struct mnttab mget;
217 * mnttab ma
[all...]
H A Dmount.c44 #include <sys/mnttab.h>
129 char *mnttab = MNTTAB; variable
174 * mnttab structures from /etc/mnttab.
279 break; /* do not update /etc/mnttab */
372 /* if only reporting mnttab, generic prints mnttab and exits */
604 if ((fd = fopen(mnttab, "r")) == NULL) {
605 fprintf(stderr, gettext("%s: Cannot open mnttab\n"), myname);
782 gettext("%s: Line in mnttab exceed
[all...]
/illumos-gate/usr/src/lib/libbe/common/
H A Dbe_activate.c41 #include <sys/mnttab.h>
51 char *mnttab = MNTTAB; variable
/illumos-gate/usr/src/cmd/stat/fsstat/
H A Dfsstat.c44 #include <sys/mnttab.h>
609 * from /etc/mnttab. We only need to do this once and we don't do it
632 struct mnttab mnttab; local
645 while (getmntent(fp, &mnttab) == 0) {
650 mntp->m_mntpt = strdup(mnttab.mnt_mountp);
/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)) == 0) {
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/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.
636 struct mnttab mnttab; local
637 struct mnttab mntpref;
665 * Couldn't find a filesystem optimistically, use mnttab
670 (void) memset(&mnttab, '\0', sizeof (mnttab));
679 if (getmntany(fp, &mnttab, &mntpref) == 0) {
680 if (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.c112 #include <sys/mnttab.h>
153 static struct mnttab *resolve_lofs_mnts, *resolve_lofs_mnt_max;
211 free_mnttable(struct mnttab *mnt_array, uint_t nelem)
233 build_mnttable(zlog_t *zlogp, const char *zroot, size_t zrootlen, FILE *mnttab, argument
234 struct mnttab **mnt_arrayp, uint_t *nelemp)
236 struct mnttab mnt;
237 struct mnttab *mnts;
238 struct mnttab *mnp;
241 rewind(mnttab);
242 resetmnttab(mnttab);
302 FILE *mnttab; local
630 FILE *mnttab; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c217 #include <sys/mnttab.h>
586 void checkmount(struct mnttab *, char *);
631 FILE *mnttab; local
632 struct mnttab mntp;
1438 if ((mnttab = fopen(MNTTAB, "r")) == NULL) {
1443 while ((getmntent(mnttab, &mntp)) == 0) {
1455 (void) fclose(mnttab);
4227 checkmount(struct mnttab *mntp, char *bdevname)
4245 "%s is not mounted on %s; mnttab(4) wrong\n"),
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c45 #include <sys/mnttab.h>
3086 * pointing to a mnttab structure containing the mount's information.
3092 zonecfg_find_mounts(char *rootpath, int (*callback)(const struct mnttab *,
3095 FILE *mnttab; local
3096 struct mnttab m;
3110 mnttab = fopen("/etc/mnttab", "r");
3112 if (mnttab == NULL)
3115 if (ioctl(fileno(mnttab), MNTIOC_SHOWHIDDEN, NULL) < 0) {
3120 while (!getmntent(mnttab,
[all...]

Completed in 82 milliseconds