btrfs-progs: libbtrfs: drop btrfs-list.h, raid56.h and btrfsck.h

libbtrfs isn't a proper library and exports internal headers that aren't
included from other headers and their use in public API does not make
sense. There are no known applications using them so don't install them.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2021-09-08 10:53:13 +02:00
parent 7b2d6cd778
commit 53c9618ce0
3 changed files with 5 additions and 9 deletions

View file

@ -175,11 +175,11 @@ 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 kernel-shared/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 \
crypto/crc32c.h kernel-lib/list.h kerncompat.h \
kernel-lib/radix-tree.h kernel-lib/sizes.h kernel-lib/raid56.h \
kernel-lib/radix-tree.h kernel-lib/sizes.h \
common/extent-cache.h kernel-shared/extent_io.h ioctl.h \
kernel-shared/ctree.h check/btrfsck.h version.h
kernel-shared/ctree.h version.h
libbtrfsutil_major := $(shell sed -rn 's/^\#define BTRFS_UTIL_VERSION_MAJOR ([0-9])+$$/\1/p' libbtrfsutil/btrfsutil.h)
libbtrfsutil_minor := $(shell sed -rn 's/^\#define BTRFS_UTIL_VERSION_MINOR ([0-9])+$$/\1/p' libbtrfsutil/btrfsutil.h)
libbtrfsutil_patch := $(shell sed -rn 's/^\#define BTRFS_UTIL_VERSION_PATCH ([0-9])+$$/\1/p' libbtrfsutil/btrfsutil.h)

View file

@ -6,7 +6,7 @@ global:
btrfs_lookup_uuid_received_subvol_item;
btrfs_lookup_uuid_subvol_item;
/* btrfs-list.h */
/* btrfs-list.h -- not distributed anymore */
btrfs_subvolid_resolve;
/* radix-tree.h */
@ -23,7 +23,7 @@ global:
radix_tree_tag_get;
radix_tree_tag_set;
/* raid56.h */
/* raid56.h -- not distributed anymore */
raid56_recov;
raid5_gen_result;
raid6_gen_syndrome;

View file

@ -27,8 +27,6 @@
#include "kernel-shared/ctree.h"
#include "kernel-shared/extent_io.h"
#include "ioctl.h"
#include "btrfs-list.h"
#include "check/btrfsck.h"
#include "common/extent-cache.h"
#include "kernel-shared/send.h"
#include "common/send-stream.h"
@ -48,8 +46,6 @@
#include "btrfs/ctree.h"
#include "btrfs/extent_io.h"
#include "btrfs/ioctl.h"
#include "btrfs/btrfs-list.h"
#include "btrfs/btrfsck.h"
#include "btrfs/extent-cache.h"
#include "btrfs/send.h"
#include "btrfs/send-stream.h"