freebsd-dev/sys/cddl/boot/zfs
Pawel Jakub Dawidek 81fdf04870 Always pass data size for checksum verification function, as using
physical block size declared in bp may not always be what we want.
For example in case of gang block header physical block size declared
in bp is much larger than SPA_GANGBLOCKSIZE (512 bytes) and checksum
calculation failed. This bug could lead to accessing unallocated
memory and resets/failures during boot.

MFC after:	3 days
2011-10-19 23:44:38 +00:00
..
fletcher.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
lzjb.c
README Add support for booting from raidz1 and raidz2 pools. 2009-05-16 10:48:20 +00:00
sha256.c
zfsimpl.h Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zfssubr.c Always pass data size for checksum verification function, as using 2011-10-19 23:44:38 +00:00
zle.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00

$FreeBSD$

This directory contains various files derived from CDDL sources that
are used by the ZFS bootstrap:

    fletcher.c			checksum support
    sha256.c			checksum support
    lzjb.c			compression support
    zfssubr.c			checksum, compression and raidz support
    zfsimpl.h			mostly describing the physical layout

The files fletcher.c, lzjb.c and sha256.c are largely identical to the
ZFS base code (with write support removed) and could be shared but
that might complicate future imports from OpenSolaris.