From: jpsollie Date: Wed, 30 Jun 2021 10:35:36 +0000 (+0200) Subject: add bcachefs xor / xxhash support X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=54d44fe56bcbec3bdc3b71a9a3d43438ce13b43c;p=bcachefs-tools-debian add bcachefs xor / xxhash support Following the initial xxhash / xor checksum support patches in kernel, bcachefs-tools needs some updated libraries as well. Unfortunately, xor functionality is deeply linked into several low-level functions, so we're adding a set of patches here to translate those into userspace Signed-off-by: Janpieter Sollie --- diff --git a/Makefile b/Makefile index 1bc6542..b544e81 100644 --- a/Makefile +++ b/Makefile @@ -156,6 +156,10 @@ update-bcachefs-sources: git add libbcachefs/*.[ch] cp $(LINUX_DIR)/include/trace/events/bcachefs.h include/trace/events/ git add include/trace/events/bcachefs.h + cp $(LINUX_DIR)/include/linux/xxhash.h include/linux/ + git add include/linux/xxhash.h + cp $(LINUX_DIR)/lib/xxhash.c linux/ + git add linux/xxhash.c cp $(LINUX_DIR)/kernel/locking/six.c linux/ git add linux/six.c cp $(LINUX_DIR)/include/linux/six.h include/linux/