>However, it does leave us with no way of finding out the logical block size, which we may care about for various reasons
There's SEEK_HOLE and fiemap ioctl.
replies(1):
There's SEEK_HOLE and fiemap ioctl.
zdb could be used to get this information by inspecting the dataset's object corresponding to the inode number returned by stat, but that is a heavy handed way to find it.
If this exporting this information is important to the original author, I suggest that he file an issue at the OpenZFS bug tracker requesting a way of exporting this information.