From f5baaf48e3e82b1caf9f5cd1207d4d6feba3a2e5 Mon Sep 17 00:00:00 2001 From: Thomas Bertschinger Date: Mon, 15 Jan 2024 23:41:02 -0700 Subject: move Rust sources to top level, C sources into c_src This moves the Rust sources out of rust_src/ and into the top level. Running the bcachefs executable out of the development tree is now: $ ./target/release/bcachefs command or $ cargo run --profile release -- command instead of "./bcachefs command". Building and installing is still: $ make && make install Signed-off-by: Thomas Bertschinger Signed-off-by: Kent Overstreet --- c_src/include/linux/lz4.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 c_src/include/linux/lz4.h (limited to 'c_src/include/linux/lz4.h') diff --git a/c_src/include/linux/lz4.h b/c_src/include/linux/lz4.h new file mode 100644 index 00000000..f574964a --- /dev/null +++ b/c_src/include/linux/lz4.h @@ -0,0 +1,10 @@ +#include + +#define LZ4_compress_destSize(src, dst, srclen, dstlen, workspace) \ + LZ4_compress_destSize(src, dst, srclen, dstlen) + +#define LZ4_compress_HC(src, dst, srclen, dstlen, level, workspace) -1 + +#define LZ4_MEM_COMPRESS 0 +#define LZ4HC_MEM_COMPRESS 0 +#define LZ4HC_MIN_CLEVEL 0 -- cgit v1.2.3