changeset 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 cafc0069f095
children e6b8da451317
files sbin/fzfs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sbin/fzfs	Mon Sep 30 15:49:01 2024 +0200
+++ b/sbin/fzfs	Mon Sep 30 16:55:42 2024 +0200
@@ -316,7 +316,7 @@
 
     _get_zfs_mounts_for_dataset_tree -r "${_dsname}" \
     | {
-        while IFS=$'\t' read -r _name _mp ; do
+        while IFS=$'\t' read -r _name _mp _rest; do
             if checkyes _opt_dry_run ; then
                 if [ -z "${_opt_force}" ]; then
                     echo "Would umount ${_name} from ${_mp}"