* Correct ZFS snapshot listing
* Disable "lvm is not available" message on quiet boot
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alar Aun <spamtoaun@gmail.com>
Closes #6700
Closes #6747
{
# Sanity checks
if [ ! -x /sbin/lvm ]; then
- message "lvm is not available"
+ [ "$quiet" != "y" ] && message "lvm is not available"
return 1
fi
eval `echo SNAP_$i=$snap`
i=$((i + 1))
done <<EOT
-$("${ZFS}" list -H -oname -tsnapshot "${fs}")
+$("${ZFS}" list -H -oname -tsnapshot -r "${fs}")
EOT
- echo -n " Snap nr [0-$((i-1))]? " > /dev/stderr
+ echo -n " Snap nr [1-$((i-1))]? " > /dev/stderr
read snapnr
# Re-enable debugging.