Home
last modified time | relevance | path

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

12345678910>>...22

/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/tests/zfs-tests/tests/functional/dedup/
H A Ddedup_legacy_gang.ksh93 typeset mountpoint=$(get_prop mountpoint $TESTPOOL/$TESTFS)
105 log_must dd if=/dev/urandom of=$mountpoint/file1 bs=128k count=4
117 typeset sum=$(xxh128digest $mountpoint/file1)
120 log_must dd if=$mountpoint/file1 of=$mountpoint/file2 bs=128k
130 log_must clonefile -c $mountpoint/file1 $mountpoint/file3
138 log_must rm $mountpoint/file1
145 log_must test "$(xxh128digest $mountpoint/file2)" = "$sum"
147 log_must rm $mountpoint/file3
150 log_must test "$(xxh128digest $mountpoint/file2)" = "$sum"
152 log_must rm $mountpoint/file2
H A Ddedup_bclone.ksh63 typeset mountpoint=$(get_prop mountpoint $TESTPOOL/$TESTFS)
66 log_must dd if=/dev/urandom of=$mountpoint/file1 bs=128k count=4
73 log_must clonefile -f $mountpoint/file1 $mountpoint/clone1
81 log_must dd if=$mountpoint/file1 of=$mountpoint/file2 bs=128k
89 log_must rm $mountpoint/clone1
97 log_must rm $mountpoint/file2
104 log_must rm $mountpoint/file1
H A Ddedup_bclone_pruned.ksh69 typeset mountpoint=$(get_prop mountpoint $TESTPOOL/$TESTFS)
72 log_must dd if=/dev/urandom of=$mountpoint/file1 bs=128k count=8
100 log_must clonefile -f $mountpoint/file1 $mountpoint/clone1
110 log_must dd if=$mountpoint/file1 of=$mountpoint/file2 bs=128k
123 log_must rm $mountpoint/clone1
132 log_must rm $mountpoint/file2
138 log_must rm $mountpoint/file1
H A Ddedup_prune.ksh65 typeset mountpoint=$(get_prop mountpoint $TESTPOOL/$TESTFS)
66 log_must dd if=/dev/urandom of=$mountpoint/f1 bs=512k count=1
67 log_must dd if=$mountpoint/f1 of=$mountpoint/f2 bs=512k
78 log_must truncate -s 128k $mountpoint/f2
H A Ddedup_prune_leak.ksh65 typeset mountpoint=$(get_prop mountpoint $TESTPOOL/$TESTFS)
66 log_must dd if=/dev/urandom of=$mountpoint/f1 bs=1M count=16
74 log_must rm $mountpoint/f1
93 log_must dd if=/dev/urandom of=$mountpoint/f2 bs=1M count=16
120 log_must rm $mountpoint/f2
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount.kshlib78 'ctr') log_must zfs create -o mountpoint=$mntpoint $pool/$fs
83 *) log_must zfs create -o mountpoint=$mntpoint $pool/$fs
103 mtpt=$(get_prop mountpoint "$pool/$fs")
200 typeset mountpoint="$1"
202 file_write -o create -f $mountpoint/file.dat
205 log_fail "Writing to $mountpoint did not return EROFS ($ret)."
211 typeset mountpoint="$1"
212 log_must touch $mountpoint/file.dat
220 typeset mountpoint="$1"
225 awk -v mountpoint="$mountpoint" '
[all …]
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_mount.c378 char mountpoint[ZFS_MAXPROPLEN]; in zfs_mount() local
380 if (!zfs_is_mountable(zhp, mountpoint, sizeof (mountpoint), NULL, in zfs_mount()
384 return (zfs_mount_at(zhp, options, flags, mountpoint)); in zfs_mount()
392 const char *mountpoint) in zfs_mount_at() argument
436 mountpoint)); in zfs_mount_at()
486 mountpoint)); in zfs_mount_at()
498 if (lstat(mountpoint, &buf) != 0) { in zfs_mount_at()
499 if (mkdirp(mountpoint, 0755) != 0) { in zfs_mount_at()
505 mountpoint)); in zfs_mount_at()
528 !dir_is_empty(mountpoint)) { in zfs_mount_at()
[all …]
H A Dlibzfs_share.c52 sa_enable_share(const char *zfsname, const char *mountpoint, in sa_enable_share() argument
62 init_share(zfsname, mountpoint, shareopts); in sa_enable_share()
67 sa_disable_share(const char *mountpoint, enum sa_protocol protocol) in sa_disable_share() argument
71 const struct sa_share_impl args = init_share(NULL, mountpoint, NULL); in sa_disable_share()
76 sa_is_shared(const char *mountpoint, enum sa_protocol protocol) in sa_is_shared() argument
80 const struct sa_share_impl args = init_share(NULL, mountpoint, NULL); in sa_is_shared()
/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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mount/
H A Dmount_null_source.ksh28 typeset mountpoint="$TEST_BASE_DIR/null-source"
32 if mounted "$mountpoint"; then
33 log_must umount "$mountpoint"
35 rm -rf "$mountpoint"
39 log_must mkdir "$mountpoint"
40 log_must mount_null_source "$mountpoint"
/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.ksh62 oldmpt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
67 log_must zfs set -u mountpoint=$newmpt $TESTPOOL/$TESTFS
68 log_must check_user_prop $TESTPOOL/$TESTFS mountpoint $newmpt
76 log_must zfs set mountpoint=$oldmpt $TESTPOOL/$TESTFS
79 log_must zfs set -u mountpoint=$newmpt $TESTPOOL/$TESTFS
88 log_must check_user_prop $TESTPOOL/$TESTFS mountpoint $newmpt
91 log_must zfs set mountpoint=$oldmpt $TESTPOOL/$TESTFS
H A Dcanmount_004_pos.ksh53 mntpt=$(get_prop mountpoint $CS_FS)
66 log_must zfs create -o canmount=noauto -o mountpoint=$oldmpt $CS_FS
76 mntpt=$(get_prop mountpoint $CS_FS)
78 log_must zfs set mountpoint="$newmpt" $CS_FS
80 log_must zfs set mountpoint="$oldmpt" $CS_FS
H A Dmountpoint_001_pos.ksh53 log_must zfs set mountpoint=$old_ctr_mpt $TESTPOOL/$TESTCTR
54 log_must zfs set mountpoint=$old_fs_mpt $TESTPOOL/$TESTFS
62 old_fs_mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
63 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/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)
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/history/
H A Dhistory_002_pos.ksh63 mountpoint /history.$$ mountpoint legacy
64 mountpoint none compression lz4
90 mountpoint /history.$$ mountpoint legacy
91 mountpoint none sharenfs on
118 mountpoint /history.$$ mountpoint legacy
119 mountpoint none sharenfs on
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/
H A Dredacted.kshlib48 typeset mntpnt=$(get_prop mountpoint $sendfs)
59 typeset mntpnt=$(get_prop mountpoint $sendfs)
74 typeset mntpnt=$(get_prop mountpoint $sendfs)
110 typeset mntpnt=$(get_prop mountpoint $sendfs)
119 mntpnt=$(get_prop mountpoint $POOL/hole)
124 mntpnt=$(get_prop mountpoint $POOL/stride3)
129 mntpnt=$(get_prop mountpoint $POOL/stride5)
137 mntpnt=$(get_prop mountpoint $POOL/rm)
142 mntpnt=$(get_prop mountpoint $POOL/write)
153 typeset mntpnt=$(get_prop mountpoint $sendfs)
[all …]
/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.ksh81 mntpnt=$(get_prop mountpoint $fs)
82 mntpnt2=$(get_prop mountpoint $fs2)
157 mntpnt_old=$(get_prop mountpoint $fs)
158 mntpnt_new=$(get_prop mountpoint $rfs)
163 mntpnt_old=$(get_prop mountpoint $fs2)
164 mntpnt_new=$(get_prop mountpoint $rfs)
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename.kshlib42 log_must cp $DATA $(get_prop mountpoint $TESTPOOL/$TESTFS1)/$TESTFILE0
47 log_must cp $DATA $(get_prop mountpoint $TESTPOOL/$TESTCTR1)/$TESTFILE0
54 log_must cp $DATA $(get_prop mountpoint $TESTPOOL/$TESTVOL)/$TESTFILE0
89 typeset mntp=$(get_prop mountpoint $newfs)
92 log_must zfs set mountpoint=$mntp $oldfs

12345678910>>...22