Home
last modified time | relevance | path

Searched refs:mountpoint (Results 1 – 25 of 201) sorted by relevance

123456789

/freebsd-12-stable/lib/libbe/
Dbe_access.c46 const char *mountpoint; member
56 char *mountpoint; in be_mountcheck_cb() local
61 if (!zfs_is_mounted(zfs_hdl, &mountpoint)) in be_mountcheck_cb()
63 if (strcmp(mountpoint, info->path) == 0) { in be_mountcheck_cb()
65 free(mountpoint); in be_mountcheck_cb()
68 free(mountpoint); in be_mountcheck_cb()
81 char *mountpoint; in be_mount_iter() local
87 if (zfs_is_mounted(zfs_hdl, &mountpoint)) { in be_mount_iter()
88 free(mountpoint); in be_mount_iter()
98 snprintf(tmp, BE_MAXPATHLEN, "%s", info->mountpoint); in be_mount_iter()
[all …]
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libzfs/common/
Dlibzfs_mount.c135 is_shared(libzfs_handle_t *hdl, const char *mountpoint, zfs_share_proto_t proto) in is_shared() argument
152 if (strcmp(buf, mountpoint) == 0) { in is_shared()
305 zfs_is_mountable_internal(zfs_handle_t *zhp, const char *mountpoint) in zfs_is_mountable_internal() argument
354 char mountpoint[ZFS_MAXPROPLEN]; in zfs_mount() local
356 if (!zfs_is_mountable(zhp, mountpoint, sizeof (mountpoint), NULL)) in zfs_mount()
359 return (zfs_mount_at(zhp, options, flags, mountpoint)); in zfs_mount()
364 const char *mountpoint) in zfs_mount_at() argument
381 if (!zfs_is_mountable_internal(zhp, mountpoint)) in zfs_mount_at()
385 if (lstat(mountpoint, &buf) != 0) { in zfs_mount_at()
386 if (mkdirp(mountpoint, 0755) != 0) { in zfs_mount_at()
[all …]
/freebsd-12-stable/tools/tools/zfsboottest/
Dzfsboottest.sh57 mountpoint=`df -t zfs "${bootfs}" 2>/dev/null | tail -1 | awk '{print $6}'`
58 if [ -z "${mountpoint}" ]; then
62 if [ ! -d "${mountpoint}${startdir}" ]; then
63 echo "The \"${mountpoint}${startdir}\" directory doesn't exist." >&2
90 echo "zfsboottest.sh is reading all the files in ${mountpoint}${startdir} using"
97 "${zfsboottest}" ${vdevs} - `find "${mountpoint}${startdir}" -type f | sed "s@^${mountpoint}@@"` | …
98 find "${mountpoint}${startdir}" -type f | xargs md5 -r | sed "s@ ${mountpoint}@ @" | egrep '^[0-9a-…
/freebsd-12-stable/sbin/mount_nullfs/
Dmount_nullfs.c70 char mountpoint[MAXPATHLEN]; in main() local
104 if (checkpath(argv[1], mountpoint) != 0) in main()
105 err(EX_USAGE, "%s", mountpoint); in main()
107 if (subdir(target, mountpoint) || subdir(mountpoint, target)) in main()
112 build_iovec(&iov, &iovlen, "fspath", mountpoint, (size_t)-1); in main()
117 err(1, "%s: %s", mountpoint, errmsg); in main()
119 err(1, "%s", mountpoint); in main()
/freebsd-12-stable/usr.sbin/autofs/
Dautomount.c89 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) in find_statfs() argument
94 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0) in find_statfs()
149 char *mountpoint; in mount_if_not_already() local
157 mountpoint = node_path(n); in mount_if_not_already()
158 sb = find_statfs(mntbuf, nitems, mountpoint); in mount_if_not_already()
162 "on %s; mounting", mountpoint); in mount_if_not_already()
169 "on %s", mountpoint); in mount_if_not_already()
171 free(mountpoint); in mount_if_not_already()
176 mountpoint); in mount_if_not_already()
179 mount_autofs(from, mountpoint, options, prefix); in mount_if_not_already()
[all …]
Dcommon.c744 char *key = NULL, *options = NULL, *mountpoint = NULL, in parse_map_yyin() local
827 if (mountpoint != NULL) { in parse_map_yyin()
835 mountpoint = checked_strdup(yytext); in parse_map_yyin()
871 if (mountpoint == NULL) in parse_map_yyin()
872 mountpoint = checked_strdup("/"); in parse_map_yyin()
878 mountpoint, options2, location); in parse_map_yyin()
880 node_new(node, mountpoint, options2, location, in parse_map_yyin()
882 mountpoint = options2 = location = NULL; in parse_map_yyin()
886 if (mountpoint != NULL || options2 != NULL || in parse_map_yyin()
1115 char *mountpoint = NULL, *map = NULL, *options = NULL; in parse_master_yyin() local
[all …]
/freebsd-12-stable/sbin/bectl/
Dbectl_jail.c54 static int bectl_jail_cleanup(char *mountpoint, int jid);
210 bectl_jail_cleanup(char *mountpoint, int jid) in bectl_jail_cleanup() argument
220 searchlen = strnlen(mountpoint, MAXPATHLEN); in bectl_jail_cleanup()
223 if (strncmp(mountpoint, mntbuf[i].f_mntonname, searchlen) == 0 && in bectl_jail_cleanup()
240 char *bootenv, **jargv, *mountpoint; in bectl_cmd_jail() local
315 mountpoint = NULL; in bectl_cmd_jail()
317 mountpoint = mnt_loc; in bectl_cmd_jail()
318 if (be_mount(be, bootenv, mountpoint, mntflags, mnt_loc) != BE_ERR_SUCCESS) { in bectl_cmd_jail()
330 if (mountpoint == NULL) { in bectl_cmd_jail()
332 mountpoint = mnt_loc; in bectl_cmd_jail()
[all …]
/freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_set/
Dcanmount_004_pos.ksh79 mntpt=$(get_prop mountpoint $CS_FS)
92 log_must $ZFS create -o canmount=noauto -o mountpoint=$oldmpt $CS_FS
102 mntpt=$(get_prop mountpoint $CS_FS)
104 log_must $ZFS set mountpoint="$newmpt" $CS_FS
106 log_must $ZFS set mountpoint="$oldmpt" $CS_FS
Dmountpoint_001_pos.ksh74 log_must $ZFS set mountpoint=$old_ctr_mpt $TESTPOOL/$TESTCTR
75 log_must $ZFS set mountpoint=$old_fs_mpt $TESTPOOL/$TESTFS
83 old_fs_mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
86 old_ctr_mpt=$(get_prop mountpoint $TESTPOOL/$TESTCTR)
Dmountpoint_002_pos.ksh69 log_must $ZFS set mountpoint=$old_ctr_mpt $TESTPOOL/$TESTCTR
70 log_must $ZFS set mountpoint=$old_fs_mpt $TESTPOOL/$TESTFS
80 old_fs_mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
83 old_ctr_mpt=$(get_prop mountpoint $TESTPOOL/$TESTCTR)
Dcanmount_002_pos.ksh88 log_must $ZFS set mountpoint=${old_mnt[i]} $ds
96 mntp=$(get_prop mountpoint $ds)
134 old_mnt[i]=$(get_prop mountpoint $ds)
143 log_must $ZFS set mountpoint=$tmpmnt $dataset
161 log_must $ZFS set mountpoint="${old_mnt[i]}" $dataset
Dshare_mount_001_neg.ksh62 log_must $ZFS set mountpoint=$oldmpt $fs
69 oldmpt=$(get_prop mountpoint $fs)
72 log_must $ZFS set mountpoint=$propval $fs
Dmountpoint_003_pos.ksh66 [[ -n $oldmpt ]] && log_must $ZFS set mountpoint=$oldmpt $testfs
93 oldmpt=$(get_prop mountpoint $testfs)
94 log_must $ZFS set mountpoint=legacy $testfs
/freebsd-12-stable/cddl/compat/opensolaris/misc/
Dfsshare.c150 fsshare_main(const char *file, const char *mountpoint, const char *shareopts, in fsshare_main() argument
203 while (oldfd != NULL && (line = zgetline(oldfd, mountpoint)) != NULL) in fsshare_main()
214 fprintf(newfd, "%s\t%s\n", mountpoint, in fsshare_main()
248 fsshare(const char *file, const char *mountpoint, const char *shareopts) in fsshare() argument
251 return (fsshare_main(file, mountpoint, shareopts, 1)); in fsshare()
258 fsunshare(const char *file, const char *mountpoint) in fsunshare() argument
261 return (fsshare_main(file, mountpoint, NULL, 0)); in fsunshare()
/freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/
Dzfs_rename.kshlib50 log_must $CP $DATA $(get_prop mountpoint $TESTPOOL/$TESTFS1)/$TESTFILE0
55 log_must $CP $DATA $(get_prop mountpoint $TESTPOOL/$TESTCTR1)/$TESTFILE0
62 log_must $CP $DATA $(get_prop mountpoint $TESTPOOL/$TESTVOL)/$TESTFILE0
95 typeset mntp=$(get_prop mountpoint $newfs)
98 log_must $ZFS set mountpoint=$mntp $oldfs
/freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_mount/
Dzfs_mount_008_pos.ksh81 mntpnt=$(get_prop mountpoint $fs)
83 mntpnt1=$(get_prop mountpoint $fs1)
89 log_must $ZFS set mountpoint=$mntpnt $fs1
101 log_must $ZFS set mountpoint=$mntpnt1 $fs1
Dzfs_mount.kshlib88 log_must $ZFS set mountpoint=$mntpoint $pool/$fs
93 log_must $ZFS set mountpoint=$mntpoint $pool/$fs
113 mtpt=$(get_prop mountpoint "$pool/$fs")
Dzfs_mount_006_pos.ksh75 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
104 log_must $ZFS set mountpoint=$mtpt $TESTPOOL/$TESTFS
121 log_must $ZFS set mountpoint=$mtpt $TESTPOOL/$TESTFS1
/freebsd-12-stable/tools/boot/
Drootgen.sh123 zpool create -O mountpoint=none -R ${mntpt} ${pool} ${md}p2
125 zfs create -po mountpoint=/ ${pool}/ROOT/default
138 zfs set mountpoint=none ${pool}/ROOT/default
162 zpool create -O mountpoint=none -R ${mntpt} ${pool} ${md}p2
164 zfs create -po mountpoint=/ ${pool}/ROOT/default
177 zfs set mountpoint=none ${pool}/ROOT/default
202 zpool create -O mountpoint=none -R ${mntpt} ${pool} ${md}p3
204 zfs create -po mountpoint=/ ${pool}/ROOT/default
217 zfs set mountpoint=none ${pool}/ROOT/default
284 zpool create -O mountpoint=none -R ${mntpt} ${pool} ${md}s1a
[all …]
/freebsd-12-stable/sbin/bectl/tests/
Dbectl_test.sh55 atf_check zfs create -o mountpoint=none ${zpool}/ROOT
56 atf_check zfs create -o mountpoint=/ -o canmount=noauto \
72 atf_check zfs create -o mountpoint=/usr -o canmount=noauto \
105 atf_check zfs create -o mountpoint=/usr -o canmount=noauto \
158 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
160 atf_check -e not-empty -s not-exit:0 zfs get mountpoint ${zpool}/ROOT/default2
238 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
240 atf_check -e not-empty -s not-exit:0 zfs get mountpoint \
334 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2
335 atf_check -e not-empty -s not-exit:0 zfs get mountpoint \
[all …]
/freebsd-12-stable/lib/libbe/tests/
Dbe_create.sh58 atf_check zfs create -o mountpoint=none ${zpool}/ROOT
59 atf_check zfs create -o mountpoint=/ -o canmount=noauto \
61 atf_check zfs create -o mountpoint=/usr -o canmount=noauto \
63 atf_check zfs create -o mountpoint=/usr/obj -o canmount=noauto \
106 atf_check zfs create -o mountpoint=/usr/src -o canmount=noauto \
/freebsd-12-stable/contrib/pjdfstest/tests/
Dconf30 mountpoint="`get_mountpoint`"
31 fs=`mount | grep "on $mountpoint" | sed -e 's/.*(//' -e 's/,.*//g' | tr '[:lower:]' '[:upper:]'`
36 mountpoint="`get_mountpoint`"
37 fs=`mount -p | awk '$2 == "'$mountpoint'" { print toupper($3) }'`
Dmisc.sh224 mountpoint() function
231 mount -p | awk '$2 == "'$(mountpoint .)'" { print $4 }' | sed -e 's/,/ /g'
258 mountpoint() function
350 for mount_opt in $(mount -d -p | awk '$2 == "'$mountpoint'" { print $4 }'); do
/freebsd-12-stable/tests/sys/cddl/zfs/tests/refquota/
Drefquota_001_pos.ksh66 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
78 mntpnt=$(get_prop mountpoint $fs)
85 mntpnt=$(get_prop mountpoint $sub)
/freebsd-12-stable/tests/sys/cddl/zfs/tests/rsend/
Drsend.kshlib131 typeset mntpnt=$(get_prop mountpoint $pool)
184 srcdir=$(get_prop mountpoint $src_fs)
185 dstdir=$(get_prop mountpoint $dst_fs)
264 typeset mntpnt=$(get_prop mountpoint $ds)
297 typeset mntpnt=$(get_prop mountpoint $ds)

123456789