comparison sbin/fzfs @ 674:6e7c118e7d47

fzfs: FIX: "fzfs umount" did not properly parse "mount -p" properly. The rest of the line was merged into the mountpoint field.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 30 Sep 2024 16:55:42 +0200
parents bc418b122fc9
children 8f1583faf9ea
comparison
equal deleted inserted replaced
673:cafc0069f095 674:6e7c118e7d47
314 # Just determine whether the given dataset name exists 314 # Just determine whether the given dataset name exists
315 _rootds_mountpoint="$(zfs list -H -o mountpoint -t filesystem "${_dsname}" 2>/dev/null)" || { err "dataset not found"; return 1; } 315 _rootds_mountpoint="$(zfs list -H -o mountpoint -t filesystem "${_dsname}" 2>/dev/null)" || { err "dataset not found"; return 1; }
316 316
317 _get_zfs_mounts_for_dataset_tree -r "${_dsname}" \ 317 _get_zfs_mounts_for_dataset_tree -r "${_dsname}" \
318 | { 318 | {
319 while IFS=$'\t' read -r _name _mp ; do 319 while IFS=$'\t' read -r _name _mp _rest; do
320 if checkyes _opt_dry_run ; then 320 if checkyes _opt_dry_run ; then
321 if [ -z "${_opt_force}" ]; then 321 if [ -z "${_opt_force}" ]; then
322 echo "Would umount ${_name} from ${_mp}" 322 echo "Would umount ${_name} from ${_mp}"
323 else 323 else
324 324