Home
last modified time | relevance | path

Searched refs:mntpt (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/tools/boot/
H A Dinstall-boot.sh89 local dev file dst mntpt fstype efibootname kbfree loadersize efibootfile
103 mntpt=$(mktemp -d /tmp/stand-test.XXXXXX)
112 mount -t msdosfs "${dev}" "${mntpt}"
117 echo "Mounted ESP ${dev} on ${mntpt}"
119 kbfree=$(df -k "${mntpt}" | tail -1 | cut -w -f 4)
125 efibootfile="${mntpt}/EFI/BOOT/${efibootname}.efi"
132 rmdir "${mntpt}/EFI/BOOT"
135 mv "${efibootfile}" "${mntpt}/EFI/BOOT/${efibootname}-old.efi"
139 if [ ! -f "${mntpt}/EFI/freebsd/${dst}.efi" ] && [ "$kbfree" -lt "$loadersize" ]; then
140 umount "${mntpt}"
[all …]
H A Drootgen.sh104 mntpt=$3
126 mntpt=$3
149 mntpt=$3
208 mntpt=$3
235 mntpt=$3
255 mntpt=$3
282 mntpt=$3
297 mount /dev/${md}p2.eli ${mntpt}
298 cpsys ${src} ${mntpt}
300 cat > ${mntpt}/boot/loader.conf <<EOF
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_destroy_005_neg.ksh104 mntpt=$(get_prop mountpoint $FS)
105 pidlist=$(mkbusy $mntpt/$TESTFILE0)
106 log_note "mkbusy $mntpt/$TESTFILE0 (pidlist: $pidlist)"
180 mntpt=$(snapshot_mountpoint $FSSNAP)
181 pidlist=$(mkbusy $mntpt)
182 log_note "mkbusy $mntpt (pidlist: $pidlist)"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/
H A Ddecrypt_fault.ksh46 mntpt=$(get_prop mountpoint $TESTPOOL/fs)
47 log_must mkfile 32M $mntpt/file1
49 log_must zinject -a -t data -e decrypt -f 20 $mntpt/file1
53 log_mustnot eval "cat $mntpt/file1 > /dev/null"
H A Ddecompress_fault.ksh46 mntpt=$(get_prop mountpoint $TESTPOOL/fs)
47 write_compressible $mntpt 32m 1 1024k "testfile"
51 log_must zinject -a -t data -e decompress -f 20 $mntpt/testfile.0
52 log_mustnot eval "cat $mntpt/testfile.0 > /dev/null"
/freebsd/usr.sbin/bsdinstall/scripts/
H A Dbootconfig69 …efibootmgr --create --activate --label "$EFI_LABEL_NAME" --loader "${mntpt}/${FREEBSD_BOOTNAME}" >…
79 …efibootmgr --create --activate --label "$EFI_LABEL_NAME" --loader "${mntpt}/${FREEBSD_BOOTNAME}" >…
85 …efibootmgr --create --activate --label "$FREEBSD_BOOTLABEL" --loader "${mntpt}/${FREEBSD_BOOTNAME}…
141 if [ ! -f "${mntpt}/${BOOTNAME}" ]; then
142 cp "$BSDINSTALL_CHROOT/boot/${file}" "${mntpt}/${BOOTNAME}"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/inheritance/
H A Dinherit_001_pos.ksh182 typeset mntpt=""
187 mntpt=${local_val[idx]}.1
189 mntpt=${local_val[idx]}.2
191 mntpt=${local_val[idx]}.3
194 mntpt="/$dataset"
210 mntpt=$new_path"/"$obj_name
212 echo $mntpt
/freebsd/sys/contrib/openzfs/lib/libzfs/os/freebsd/
H A Dlibzfs_zmount.c74 do_mount(zfs_handle_t *zhp, const char *mntpt, const char *opts, int flags) in do_mount() argument
82 assert(mntpt != NULL); in do_mount()
96 build_iovec(&iov, &iovlen, "fspath", __DECONST(char *, mntpt), in do_mount()
110 do_unmount(zfs_handle_t *zhp, const char *mntpt, int flags) in do_unmount() argument
113 if (unmount(mntpt, flags) < 0) in do_unmount()
/freebsd/sbin/quotacheck/
H A Dquotacheck.c243 const char *mntpt; in chkquota()
247 mntpt = quota_fsname(qfu); in chkquota() local
249 mntpt = quota_fsname(qfg); in chkquota()
255 mntpt, cflag); in chkquota()
260 mntpt); in chkquota()
266 mntpt, cflag); in chkquota()
271 mntpt); in chkquota()
280 if ((stat(mntpt, &sb)) < 0) { in chkquota()
281 warn("%s", mntpt); in chkquota()
291 (void)printf(" quotas for %s (%s)\n", specname, mntpt); in chkquota()
[all...]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_set/
H A Dcanmount_004_pos.ksh74 mntpt=$(get_prop mountpoint $CS_FS)
76 "[canmount=$canmnt,sharenfs=$shnfs,sharesmb=$shsmb,mountpoint=$mntpt]."
97 mntpt=$(get_prop mountpoint $CS_FS)
98 if [[ "$mntpt" == "$oldmpt" ]]; then
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dcanmount_004_pos.ksh62 mntpt=$(get_prop mountpoint $CS_FS)
64 "[canmount=$canmnt,sharenfs=$shnfs,sharesmb=$shsmb,mountpoint=$mntpt]."
85 mntpt=$(get_prop mountpoint $CS_FS)
86 if [[ "$mntpt" == "$oldmpt" ]]; then
/freebsd/sbin/fsck/
H A Dfsck.c193 const char *spec, *mntpt, *type, *cp; in main() local
197 mntpt = NULL; in main()
208 mntpt = mntp->f_mntonname; in main()
221 mntpt = fs->fs_file; in main()
227 checkfs(type, spec, mntpt, "-F", NULL) == 0) { in main()
232 checkfs(type, spec, mntpt, "-F", NULL) != 0) in main()
235 rval |= checkfs(type, spec, mntpt, NULL, NULL); in main()
298 checkfs(const char *pvfstype, const char *spec, const char *mntpt, in checkfs() argument
355 (void)printf("start %s %swait", mntpt, in checkfs()
/freebsd/sys/contrib/openzfs/lib/libzfs/os/linux/
H A Dlibzfs_mount_os.c330 do_mount(zfs_handle_t *zhp, const char *mntpt, const char *opts, int flags) in do_mount() argument
345 zfs_adjust_mount_options(zhp, mntpt, myopts, NULL); in do_mount()
346 if (mount(src, mntpt, MNTTYPE_ZFS, mntflags, myopts)) { in do_mount()
356 (char *)mntpt, in do_mount()
384 do_unmount(zfs_handle_t *zhp, const char *mntpt, int flags) in do_unmount() argument
389 int rv = umount2(mntpt, flags); in do_unmount()
406 argv[count] = (char *)mntpt; in do_unmount()
/freebsd/tests/sys/cddl/zfs/tests/inheritance/
H A Dinherit_001_pos.ksh189 typeset mntpt=""
192 mntpt=${local_val[idx]}
194 mntpt="$ZFSROOT/"$dataset
210 mntpt=$new_path"/"$obj_name
212 print $mntpt
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/append/
H A Dfile_append.ksh46 mntpt=$(get_prop mountpoint $TESTPOOL/$TESTFS)
47 filename=$mntpt/append_file.txt
/freebsd/bin/df/
H A Ddf.c105 char *mntpt; in main() local
212 if ((mntpt = getmntpt(*argv)) == NULL) { in main()
218 mntpt = getmntpt(*argv); in main()
219 if (mntpt == NULL) { in main()
225 mntpt = *argv; in main()
232 if (statfs(mntpt, &statfsbuf) < 0) { in main()
233 xo_warn("%s", mntpt); in main()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_mount.c593 char *mntpt = NULL; in zfs_unmount() local
606 mntpt = zfs_strdup(hdl, entry.mnt_mountp); in zfs_unmount()
608 mntpt = zfs_strdup(hdl, mountpoint); in zfs_unmount()
613 if (zfs_unshare(zhp, mntpt, share_all_proto) != 0) { in zfs_unmount()
614 free(mntpt); in zfs_unmount()
619 if (unmount_one(zhp, mntpt, flags) != 0) { in zfs_unmount()
620 free(mntpt); in zfs_unmount()
627 free(mntpt); in zfs_unmount()
817 const char *mntpt = mountpoint ?: entry.mnt_mountp; in zfs_unshare() local
821 if (sa_is_shared(mntpt, *curr_proto) && in zfs_unshare()
[all …]
H A Dlibzfs_diff.c664 get_mountpoint(differ_info_t *di, char *dsnm, char **mntpt) in get_mountpoint() argument
668 mounted = is_mounted(di->zhp->zfs_hdl, dsnm, mntpt); in get_mountpoint()
677 if (**mntpt == '/' && *(*mntpt + 1) == '\0') in get_mountpoint()
678 **mntpt = '\0'; in get_mountpoint()
704 char *mntpt; in get_mountpoints() local
708 err = get_mountpoint(di, di->fromsnap, &mntpt); in get_mountpoints()
712 frommntpt = mntpt; in get_mountpoints()
H A Dlibzfs_impl.h229 extern int do_mount(zfs_handle_t *zhp, const char *mntpt, const char *opts,
231 extern int do_unmount(zfs_handle_t *zhp, const char *mntpt, int flags);
/freebsd/tests/sys/cddl/zfs/tests/delegate/
H A Ddelegate_common.kshlib693 typeset mntpt=$(get_prop mountpoint $fs)
735 typeset mntpt=$(get_prop mountpoint $fs)
743 log_must $TOUCH $mntpt/testfile.$stamp
746 if [[ -e $mntpt/testfile.$stamp ]]; then
760 if [[ -e $mntpt/testfile.$stamp ]]; then
903 typeset mntpt=$(get_prop mountpoint $fs)
931 log_must $ZFS set mountpoint=$mntpt $fs
944 typeset mntpt=$(get_prop mountpoint $fs)
950 user_run $user $SHARE $mntpt
972 user_run $user $SHARE $mntpt
[all …]
/freebsd/contrib/netbsd-tests/fs/tmpfs/
H A Dt_mount.sh130 atf_test_case mntpt
155 atf_add_test_case mntpt
H A Dt_rmdir.sh33 atf_test_case mntpt
195 atf_add_test_case mntpt
/freebsd/sbin/dump/
H A Dmain.c112 char *map, *mntpt; in main() local
351 if ((mntpt = getmntpt(disk, &mntflags)) != NULL) { in main()
365 snprintf(snapname, sizeof snapname, "%s/.snap", mntpt); in main()
376 "%s/.snap/dump_snapshot", mntpt); in main()
378 _PATH_MKSNAP_FFS, mntpt, snapname); in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib649 typeset mntpt=$(get_prop mountpoint $fs)
673 typeset snapdir=${mntpt}/.zfs/snapshot/snap.$stamp
693 typeset mntpt=$(get_prop mountpoint $fs)
701 log_must touch $mntpt/testfile.$stamp
710 if [[ -e $mntpt/testfile.$stamp ]]; then
853 typeset mntpt=$(get_prop mountpoint $fs)
881 log_must zfs set -u mountpoint=$mntpt $fs
921 typeset mntpt=$(get_prop mountpoint $fs)
930 log_must zfs set mountpoint=$mntpt $fs
935 if [[ $mntpt != $(get_prop mountpoint $fs) ]]; then
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unshare/
H A Dzfs_unshare_003_pos.ksh84 log_fail "Snapshot $mntpt@snapshot is shared (set sharenfs)."

12