]> git.proxmox.com Git - mirror_zfs-debian.git/commit - lib/libzfs/libzfs_sendrecv.c
Add linux sha2 support
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 26 Aug 2010 18:52:05 +0000 (11:52 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 31 Aug 2010 20:41:59 +0000 (13:41 -0700)
commit9c905c550bb9cb095a5d9707bc7cf72d3f2562af
tree30671b0210e40f961b0cc3e1ced1bc7908bbfba8
parenta26baf285f71eb95f1eace8c79d12d647a694488
Add linux sha2 support

The upstream ZFS code has correctly moved to a faster native sha2
implementation.  Unfortunately, under Linux that's going to be a little
problematic so we revert the code to the more portable version contained
in earlier ZFS releases.  Using the native sha2 implementation in Linux
is possible but the API is slightly different in kernel version user
space depending on which libraries are used.  Ideally, we need a fast
implementation of SHA256 which builds as part of ZFS this shouldn't be
that hard to do but it will take some effort.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
lib/libzfs/libzfs_sendrecv.c
module/zfs/sha256.c