fs: btrfs: Add more checksum algorithms
This mostly crossports crypto/hash.[ch] from btrfs-progs. The differences are: - No blake2 support No blake2 related library in U-Boot yet. - Use uboot xxhash/sha256 directly No need to implement the code as U-Boot has already provided the interface. This adds the support for the following csums: - SHA256 - XXHASH Signed-off-by:Qu Wenruo <wqu@suse.com> Reviewed-by:
Marek Behún <marek.behun@nic.cz>
Showing
- fs/btrfs/Makefile 1 addition, 1 deletionfs/btrfs/Makefile
- fs/btrfs/btrfs.c 2 additions, 1 deletionfs/btrfs/btrfs.c
- fs/btrfs/btrfs.h 0 additions, 11 deletionsfs/btrfs/btrfs.h
- fs/btrfs/crypto/hash.c 55 additions, 0 deletionsfs/btrfs/crypto/hash.c
- fs/btrfs/crypto/hash.h 17 additions, 0 deletionsfs/btrfs/crypto/hash.h
- fs/btrfs/dir-item.c 1 addition, 0 deletionsfs/btrfs/dir-item.c
- fs/btrfs/disk-io.c 22 additions, 0 deletionsfs/btrfs/disk-io.c
- fs/btrfs/disk-io.h 20 additions, 0 deletionsfs/btrfs/disk-io.h
- fs/btrfs/hash.c 0 additions, 38 deletionsfs/btrfs/hash.c
- fs/btrfs/super.c 12 additions, 11 deletionsfs/btrfs/super.c
Loading
Please register or sign in to comment