Home
last modified time | relevance | path

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

12345678910>>...20

/freebsd/lib/libbe/
H A Dbe_access.c25 const char *mountpoint; member
35 char *mountpoint; in be_mountcheck_cb() local
40 if (!zfs_is_mounted(zfs_hdl, &mountpoint)) in be_mountcheck_cb()
42 if (strcmp(mountpoint, info->path) == 0) { in be_mountcheck_cb()
44 free(mountpoint); in be_mountcheck_cb()
47 free(mountpoint); in be_mountcheck_cb()
60 char *mountpoint; in be_mount_iter() local
66 if (zfs_is_mounted(zfs_hdl, &mountpoint)) { in be_mount_iter()
67 free(mountpoint); in be_mount_iter()
77 snprintf(tmp, BE_MAXPATHLEN, "%s", info->mountpoint); in be_mount_iter()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_mount.c344 char mountpoint[ZFS_MAXPROPLEN]; in zfs_mount() local
346 if (!zfs_is_mountable(zhp, mountpoint, sizeof (mountpoint), NULL, in zfs_mount()
350 return (zfs_mount_at(zhp, options, flags, mountpoint)); in zfs_mount()
358 const char *mountpoint) in zfs_mount_at() argument
402 mountpoint)); in zfs_mount_at()
452 mountpoint)); in zfs_mount_at()
464 if (lstat(mountpoint, &buf) != 0) { in zfs_mount_at()
465 if (mkdirp(mountpoint, 0755) != 0) { in zfs_mount_at()
471 mountpoint)); in zfs_mount_at()
494 !dir_is_empty(mountpoint)) { in zfs_mount_at()
[all …]
/freebsd/tools/tools/zfsboottest/
H A Dzfsboottest.sh56 mountpoint=`df -t zfs "${bootfs}" 2>/dev/null | tail -1 | awk '{print $6}'`
57 if [ -z "${mountpoint}" ]; then
61 if [ ! -d "${mountpoint}${startdir}" ]; then
62 echo "The \"${mountpoint}${startdir}\" directory doesn't exist." >&2
89 echo "zfsboottest.sh is reading all the files in ${mountpoint}${startdir} using"
96 "${zfsboottest}" ${vdevs} - `find "${mountpoint}${startdir}" -type f | sed "s@^${mountpoint}@@"` | …
97 find "${mountpoint}${startdir}" -type f | xargs md5 -r | sed "s@ ${mountpoint}@ @" | egrep '^[0-9a-…
/freebsd/sbin/mount_nullfs/
H A Dmount_nullfs.c63 char mountpoint[MAXPATHLEN]; in main() local
99 if (stat_realpath(argv[1], mountpoint, &mountpoint_stat) != 0) in main()
100 err(EX_USAGE, "%s", mountpoint); in main()
108 mountpoint, target); in main()
111 build_iovec(&iov, &iovlen, "fspath", mountpoint, (size_t)-1); in main()
116 err(1, "%s: %s", mountpoint, errmsg); in main()
118 err(1, "%s", mountpoint); in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dzfs_set_nomount.ksh72 oldmpt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
77 log_must zfs set -u mountpoint=$newmpt $TESTPOOL/$TESTFS
78 log_must check_user_prop $TESTPOOL/$TESTFS mountpoint $newmpt
86 log_must zfs set mountpoint=$oldmpt $TESTPOOL/$TESTFS
89 log_must zfs set -u mountpoint=$newmpt $TESTPOOL/$TESTFS
98 log_must check_user_prop $TESTPOOL/$TESTFS mountpoint $newmpt
101 log_must zfs set mountpoint=$oldmpt $TESTPOOL/$TESTFS
H A Dcanmount_004_pos.ksh63 mntpt=$(get_prop mountpoint $CS_FS)
76 log_must zfs create -o canmount=noauto -o mountpoint=$oldmpt $CS_FS
86 mntpt=$(get_prop mountpoint $CS_FS)
88 log_must zfs set mountpoint="$newmpt" $CS_FS
90 log_must zfs set mountpoint="$oldmpt" $CS_FS
H A Dmountpoint_001_pos.ksh63 log_must zfs set mountpoint=$old_ctr_mpt $TESTPOOL/$TESTCTR
64 log_must zfs set mountpoint=$old_fs_mpt $TESTPOOL/$TESTFS
72 old_fs_mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
73 old_ctr_mpt=$(get_prop mountpoint $TESTPOOL/$TESTCTR)
H A Dmountpoint_002_pos.ksh60 log_must zfs set mountpoint=$old_ctr_mpt $TESTPOOL/$TESTCTR
61 log_must zfs set mountpoint=$old_fs_mpt $TESTPOOL/$TESTFS
71 old_fs_mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
72 old_ctr_mpt=$(get_prop mountpoint $TESTPOOL/$TESTCTR)
/freebsd/sys/contrib/openzfs/contrib/dracut/90zfs/
H A Dzfs-lib.sh.in23 mountpoint="$(zfs get -H -o value mountpoint "${dataset}")"
27 if [ "${mountpoint}" = "legacy" ] ; then
47 zfs list -t filesystem -Ho name,mountpoint,canmount -r "${dataset}" |
50 while IFS="${TAB}" read -r dataset mountpoint canmount; do
53 case "$mountpoint" in
56 "${exec}" "${dataset}" "${mountpoint}" || _ret=$?
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/
H A Ddedup_prune.ksh75 typeset mountpoint=$(get_prop mountpoint $TESTPOOL/$TESTFS)
76 log_must dd if=/dev/urandom of=$mountpoint/f1 bs=512k count=1
77 log_must cp $mountpoint/f1 $mountpoint/f2
88 log_must truncate -s 128k $mountpoint/f2
H A Ddedup_prune_leak.ksh68 typeset mountpoint=$(get_prop mountpoint $TESTPOOL/$TESTFS)
69 log_must dd if=/dev/urandom of=$mountpoint/f1 bs=1M count=16
77 log_must rm $mountpoint/f1
H A Ddedup_zap_shrink.ksh63 typeset mountpoint=$(get_prop mountpoint $TESTPOOL/$TESTFS)
65 log_must dd if=/dev/urandom of=$mountpoint/file bs=512k count=1
75 log_must truncate -s 512 $mountpoint/file
/freebsd/usr.sbin/autofs/
H A Dautomount.c87 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) in find_statfs() argument
92 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0) in find_statfs()
147 char *mountpoint; in mount_if_not_already() local
155 mountpoint = node_path(n); in mount_if_not_already()
156 sb = find_statfs(mntbuf, nitems, mountpoint); in mount_if_not_already()
160 "on %s; mounting", mountpoint); in mount_if_not_already()
167 "on %s", mountpoint); in mount_if_not_already()
169 free(mountpoint); in mount_if_not_already()
174 mountpoint); in mount_if_not_already()
177 mount_autofs(from, mountpoint, options, prefix); in mount_if_not_already()
[all …]
/freebsd/sbin/bectl/
H A Dbectl_jail.c30 static int bectl_jail_cleanup(char *mountpoint, int jid);
187 bectl_jail_cleanup(char *mountpoint, int jid) in bectl_jail_cleanup() argument
197 searchlen = strnlen(mountpoint, MAXPATHLEN); in bectl_jail_cleanup()
200 if (strncmp(mountpoint, mntbuf[i].f_mntonname, searchlen) == 0 && in bectl_jail_cleanup()
217 char *bootenv, **jargv, *mountpoint; in bectl_cmd_jail() local
292 mountpoint = NULL; in bectl_cmd_jail()
294 mountpoint = mnt_loc; in bectl_cmd_jail()
295 if (be_mount(be, bootenv, mountpoint, mntflags, mnt_loc) != BE_ERR_SUCCESS) { in bectl_cmd_jail()
307 if (mountpoint == NULL) { in bectl_cmd_jail()
309 mountpoint = mnt_loc; in bectl_cmd_jail()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_set/
H A Dcanmount_004_pos.ksh74 mntpt=$(get_prop mountpoint $CS_FS)
87 log_must $ZFS create -o canmount=noauto -o mountpoint=$oldmpt $CS_FS
97 mntpt=$(get_prop mountpoint $CS_FS)
99 log_must $ZFS set mountpoint="$newmpt" $CS_FS
101 log_must $ZFS set mountpoint="$oldmpt" $CS_FS
H A Dmountpoint_001_pos.ksh69 log_must $ZFS set mountpoint=$old_ctr_mpt $TESTPOOL/$TESTCTR
70 log_must $ZFS set mountpoint=$old_fs_mpt $TESTPOOL/$TESTFS
78 old_fs_mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
81 old_ctr_mpt=$(get_prop mountpoint $TESTPOOL/$TESTCTR)
H A Dmountpoint_002_pos.ksh64 log_must $ZFS set mountpoint=$old_ctr_mpt $TESTPOOL/$TESTCTR
65 log_must $ZFS set mountpoint=$old_fs_mpt $TESTPOOL/$TESTFS
75 old_fs_mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
78 old_ctr_mpt=$(get_prop mountpoint $TESTPOOL/$TESTCTR)
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/history/
H A Dhistory_002_pos.ksh73 mountpoint /history.$$ mountpoint legacy
74 mountpoint none compression lz4
100 mountpoint /history.$$ mountpoint legacy
101 mountpoint none sharenfs on
128 mountpoint /history.$$ mountpoint legacy
129 mountpoint none sharenfs on
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/
H A Dredacted.kshlib58 typeset mntpnt=$(get_prop mountpoint $sendfs)
69 typeset mntpnt=$(get_prop mountpoint $sendfs)
84 typeset mntpnt=$(get_prop mountpoint $sendfs)
120 typeset mntpnt=$(get_prop mountpoint $sendfs)
129 mntpnt=$(get_prop mountpoint $POOL/hole)
134 mntpnt=$(get_prop mountpoint $POOL/stride3)
139 mntpnt=$(get_prop mountpoint $POOL/stride5)
147 mntpnt=$(get_prop mountpoint $POOL/rm)
152 mntpnt=$(get_prop mountpoint $POOL/write)
163 typeset mntpnt=$(get_prop mountpoint $sendfs)
[all …]
/freebsd/sys/contrib/openzfs/lib/libshare/
H A Dlibshare.c63 sa_enable_share(const char *zfsname, const char *mountpoint, in sa_enable_share() argument
69 init_share(zfsname, mountpoint, shareopts); in sa_enable_share()
74 sa_disable_share(const char *mountpoint, enum sa_protocol protocol) in sa_disable_share() argument
78 const struct sa_share_impl args = init_share(NULL, mountpoint, NULL); in sa_disable_share()
83 sa_is_shared(const char *mountpoint, enum sa_protocol protocol) in sa_is_shared() argument
87 const struct sa_share_impl args = init_share(NULL, mountpoint, NULL); in sa_is_shared()
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/
H A Dzfs_rename.kshlib45 log_must $CP $DATA $(get_prop mountpoint $TESTPOOL/$TESTFS1)/$TESTFILE0
50 log_must $CP $DATA $(get_prop mountpoint $TESTPOOL/$TESTCTR1)/$TESTFILE0
57 log_must $CP $DATA $(get_prop mountpoint $TESTPOOL/$TESTVOL)/$TESTFILE0
90 typeset mntp=$(get_prop mountpoint $newfs)
93 log_must $ZFS set mountpoint=$mntp $oldfs
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/
H A Dzfs_receive_010_pos.ksh91 mntpnt=$(get_prop mountpoint $fs)
92 mntpnt2=$(get_prop mountpoint $fs2)
167 mntpnt_old=$(get_prop mountpoint $fs)
168 mntpnt_new=$(get_prop mountpoint $rfs)
173 mntpnt_old=$(get_prop mountpoint $fs2)
174 mntpnt_new=$(get_prop mountpoint $rfs)
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename.kshlib52 log_must cp $DATA $(get_prop mountpoint $TESTPOOL/$TESTFS1)/$TESTFILE0
57 log_must cp $DATA $(get_prop mountpoint $TESTPOOL/$TESTCTR1)/$TESTFILE0
64 log_must cp $DATA $(get_prop mountpoint $TESTPOOL/$TESTVOL)/$TESTFILE0
99 typeset mntp=$(get_prop mountpoint $newfs)
102 log_must zfs set mountpoint=$mntp $oldfs
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_mount/
H A Dzfs_mount_008_pos.ksh76 mntpnt=$(get_prop mountpoint $fs)
78 mntpnt1=$(get_prop mountpoint $fs1)
84 log_must $ZFS set mountpoint=$mntpnt $fs1
96 log_must $ZFS set mountpoint=$mntpnt1 $fs1
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount_008_pos.ksh66 mntpnt=$(get_prop mountpoint $fs)
68 mntpnt1=$(get_prop mountpoint $fs1)
74 log_must zfs set mountpoint=$mntpnt $fs1
88 log_must zfs set mountpoint=$mntpnt1 $fs1

12345678910>>...20