K 10 svn:author V 6 kevans K 8 svn:date V 27 2022-04-24T13:31:14.347722Z K 7 svn:log V 666 stand: zfs: handle holes at the tail end correctly This mirrors dmu_read_impl(), zeroing out the tail end of the buffer and clipping the read to what's contained by the block that exists. This fixes an issue that arose during the 13.1 release process; in 13.1-RC1 and later, setting up GELI+ZFS will result in a failure to boot. The culprit is this, which causes us to fail to load geom_eli.ko as there's a residual portion after the single datablk that should be zeroed out. PR: 263407 Reviewed by: tsoome (cherry picked from commit 914dc91d12198352b7878a88d30e2a6373a936e1) Git Hash: 9a1efa766781c9dd1eb5975ce3a5c8a64d89cd18 Git Author: kevans@FreeBSD.org END