mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 04:00:36 +01:00 
			
		
		
		
	fs: improve compatibility with linux-libc-dev 5.4
Fix the missing symbols that popped up when adding chunk tree to lib/fs.cc. Also define the missing symbols instead of merely trying to avoid them. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -78,9 +78,6 @@ enum btrfs_compression_type {
 | 
			
		||||
	#define BTRFS_SHARED_BLOCK_REF_KEY      182
 | 
			
		||||
	#define BTRFS_SHARED_DATA_REF_KEY       184
 | 
			
		||||
	#define BTRFS_BLOCK_GROUP_ITEM_KEY 192
 | 
			
		||||
	#define BTRFS_FREE_SPACE_INFO_KEY 198
 | 
			
		||||
	#define BTRFS_FREE_SPACE_EXTENT_KEY 199
 | 
			
		||||
	#define BTRFS_FREE_SPACE_BITMAP_KEY 200
 | 
			
		||||
	#define BTRFS_DEV_EXTENT_KEY    204
 | 
			
		||||
	#define BTRFS_DEV_ITEM_KEY      216
 | 
			
		||||
	#define BTRFS_CHUNK_ITEM_KEY    228
 | 
			
		||||
@@ -97,6 +94,18 @@ enum btrfs_compression_type {
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef BTRFS_FREE_SPACE_INFO_KEY
 | 
			
		||||
	#define BTRFS_FREE_SPACE_INFO_KEY 198
 | 
			
		||||
	#define BTRFS_FREE_SPACE_EXTENT_KEY 199
 | 
			
		||||
	#define BTRFS_FREE_SPACE_BITMAP_KEY 200
 | 
			
		||||
	#define BTRFS_FREE_SPACE_OBJECTID -11ULL
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef BTRFS_BLOCK_GROUP_RAID1C4
 | 
			
		||||
	#define BTRFS_BLOCK_GROUP_RAID1C3       (1ULL << 9)
 | 
			
		||||
	#define BTRFS_BLOCK_GROUP_RAID1C4       (1ULL << 10)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef BTRFS_DEFRAG_RANGE_START_IO
 | 
			
		||||
 | 
			
		||||
	// For some reason uapi has BTRFS_DEFRAG_RANGE_COMPRESS and
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user