Searched defs:vfstab (Results 1 - 16 of 16) sorted by relevance

/illumos-gate/usr/src/uts/common/sys/
H A Dvfstab.h36 #define VFSTAB "/etc/vfstab"
58 struct vfstab { struct
68 extern int getvfsent(FILE *, struct vfstab *);
69 extern int getvfsspec(FILE *, struct vfstab *, char *);
70 extern int getvfsfile(FILE *, struct vfstab *, char *);
71 extern int getvfsany(FILE *, struct vfstab *, struct vfstab *);
/illumos-gate/usr/src/cmd/fs.d/
H A Dvolcopy.c37 #include <sys/vfstab.h>
58 char vfstab[] = VFSTAB; variable
69 struct vfstab vget, vref;
191 if ((fd = fopen(vfstab, "r")) == NULL)
192 perr("volcopy: cannot open %s.\n", vfstab);
214 perr("volcopy: line in vfstab exceeds "
218 perr("volcopy: line in vfstab has too few entries\n");
221 perr("volcopy: line in vfstab has too many entries\n");
H A Dff.c38 #include <sys/vfstab.h>
53 char vfstab[] = VFSTAB; variable
80 struct vfstab vfsbuf;
108 fprintf(stderr, "%s: cannot open vfstab\n",
185 fprintf(stderr, "%s: cannot open vfstab\n", cbasename);
270 * This looks up the /etc/vfstab entry given the device 'special'.
282 struct vfstab vget, vref;
284 if ((fd = fopen(vfstab, "r")) == NULL) {
285 fprintf(stderr, "%s: cannot open vfstab\n", cbasename);
307 fprintf(stderr, "%s: line in vfstab exceed
[all...]
H A Dswitchout.c39 #include <sys/vfstab.h>
62 char vfstab[] = VFSTAB; variable
354 * This looks up the /etc/vfstab entry given the device 'special'.
366 struct vfstab vget, vref;
368 if ((fd = fopen(vfstab, "r")) == NULL) {
369 (void) fprintf(stderr, gettext("%s: cannot open vfstab\n"),
393 gettext("%s: line in vfstab exceeds %d characters\n"),
399 gettext("%s: line in vfstab has too few entries\n"),
H A Dfsck.c37 #include <sys/vfstab.h>
83 char vfstab[] = VFSTAB; variable
90 * help speed vfstab lookups.
103 * private copy vfstab functions
105 static struct vfstab vfsave = {NULL, NULL, NULL, NULL, NULL, NULL, NULL};
117 vfdup(struct vfstab *vp)
194 mygetvfsent(FILE *fp, struct vfstab *vp)
204 mygetvfsany(FILE *fp, struct vfstab *vp, struct vfstab *vrefp)
221 struct vfstab vge
[all...]
H A Dmount.c50 #include <sys/vfstab.h>
125 * the /etc/vfstab file.
130 char *vfstab = VFSTAB; variable
146 * Each vfsent_t describes a vfstab entry. It is used to manage and cleanup
151 struct vfstab v; /* the vfstab entry */
154 int order; /* vfstab serial order of this vfs */
170 /* linked list of vfstab entries */
187 static vfsent_t *new_vfsent(struct vfstab *, int);
218 * /etc/vfstab i
[all...]
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dmain.c47 #include <sys/vfstab.h>
291 struct vfstab vfsbuf;
292 FILE *vfstab; local
316 * Determine if this is the root file system via vfstab. Give up
323 if ((vfstab = fopen(VFSTAB, "r")) != 0) {
324 if (getvfsfile(vfstab, &vfsbuf, "/") == 0) {
333 if (getvfsfile(vfstab, &vfsbuf, "/usr") == 0) {
391 hasvfsopt(struct vfstab *vfs, char *opt)
H A Dsetup.c51 #include <sys/vfstab.h>
107 * match entries in the /etc/vfstab.
128 FILE *vfstab; local
129 struct vfstab vfsbuf;
131 * Check vfstab for a mount point with this name
133 if ((vfstab = fopen(VFSTAB, "r")) == NULL) {
137 while (getvfsent(vfstab, &vfsbuf) == NULL) {
145 (void) fclose(vfstab);
157 (void) fclose(vfstab);
H A Dutilities.c47 #include <sys/vfstab.h>
57 extern char *hasvfsopt(struct vfstab *, char *);
549 * Check to see if name corresponds to an entry in vfstab, and that the entry
556 struct vfstab vfsbuf;
557 FILE *vfstab; local
560 vfstab = fopen(VFSTAB, "r");
561 if (vfstab == NULL) {
566 if ((getvfsspec(vfstab, &vfsbuf, blkname) == 0) &&
572 (void) fclose(vfstab);
/illumos-gate/usr/src/cmd/fs.d/ufs/quotaon/
H A Dquotaon.c66 #include <sys/vfstab.h>
91 struct vfstab vfsbuf;
94 FILE *mtab, *vfstab, *tmp; local
154 * If aflag go through vfstab and make a list of appropriate
162 vfstab = fopen(VFSTAB, "r");
163 if (vfstab == NULL) {
169 while ((status = getvfsent(vfstab, &vfsbuf)) == NULL) {
193 fclose(vfstab);
329 hasvfsopt(struct vfstab *vfs, char *opt)
/illumos-gate/usr/src/cmd/fs.d/ufs/tunefs/
H A Dtunefs.c69 #include <sys/vfstab.h>
99 FILE *vfstab; local
100 struct vfstab vfsbuf;
107 if ((vfstab = fopen(VFSTAB, "r")) == NULL) {
111 while (getvfsent(vfstab, &vfsbuf) == NULL)
120 fclose(vfstab);
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dmain.c129 #include <sys/vfstab.h>
166 * Filesystems that are `magical' - if they exist in vfstab,
691 struct vfstab vfsbuf;
692 FILE *vfstab; local
717 * Determine if this is the root file system via vfstab. Give up
721 if (!is_file && (vfstab = fopen(VFSTAB, "r")) != NULL) {
725 if (getvfsfile(vfstab, &vfsbuf,
801 hasvfsopt(struct vfstab *vfs, char *opt)
H A Dutilities.c52 #include <sys/vfstab.h>
70 static struct vfstab *search_vfstab(caddr_t, caddr_t, caddr_t, size_t);
1084 * Check to see if name corresponds to an entry in vfstab, and that the entry
1091 struct vfstab vfsbuf, vfskey;
1092 FILE *vfstab; local
1094 vfstab = fopen(VFSTAB, "r");
1095 if (vfstab == NULL) {
1103 if ((getvfsany(vfstab, &vfsbuf, &vfskey) == 0) &&
1107 (void) fclose(vfstab);
1515 * in the vfstab
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/
H A Drepquota.c59 #include <sys/vfstab.h>
78 static char *hasvfsopt(struct vfstab *, char *);
102 struct vfstab vfsbuf;
107 FILE *mtab, *vfstab; local
160 * If aflag go through vfstab and make a list of appropriate
166 if ((vfstab = fopen(VFSTAB, "r")) == NULL) {
171 while (getvfsent(vfstab, &vfsbuf) == 0) {
197 (void) fclose(vfstab);
489 hasvfsopt(struct vfstab *vfs, char *opt)
/illumos-gate/usr/src/cmd/fs.d/ufs/quotacheck/
H A Dquotacheck.c64 #include <sys/vfstab.h>
122 struct vfstab vfsbuf;
127 FILE *mtab, *vfstab; local
187 * Go through vfstab and make a list of appropriate
192 if ((vfstab = fopen(VFSTAB, "r")) == NULL) {
197 while (getvfsent(vfstab, &vfsbuf) == NULL) {
221 fclose(vfstab);
771 hasvfsopt(struct vfstab *vfs, char *opt)
/illumos-gate/usr/src/lib/libbe/common/
H A Dbe_utils.c45 #include <sys/vfstab.h>
2142 * Description: This function digs into a BE's vfstab and updates all
2153 * file systems to look for in vfstab.
2185 /* Get string for vfstab in the mounted BE. */
2186 (void) snprintf(alt_vfstab, sizeof (alt_vfstab), "%s/etc/vfstab",
2189 /* Update the vfstab */
2214 * Description: This function digs into a zone BE's vfstab and updates all
2226 * file systems to look for in vfstab.
2266 /* Get string from vfstab in the mounted zone BE */
2267 (void) snprintf(alt_vfstab, sizeof (alt_vfstab), "%s/etc/vfstab",
3434 _update_vfstab(char *vfstab, char *be_name, char *old_rc_loc, char *new_rc_loc, be_fs_list_data_t *fld) argument
[all...]

Completed in 89 milliseconds