comparison sbin/fzfs @ 625:69d557d67842

fzfs: FIX: no numeric sort for fstab
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 24 Sep 2024 14:38:46 +0200
parents 721737ce1ea0
children 17209ce80536
comparison
equal deleted inserted replaced
624:3de82b013230 625:69d557d67842
327 if ! check_for_proper_fstab; then 327 if ! check_for_proper_fstab; then
328 fatal 1 "Unexpected spaces in fstab. Please install \`${JQ}'." 328 fatal 1 "Unexpected spaces in fstab. Please install \`${JQ}'."
329 fi 329 fi
330 /sbin/mount -t zfs -p \ 330 /sbin/mount -t zfs -p \
331 | LC_ALL=C /usr/bin/grep -E "^${_dsname}(/|\s)" \ 331 | LC_ALL=C /usr/bin/grep -E "^${_dsname}(/|\s)" \
332 | LC_ALL=C /usr/bin/sort -n -r \ 332 | LC_ALL=C /usr/bin/sort -r \
333 | while IFS=' '$'\t' read -r _name _mp _rest ; do 333 | while IFS=' '$'\t' read -r _name _mp _rest ; do
334 if checkyes _opt_dry_run ; then 334 if checkyes _opt_dry_run ; then
335 echo "Would umount ${_name} from ${_mp}" 335 echo "Would umount ${_name} from ${_mp}"
336 else 336 else
337 echo "Umounting ${_name} on ${_mp}" 337 echo "Umounting ${_name} on ${_mp}"