/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/test/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_014_neg.ksh | 76 typeset mntp=/mnt
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/delegate/ |
H A D | delegate_common.kshlib | 884 typeset newmntpt=/tmp/mnt.$stamp 952 typeset newmntpt=/tmp/mnt.$stamp
|
/illumos-gate/usr/src/boot/sys/boot/zfs/ |
H A D | zfsimpl.c | 2024 zfs_mount(const spa_t *spa, uint64_t rootobj, struct zfsmount *mnt) argument 2027 mnt->spa = spa; 2037 if (zfs_mount_dataset(spa, rootobj, &mnt->objset)) { 2042 mnt->rootobj = rootobj; 2190 zfs_lookup(const struct zfsmount *mnt, const char *upath, dnode_phys_t *dnode) argument 2202 spa = mnt->spa; 2203 if (mnt->objset.os_type != DMU_OST_ZFS) { 2205 (uintmax_t)mnt->objset.os_type); 2212 rc = objset_get_dnode(spa, &mnt->objset, MASTER_NODE_OBJ, &dn); 2220 rc = objset_get_dnode(spa, &mnt [all...] |
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_main.c | 5785 struct mnttab mnt; local 5960 mnt.mnt_mntopts = ""; 5962 mnt.mnt_mntopts = (char *)options; 5964 if (!hasmntopt(&mnt, MNTOPT_REMOUNT) &&
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 235 struct mnttab mnt; local 244 while (getmntent(mnttab, &mnt) == 0) { 247 if (strncmp(mnt.mnt_mountp, zroot, zrootlen) != 0) 265 if (mnt.mnt_special != NULL) 266 mnp->mnt_special = strdup(mnt.mnt_special); 267 if (mnt.mnt_mntopts != NULL) 268 mnp->mnt_mntopts = strdup(mnt.mnt_mntopts); 269 mnp->mnt_mountp = strdup(mnt.mnt_mountp); 270 mnp->mnt_fstype = strdup(mnt.mnt_fstype); 271 if ((mnt [all...] |
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_dataset.c | 1972 struct mnttab mnt; local 2040 mnt.mnt_mntopts = ""; 2042 mnt.mnt_mntopts = zhp->zfs_mntopts; 2057 if (hasmntopt(&mnt, mntopt_on) && !*val) { 2061 } else if (hasmntopt(&mnt, mntopt_off) && *val) {
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 1050 struct extmnttab mnt; local 1083 while (getextmntent(fp, &mnt, sizeof (mnt)) == 0) { 1084 if (mnt.mnt_major == major(statbuf.st_dev) && 1085 mnt.mnt_minor == minor(statbuf.st_dev)) { 1087 root_ds = strdup(mnt.mnt_special); 1212 while (getextmntent(fp, &mnt, sizeof (mnt)) == 0) { 1213 if (strcmp(mnt.mnt_mountp, "/") == 0) { 1215 root_ds = strdup(mnt 3846 struct extmnttab mnt; local 4414 struct extmnttab mnt; local 6303 struct extmnttab mnt; local [all...] |
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 729 struct mnttab mnt; local 749 while (getmntent(mtabp, &mnt) == 0) { 750 if (strstr(arg, mnt.mnt_mountp) == arg && 751 (msz = strlen(mnt.mnt_mountp)) > mntlen) { 753 *is_zfs = strcmp(MNTTYPE_ZFS, mnt.mnt_fstype) == 0; 754 (void) strlcpy(mntsp, mnt.mnt_special, sizeof (mntsp));
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | mountd.c | 111 static void mnt(struct svc_req *, SVCXPRT *); 651 if (svc_create(mnt, MOUNTPROG, MOUNTVERS, "datagram_v") == 0) { 656 if (svc_create(mnt, MOUNTPROG, MOUNTVERS, "circuit_v") == 0) { 664 if (svc_create(mnt, MOUNTPROG, MOUNTVERS_POSIX, 670 if (svc_create(mnt, MOUNTPROG, MOUNTVERS_POSIX, 679 if (svc_create(mnt, MOUNTPROG, MOUNTVERS3, "datagram_v") == 0) { 684 if (svc_create(mnt, MOUNTPROG, MOUNTVERS3, "circuit_v") == 0) { 714 mnt(struct svc_req *rqstp, SVCXPRT *transp) function
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_nfs.c | 3479 struct mnttab mnt; local 3497 mnt.mnt_mntopts = mntopts; 3498 if (hasmntopt(&mnt, MNTOPT_RO) != NULL) 3548 nopt(mnt, opt, valp) 3549 struct mnttab *mnt; 3566 if (str = hasmntopt(mnt, opt)) { 3578 nfsunmount(mnt) 3579 struct mnttab *mnt; 3587 int isv4mount = is_v4_mount(mnt->mnt_mountp); 3590 trace_prt(1, " nfsunmount: umount %s\n", mnt 4049 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/uts/common/fs/namefs/ |
H A D | namevfs.c | 166 * 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))
|
/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/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/libvolmgt/common/ |
H A D | volmgt_on_private.c | 78 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/libc/port/gen/ |
H A D | getmntent.c | 307 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/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/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/ |
H A D | Makefile | 108 mnt.h \
|
H A D | Makefile.com | 253 common/port/mnt.o \
|
/illumos-gate/usr/src/lib/libast/common/ |
H A D | llib-last | 92 #include <mnt.h>
|
/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...] |