From e86425242f3163db4e0a6dda322c5398610a84d0 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 7 Sep 2021 19:26:46 +0200 Subject: [PATCH] btrfs-progs: move send.h to kernel-shared/ The header contains the protocol definitions and is almost exactly the same as the kernel version, move it to the proper directory. Signed-off-by: David Sterba --- Makefile | 2 +- cmds/receive.c | 2 +- cmds/send.c | 2 +- common/send-stream.c | 2 +- send.h => kernel-shared/send.h | 0 tests/library-test.c | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename send.h => kernel-shared/send.h (100%) diff --git a/Makefile b/Makefile index cf6f9e5f..da3401e8 100644 --- a/Makefile +++ b/Makefile @@ -175,7 +175,7 @@ libbtrfs_objects = common/send-stream.o common/send-utils.o kernel-lib/rbtree.o crypto/hash.o crypto/xxhash.o $(CRYPTO_OBJECTS) \ common/open-utils.o common/units.o common/device-utils.o \ common/parse-utils.o -libbtrfs_headers = common/send-stream.h common/send-utils.h send.h kernel-lib/rbtree.h btrfs-list.h \ +libbtrfs_headers = common/send-stream.h common/send-utils.h kernel-shared/send.h kernel-lib/rbtree.h btrfs-list.h \ crypto/crc32c.h kernel-lib/list.h kerncompat.h \ kernel-lib/radix-tree.h kernel-lib/sizes.h kernel-lib/raid56.h \ common/extent-cache.h kernel-shared/extent_io.h ioctl.h \ diff --git a/cmds/receive.c b/cmds/receive.c index 4dd01fd3..781e3751 100644 --- a/cmds/receive.c +++ b/cmds/receive.c @@ -45,7 +45,7 @@ #include "kernel-lib/list.h" #include "btrfs-list.h" -#include "send.h" +#include "kernel-shared/send.h" #include "common/send-stream.h" #include "common/send-utils.h" #include "cmds/receive-dump.h" diff --git a/cmds/send.c b/cmds/send.c index 236e3bb9..afe9c5a3 100644 --- a/cmds/send.c +++ b/cmds/send.c @@ -40,7 +40,7 @@ #include "kernel-lib/list.h" #include "common/utils.h" -#include "send.h" +#include "kernel-shared/send.h" #include "common/send-utils.h" #include "common/help.h" #include "common/path-utils.h" diff --git a/common/send-stream.c b/common/send-stream.c index a0c52f79..d07748ce 100644 --- a/common/send-stream.c +++ b/common/send-stream.c @@ -19,7 +19,7 @@ #include #include -#include "send.h" +#include "kernel-shared/send.h" #include "common/send-stream.h" #include "crypto/crc32c.h" #include "common/utils.h" diff --git a/send.h b/kernel-shared/send.h similarity index 100% rename from send.h rename to kernel-shared/send.h diff --git a/tests/library-test.c b/tests/library-test.c index b7425979..39ab0378 100644 --- a/tests/library-test.c +++ b/tests/library-test.c @@ -30,7 +30,7 @@ #include "btrfs-list.h" #include "check/btrfsck.h" #include "common/extent-cache.h" -#include "send.h" +#include "kernel-shared/send.h" #include "common/send-stream.h" #include "common/send-utils.h" #else