Searched defs:mnt (Results 1 - 25 of 39) sorted by relevance

12

/illumos-gate/usr/src/lib/lvm/libsvm/common/
H A Dgetdrvname.c76 get_drv_name(major_t major, char *mnt, char *buf) argument
85 (void) snprintf(fname, sizeof (fname), "%s%s", mnt, NAME_TO_MAJOR);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dfstab.c40 struct mntent *mnt; local
43 while (((mnt = getmntent(fs_file)) != NULL) &&
44 !((strcmp(mnt->mnt_type, MNTTYPE_42) == 0) ||
45 (strcmp(mnt->mnt_type, MNTTYPE_SWAP) == 0) ||
46 (strcmp(mnt->mnt_type, MNTTYPE_IGNORE) == 0)))
48 if (mnt == NULL)
50 fs->fs_spec = mnt->mnt_fsname;
51 fs->fs_file = mnt->mnt_dir;
52 if (strcmp(mnt->mnt_type, MNTTYPE_IGNORE) == 0) {
53 strcpy(mnt
[all...]
H A Dmntent.c90 mnttabscan(FILE *mnttabp, struct mntent *mnt) argument
103 mnt->mnt_fsname = mntstr(&cp);
106 mnt->mnt_dir = mntstr(&cp);
109 mnt->mnt_type = mntstr(&cp);
112 mnt->mnt_opts = mntstr(&cp);
115 mnt->mnt_freq = mntdigit(&cp);
118 mnt->mnt_passno = mntdigit(&cp);
168 addmntent(FILE *mnttabp, struct mntent *mnt) argument
172 if (mnt == (struct mntent *)0)
174 if (mnt
202 hasmntopt(struct mntent *mnt, char *opt) argument
223 mntprtent(FILE *mnttabp, struct mntent *mnt) argument
[all...]
/illumos-gate/usr/src/cmd/rexd/
H A Dmntent.c97 mnttabscan(FILE *mnttabp, struct mnttab *mnt) argument
112 mnt->mnt_special = mntstr(&cp);
115 mnt->mnt_mountp = mntstr(&cp);
118 mnt->mnt_fstype = mntstr(&cp);
121 mnt->mnt_mntopts = mntstr(&cp);
124 mnt->mnt_time = mntstr(&cp);
212 * addmntent(mnttabp, mnt)
214 * register struct mnttab *mnt;
218 * if (mnt == (struct mnttab *)0)
220 * if (mnt
230 mntprtent(FILE *mnttabp, struct mnttab *mnt) argument
[all...]
H A Dwhere.c148 *mnt; local
H A Dmount_nfs.c68 static void freemnttab(struct mnttab *mnt);
115 struct mnttab mnt; local
397 mnt.mnt_special = fsname;
398 mnt.mnt_mountp = dir;
399 mnt.mnt_fstype = MNTTYPE_NFS;
400 mnt.mnt_mntopts = opts;
402 mnt.mnt_time = tbuf;
485 dupmnttab(struct mnttab *mnt) argument
494 new->mnt_special = strdup(mnt->mnt_special);
497 new->mnt_mountp = strdup(mnt
525 freemnttab(struct mnttab *mnt) argument
[all...]
/illumos-gate/usr/src/cmd/backup/dump/
H A Dpartial.c54 struct mntent *mnt; local
65 while (mnt = getmnttab()) {
66 st.st_dev = devfromopts(mnt);
68 stat64(mnt->mnt_dir, &st) < 0)
75 disk = rawname(mnt->mnt_fsname);
76 disk_dynamic = (disk != mnt->mnt_fsname);
95 devfromopts(mnt)
96 struct mntent *mnt;
100 str = hasmntopt(mnt, MNTINFO_DEV);
H A Ddumpfstab.c98 struct mnttab *mnt; local
122 mnt = (struct mnttab *)xmalloc(sizeof (*mnt));
123 mnt->mnt_fsname = mntstrdup(vfs.vfs_special);
124 mnt->mnt_dir = mntstrdup(vfs.vfs_mountp);
125 mnt->mnt_type = mntstrdup(vfs.vfs_fstype);
126 mnt->mnt_opts = mntstrdup(vfs.vfs_mntopts);
139 pm->pm_mnt = mnt;
166 allocmntent(mnt)
167 struct mntent *mnt;
201 struct mntent *mnt; local
253 struct mntent *mnt; local
[all...]
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtfs.c33 #include <mnt.h>
61 register Mnt_t* mnt; local
80 while ((mnt = mntread(mp)) && (stat(mnt->dir, &rt) || rt.st_dev != st->st_dev));
81 if (mnt && mnt->type)
82 s = mnt->type;
/illumos-gate/usr/src/cmd/stat/common/
H A Dmnt.c114 struct extmnttab mnt; local
133 (void) memset(&mnt, 0, sizeof (struct extmnttab));
136 while ((found = getextmntent(mpt, &mnt,
139 if (strcmp(mnt.mnt_fstype, MNTTYPE_UFS) == 0)
141 else if (strcmp(mnt.mnt_fstype,
149 safe_strdup(mnt.mnt_special);
151 safe_strdup(mnt.mnt_mountp);
153 safe_strdup(mnt.mnt_mntopts);
154 item->minor = mnt.mnt_minor;
/illumos-gate/usr/src/cmd/fs.d/smbclnt/umount/
H A Dumount.c165 struct extmnttab mnt; local
173 while (getextmntent(fp, &mnt, sizeof (struct extmnttab)) == 0) {
174 if (strcmp(mnt.mnt_mountp, dirname) == 0 ||
175 strcmp(mnt.mnt_special, dirname) == 0) {
178 res = fsdupmnttab(&mnt);
/illumos-gate/usr/src/cmd/fs.d/nfs/umount/
H A Dumount.c213 struct extmnttab mnt; local
221 while (getextmntent(fp, &mnt, sizeof (struct extmnttab)) == 0) {
222 if (strcmp(mnt.mnt_mountp, dirname) == 0 ||
223 strcmp(mnt.mnt_special, dirname) == 0) {
226 res = fsdupmnttab(&mnt);
/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/
H A Dlockfs.c426 struct mnttab mnt, *mntp = &mnt; local
/illumos-gate/usr/src/uts/common/fs/mntfs/
H A Dmntvfsops.c181 mntdata_t *mnt; local
206 mnt = kmem_zalloc(sizeof (*mnt), KM_SLEEP);
211 kmem_free(mnt, sizeof (*mnt));
216 zone_init_ref(&mnt->mnt_zone_ref);
217 zone_hold_ref(zone, &mnt->mnt_zone_ref, ZONE_REF_MNTFS);
218 mnp = &mnt->mnt_node;
221 vfsp->vfs_data = (caddr_t)mnt;
244 mntdata_t *mnt local
[all...]
/illumos-gate/usr/src/lib/libtsol/common/
H A Dgetpathbylabel.c104 tsol_mnt_free(struct mnttab *mnt) argument
106 if (mnt->mnt_special)
107 free(mnt->mnt_special);
108 if (mnt->mnt_mountp)
109 free(mnt->mnt_mountp);
110 if (mnt->mnt_fstype)
111 free(mnt->mnt_fstype);
112 if (mnt->mnt_mntopts)
113 free(mnt->mnt_mntopts);
114 free(mnt);
125 struct mnttab *mnt = mlp->mntl_mnt; local
136 mntdup(struct mnttab *mnt) argument
178 struct mnttab mnt; local
261 struct mnttab *mnt = mlp->mntl_mnt; local
308 struct mnttab *mnt = mlp->mntl_mnt; local
379 struct mnttab *mnt = mlp->mntl_mnt; local
[all...]
/illumos-gate/usr/src/lib/libvolmgt/common/
H A Dvolmgt_on_private.c78 struct mnttab mnt; /* set bug not used */ local
106 if (vol_getmntdev(fp, &mnt, sb.st_rdev, &info) != 0) {
417 struct mnttab mnt; local
446 if (vol_getmntdev(fp, &mnt, sb.st_rdev, &info) != 0) {
457 *spclp = strdup(mnt.mnt_special);
472 cp = mnt.mnt_mountp;
481 mnt_dir = mnt.mnt_mountp; /* save dir path */
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A D_open.c214 struct mntent mnt; local
220 GETTOK(mnt.mnt_fsname, line);
221 GETTOK(mnt.mnt_dir, NULL);
222 GETTOK(mnt.mnt_type, NULL);
223 GETTOK(mnt.mnt_opts, NULL);
225 mnt.mnt_freq = 0;
226 mnt.mnt_passno = 0;
230 if (strcmp(mnt.mnt_type, "ufs") == 0) {
231 mnt.mnt_type = "4.2";
239 if (mnt
266 struct mntent mnt; local
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetmntent.c307 hasmntopt(struct mnttab *mnt, char *opt) argument
313 if (mnt->mnt_mntopts == NULL)
315 (void) strcpy(opts, mnt->mnt_mntopts);
326 return (f - tmpopts + mnt->mnt_mntopts);
/illumos-gate/usr/src/cmd/fs.d/
H A Dfssnapsup.c108 kstat_t *mnt; local
187 mnt = kstat_lookup(kslib, SNAP_NAME, i, FSSNAP_KSTAT_MNTPT);
190 if (mnt == NULL)
192 if (kstat_read(kslib, mnt, NULL) == -1)
196 (!usenum && strcmp(mountpoint, mnt->ks_data) != 0))
201 printf("%4d\t%s\n", i, (char *)mnt->ks_data);
213 kstat_t *mnt; local
256 mnt = kstat_lookup(kslib, SNAP_NAME, snapnum,
258 if (mnt == NULL) {
263 if (kstat_read(kslib, mnt, NUL
[all...]
H A Dfslib.c84 fsdupmnttab(struct extmnttab *mnt) argument
97 new->mnt_mountp = (char *)malloc(strlen(mnt->mnt_mountp) + 2);
100 (void) strcpy(new->mnt_mountp, mnt->mnt_mountp);
102 if ((new->mnt_special = strdup(mnt->mnt_special)) == NULL)
105 if ((new->mnt_fstype = strdup(mnt->mnt_fstype)) == NULL)
108 if (mnt->mnt_mntopts != NULL)
109 if ((new->mnt_mntopts = strdup(mnt->mnt_mntopts)) == NULL)
112 if (mnt->mnt_time != NULL)
113 if ((new->mnt_time = strdup(mnt->mnt_time)) == NULL)
116 new->mnt_major = mnt
130 fsfreemnttab(struct extmnttab *mnt) argument
168 struct extmnttab mnt; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautomount.c94 struct extmnttab mnt, *mntp; local
483 struct extmnttab *mnt; local
496 mnt = mntl->mntl_mnt;
497 omnt = (struct mnttab *)mnt;
498 if (strcmp(mnt->mnt_fstype, MNTTYPE_AUTOFS) != 0)
500 if (fs_mount_in_other_zone(zsp, mnt->mnt_mountp))
514 if (strcmp(dir->dir_name, mnt->mnt_mountp) == 0) {
523 if (umount(mnt->mnt_mountp) == 0) {
526 mnt->mnt_mountp);
H A Dauto_subr.c459 * Returns zero if "opt" is found in mnt->mnt_opts, setting
470 str_opt(struct mnttab *mnt, char *opt, char **sval) argument
477 if (str = hasmntopt(mnt, opt)) {
/illumos-gate/usr/src/cmd/fs.d/smbclnt/mount/
H A Dmount.c156 struct mnttab mnt; variable in typeref:struct:mnttab
220 mnt.mnt_mntopts = optbuf;
305 mnt.mnt_special = special;
306 mnt.mnt_mountp = argv[optind+1];
381 err2 = mount(mnt.mnt_special, mnt.mnt_mountp,
383 mnt.mnt_mntopts, MAX_MNTOPT_STR);
389 mnt.mnt_mountp);
392 if (stat(mnt.mnt_mountp, &sb) < 0 &&
395 mnt
[all...]
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dutilities.c512 struct mnttab mnt; local
524 while ((getmntent(mnttab, &mnt)) == NULL) {
525 if (strcmp(mnt.mnt_fstype, MNTTYPE_UDFS) != 0) {
528 if (strcmp(blkname, mnt.mnt_special) == 0) {
529 err = stat(mnt.mnt_mountp, &mount_stat);
530 err |= stat(mnt.mnt_special, &device_stat);
534 (void) strncpy(mnt.mnt_mountp, mountpoint,
536 if (hasmntopt(&mnt, MNTOPT_RO) != 0)
/illumos-gate/usr/src/uts/common/fs/namefs/
H A Dnamevfs.c166 * Search for a namenode that has a nm_filevp == vp and nm_mountpt == mnt.
167 * If mnt is NULL, return the first link with nm_filevp of vp.
171 namefind(vnode_t *vp, vnode_t *mnt) argument
178 (mnt == NULL || np->nm_mountpt == mnt))

Completed in 138 milliseconds

12