| /freebsd-12.1/lib/libbe/ |
| H A D | be_access.c | 55 char *mountpoint; in be_mountcheck_cb() local 64 free(mountpoint); in be_mountcheck_cb() 67 free(mountpoint); in be_mountcheck_cb() 80 char *mountpoint; in be_mount_iter() local 88 free(mountpoint); in be_mount_iter() 119 mountpoint); in be_mount_iter() 157 char *mountpoint; in be_umount_iter() local 171 free(mountpoint); in be_umount_iter() 271 info.mountpoint = (mountpoint == NULL) ? mnt_temp : mountpoint; in be_mount() 283 strlcpy(result_loc, mountpoint == NULL ? mnt_temp : mountpoint, in be_mount() [all …]
|
| /freebsd-12.1/cddl/contrib/opensolaris/lib/libzfs/common/ |
| H A D | libzfs_mount.c | 360 if (!zfs_is_mountable(zhp, mountpoint, sizeof (mountpoint), NULL)) in zfs_mount() 370 mountpoint)); in zfs_mount() 441 mountpoint)); in unmount_one() 546 char *mountpoint; in zfs_is_shared_proto() local 555 *where = mountpoint; in zfs_is_shared_proto() 557 free(mountpoint); in zfs_is_shared_proto() 560 free(mountpoint); in zfs_is_shared_proto() 829 if (!zfs_is_mountable(zhp, mountpoint, sizeof (mountpoint), NULL)) in zfs_share_proto() 885 mountpoint); in zfs_share_proto() 1027 mountpoint = mntpt = zfs_strdup(hdl, mountpoint); in zfs_unshare_proto() [all …]
|
| /freebsd-12.1/tools/tools/zfsboottest/ |
| H A D | zfsboottest.sh | 57 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.1/usr.sbin/autofs/ |
| H A D | automount.c | 89 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 …]
|
| H A D | common.c | 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() 882 mountpoint = options2 = location = NULL; in parse_map_yyin() 1126 if (mountpoint != NULL) { in parse_master_yyin() 1128 node_new_map(root, mountpoint, options, map, in parse_master_yyin() 1134 mountpoint = map = options = NULL; in parse_master_yyin() 1138 if (mountpoint == NULL) { in parse_master_yyin() [all …]
|
| H A D | autounmountd.c | 79 automounted_add(fsid_t fsid, const char *mountpoint) in automounted_add() argument 88 strlcpy(af->af_mountpoint, mountpoint, sizeof(af->af_mountpoint)); in automounted_add() 157 unmount_by_fsid(const fsid_t fsid, const char *mountpoint) in unmount_by_fsid() argument 170 mountpoint, fsid_str, strerror(errno)); in unmount_by_fsid() 173 mountpoint, fsid_str); in unmount_by_fsid()
|
| /freebsd-12.1/sbin/bectl/ |
| H A D | bectl_jail.c | 54 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.1/tests/sys/cddl/zfs/tests/cli_root/zfs_set/ |
| H A D | canmount_004_pos.ksh | 79 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
|
| H A D | mountpoint_001_pos.ksh | 74 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)
|
| H A D | mountpoint_002_pos.ksh | 69 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)
|
| H A D | canmount_002_pos.ksh | 88 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
|
| H A D | share_mount_001_neg.ksh | 62 log_must $ZFS set mountpoint=$oldmpt $fs 69 oldmpt=$(get_prop mountpoint $fs) 72 log_must $ZFS set mountpoint=$propval $fs
|
| H A D | mountpoint_003_pos.ksh | 66 [[ -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.1/cddl/compat/opensolaris/misc/ |
| H A D | fsshare.c | 150 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.1/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/ |
| H A D | zfs_rename.kshlib | 50 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.1/sbin/bectl/tests/ |
| H A D | bectl_test.sh | 55 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 \ 154 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2 156 atf_check -e not-empty -s not-exit:0 zfs get mountpoint ${zpool}/ROOT/default2 189 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2 191 atf_check -e not-empty -s not-exit:0 zfs get mountpoint \ 285 atf_check -o not-empty zfs get mountpoint ${zpool}/ROOT/default2 286 atf_check -e not-empty -s not-exit:0 zfs get mountpoint \ [all …]
|
| /freebsd-12.1/tests/sys/cddl/zfs/tests/cli_root/zfs_mount/ |
| H A D | zfs_mount_008_pos.ksh | 81 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
|
| H A D | zfs_mount.kshlib | 88 log_must $ZFS set mountpoint=$mntpoint $pool/$fs 93 log_must $ZFS set mountpoint=$mntpoint $pool/$fs 113 mtpt=$(get_prop mountpoint "$pool/$fs")
|
| H A D | zfs_mount_006_pos.ksh | 75 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.1/tools/boot/ |
| H A D | rootgen.sh | 125 zfs create -po mountpoint=/ ${pool}/ROOT/default 138 zfs set mountpoint=none ${pool}/ROOT/default 164 zfs create -po mountpoint=/ ${pool}/ROOT/default 177 zfs set mountpoint=none ${pool}/ROOT/default 217 zfs set mountpoint=none ${pool}/ROOT/default 299 zfs set mountpoint=none ${pool}/ROOT/default 341 zfs set mountpoint=none ${pool}/ROOT/default 383 zfs set mountpoint=none ${pool}/ROOT/default 540 zfs set mountpoint=none ${pool}/ROOT/default 589 zfs set mountpoint=none ${pool}/ROOT/default [all …]
|
| /freebsd-12.1/lib/libbe/tests/ |
| H A D | be_create.sh | 58 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.1/contrib/pjdfstest/tests/ |
| H A D | conf | 30 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) }'`
|
| H A D | misc.sh | 224 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.1/tests/sys/cddl/zfs/tests/refquota/ |
| H A D | refquota_001_pos.ksh | 66 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 78 mntpnt=$(get_prop mountpoint $fs) 85 mntpnt=$(get_prop mountpoint $sub)
|
| /freebsd-12.1/tests/sys/cddl/zfs/tests/rsend/ |
| H A D | rsend.kshlib | 131 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)
|