Hi all, This patch set imports the upstream kernel zstd library, patches it to work in grub, adds zstd support to the btrfs module, and adds a test case. I've separated the importing and patching of the upstream kernel zstd library for ease of review.
Thanks to David Sterba for starting this project! I started my patch from where he left off. Best, Nick Terrell Nick Terrell (3): Import kernel zstd Patch the kernel zstd Add btrfs zstd support Makefile.util.def | 8 +- grub-core/Makefile.core.def | 10 +- grub-core/fs/btrfs.c | 85 +- grub-core/lib/zstd/bitstream.h | 380 ++++++ grub-core/lib/zstd/decompress.c | 2494 +++++++++++++++++++++++++++++++++++ grub-core/lib/zstd/entropy_common.c | 243 ++++ grub-core/lib/zstd/error_private.h | 52 + grub-core/lib/zstd/fse.h | 575 ++++++++ grub-core/lib/zstd/fse_decompress.c | 329 +++++ grub-core/lib/zstd/huf.h | 212 +++ grub-core/lib/zstd/huf_decompress.c | 957 ++++++++++++++ grub-core/lib/zstd/kerncompat.h | 69 + grub-core/lib/zstd/mem.h | 155 +++ grub-core/lib/zstd/xxhash.c | 482 +++++++ grub-core/lib/zstd/xxhash.h | 236 ++++ grub-core/lib/zstd/zstd.h | 1157 ++++++++++++++++ grub-core/lib/zstd/zstd_common.c | 75 ++ grub-core/lib/zstd/zstd_internal.h | 265 ++++ tests/btrfs_test.in | 1 + tests/util/grub-fs-tester.in | 4 +- 20 files changed, 7783 insertions(+), 6 deletions(-) create mode 100644 grub-core/lib/zstd/bitstream.h create mode 100644 grub-core/lib/zstd/decompress.c create mode 100644 grub-core/lib/zstd/entropy_common.c create mode 100644 grub-core/lib/zstd/error_private.h create mode 100644 grub-core/lib/zstd/fse.h create mode 100644 grub-core/lib/zstd/fse_decompress.c create mode 100644 grub-core/lib/zstd/huf.h create mode 100644 grub-core/lib/zstd/huf_decompress.c create mode 100644 grub-core/lib/zstd/kerncompat.h create mode 100644 grub-core/lib/zstd/mem.h create mode 100644 grub-core/lib/zstd/xxhash.c create mode 100644 grub-core/lib/zstd/xxhash.h create mode 100644 grub-core/lib/zstd/zstd.h create mode 100644 grub-core/lib/zstd/zstd_common.c create mode 100644 grub-core/lib/zstd/zstd_internal.h -- 2.16.2 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel