/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unmount/ |
H A D | zfs_unmount.kshlib | 33 function do_unmount #cmd #opt #mnt #expect 37 typeset mnt=$3 42 mounted $mnt || wasmounted=0 45 log_must zfs $cmd $opt $mnt 47 log_must unmounted $mnt 49 log_note "Successfully zfs $cmd $opt $mnt" 52 log_note "zfs $cmd $opt $mnt" 54 zfs $cmd $opt $mnt 57 log_fail "'zfs $cmd $opt $mnt' " \ 62 log_must mounted $mnt [all...] |
H A D | zfs_unmount_001_pos.ksh | 67 typeset mnt=$3 81 log_must zfs $cmd $options $mnt 83 unmounted "$mnt" || \ 84 log_fail "Unable to unmount $options $mnt" 86 log_note "Successfully unmounted $options $mnt"
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | auto_mnttab.c | 59 get_devid(mnt) 60 struct extmnttab *mnt; 62 return (makedev(mnt->mnt_major, mnt->mnt_minor));
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | fstab.c | 40 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 D | mntent.c | 90 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/backup/dump/ |
H A D | dumpfstab.c | 98 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...] |
H A D | partial.c | 54 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);
|
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | getpathbylabel.c | 104 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/libast/common/string/ |
H A D | fmtfs.c | 33 #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/rexd/ |
H A D | mntent.c | 97 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 D | mount_nfs.c | 68 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/fs.d/ufs/mount/ |
H A D | mount.c | 168 struct mnttab mnt; local 229 mnt.mnt_special = argv[optind]; 230 mnt.mnt_mountp = argv[optind+1]; 231 mnt.mnt_fstype = fstype; 251 mnt.mnt_mntopts = opts; 252 if (findopt(mnt.mnt_mntopts, "m")) 254 if ((gflg || findopt(mnt.mnt_mntopts, MNTOPT_GLOBAL)) && 255 findopt(mnt.mnt_mntopts, MNTOPT_NBMAND)) { 265 if (findopt(mnt.mnt_mntopts, MNTOPT_RQ)) { 266 rmopt(&mnt, MNTOPT_R 414 mountfs(struct mnttab *mnt) argument 616 eatmntopt(struct mnttab *mnt, char *opt) argument 629 rmopt(struct mnttab *mnt, char *opt) argument 660 fixopts(struct mnttab *mnt, char *opts) argument [all...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | _open.c | 214 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/libast/common/port/ |
H A D | mnt.c | 32 #include <mnt.h> 37 NoN(mnt) 55 Mnt_t mnt; 72 hp->mnt.flags = 0; 77 hp->mnt.flags |= MNT_REMOTE; 87 hp->mnt.flags |= MNT_REMOTE; 92 hp->mnt.flags |= MNT_REMOTE; 95 hp->mnt.fs = (char*)fs; 96 hp->mnt.dir = (char*)dir; 97 hp->mnt [all...] |
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | fslib.c | 84 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...] |
H A D | fssnapsup.c | 108 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...] |
/illumos-gate/usr/src/cmd/stat/common/ |
H A D | mnt.c | 114 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/ufs/df/ |
H A D | df.c | 89 static struct mnttab *mntdup(struct mnttab *mnt); 153 struct mnttab mnt; local 267 while (getmntent(mtabp, &mnt) == 0) { 268 if (strcmp(typestr, mnt.mnt_fstype) != 0) { 271 dfreemnt(mnt.mnt_mountp, &mnt); 558 dfreemnt(char *file, struct mnttab *mnt) argument 573 (void) printf("%s", mnt->mnt_special); 575 if (strlen(mnt->mnt_special) > (size_t)20) { 576 (void) printf("%s\n", mnt 687 struct mnttab mnt; local 726 struct mnttab mnt; local 812 struct mnttab *mnt = mlp->mntl_mnt; local 977 mntdup(struct mnttab *mnt) argument 1026 struct extmnttab mnt; local [all...] |
/illumos-gate/usr/src/uts/common/fs/mntfs/ |
H A D | mntvfsops.c | 181 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/cmd/fs.d/smbclnt/umount/ |
H A D | umount.c | 165 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/hal/tools/ |
H A D | hal-storage-shared.c | 106 static struct mnttab mnt; 108 if (getmntent (handle, &mnt) == 0) { 110 *mount_point = g_strdup (mnt.mnt_mountp); 112 return mnt.mnt_special; 117 struct mntent *mnt; 119 mnt = getmntent (handle); 121 if (mnt != NULL) { 123 *mount_point = g_strdup (mnt->mnt_dir); 125 return mnt->mnt_fsname; 177 struct mntent *mnt; [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 242 struct mnttab mnt; local 267 while (getmntent(mtab, &mnt) == NULL) { 268 if (strcmp(mnt.mnt_fstype, MNTTYPE_ZFS) == 0) { 270 if (getzfsquota(name, mnt.mnt_special, &dqblk)) 272 } else if (strcmp(mnt.mnt_fstype, MNTTYPE_UFS) == 0) { 275 mnt.mnt_mountp, uid, &dqblk) != 0 && 276 !(vflag && getdiskquota(&mnt, uid, &dqblk)))) 278 } else if (strcmp(mnt.mnt_fstype, MNTTYPE_NFS) == 0) { 288 * "zone=<zone-name>,<mnt options...>" 290 if ((mntopt = hasmntopt(&mnt, MNTOPT_ZON 672 struct mnttab mnt; local [all...] |
/illumos-gate/usr/src/lib/lvm/libsvm/common/ |
H A D | getdrvname.c | 76 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/cmd/acct/ |
H A D | dodisk.sh | 38 format="dev mnt type comment" 40 format="special dev mnt fstype fsckpass automnt mntflags" 90 if egrep -s "^${special}[ ]+${mnt}[ ]" /etc/mnttab 92 find $mnt -mount -print | \
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/mount/ |
H A D | mount.c | 156 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...] |