loader: zio_checksum_verify should check byteswap
We do have both native and byteswap checksum callbacks in place but the selection is not wired.
Testing done: build/install/boot.
Additionally, with disk image of pool created on sparc, I did add debug printouts to get byteswap value and checksum status:
L0 DMU objset] DVA0=<0:18006400:200> DVA1=<0:1c006400:200> DVA2=<0:2001b800:200> 1000L/200P F=56 B=31/31 triple BE cksum=9bdd2561c:40df25e67ec:dba5e67b5d8c:1f82b576ab64b7
vdev_read: offset: 18406400, size: 200
zio_checksum_verify: byteswap: 1
However, note that loader is not implementing all proper byteswaps, so even as we read out MOS (above), we can not interpret it (yet).
Updated by Electric Monk over 2 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
commit ece0bc848de931052064be9faf07f4e44c150a15 Author: Toomas Soome <firstname.lastname@example.org> Date: 2019-10-29T18:27:42.000Z 11883 loader: zio_checksum_verify should check byteswap Reviewed by: Andy Fiddaman <email@example.com> Reviewed by: Andy Stormont <AStormont@racktopsystems.com> Reviewed by: Kody Kantor <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com>