diff sbin/fzfs @ 545:566ecdd9e73b

When analyzing the output of "mount -p" check for proper parsing capability: no improper mixing of tabs and spaces. Suggest (and mostly use) "jq" in other cases.
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 10 Sep 2024 10:13:59 +0200
parents f6dc405ddd58
children d28733400b18
line wrap: on
line diff
--- a/sbin/fzfs	Tue Sep 10 01:54:42 2024 +0200
+++ b/sbin/fzfs	Tue Sep 10 10:13:59 2024 +0200
@@ -322,6 +322,10 @@
             fi
           done
     else
+        # Check for unexpected spaces
+        if ! check_for_proper_fstab; then
+            fatal 1 "Unexpected spaces in fstab. Please install \`${JQ}'."
+        fi
         /sbin/mount -t zfs -p \
         | LC_ALL=C /usr/bin/grep -E "^${_dsname}(/|\s)" \
         | LC_ALL=C /usr/bin/sort -n -r \