#include <stdint.h>
#include <assert.h>
Go to the source code of this file.
◆ BALANCE_ARGS_FLAGS_CONVERT
#define BALANCE_ARGS_FLAGS_CONVERT 0x100 |
◆ BALANCE_ARGS_FLAGS_DEVID
#define BALANCE_ARGS_FLAGS_DEVID 0x004 |
◆ BALANCE_ARGS_FLAGS_DRANGE
#define BALANCE_ARGS_FLAGS_DRANGE 0x008 |
◆ BALANCE_ARGS_FLAGS_LIMIT
#define BALANCE_ARGS_FLAGS_LIMIT 0x020 |
◆ BALANCE_ARGS_FLAGS_LIMIT_RANGE
#define BALANCE_ARGS_FLAGS_LIMIT_RANGE 0x040 |
◆ BALANCE_ARGS_FLAGS_PROFILES
#define BALANCE_ARGS_FLAGS_PROFILES 0x001 |
◆ BALANCE_ARGS_FLAGS_SOFT
#define BALANCE_ARGS_FLAGS_SOFT 0x200 |
◆ BALANCE_ARGS_FLAGS_STRIPES_RANGE
#define BALANCE_ARGS_FLAGS_STRIPES_RANGE 0x080 |
◆ BALANCE_ARGS_FLAGS_USAGE
#define BALANCE_ARGS_FLAGS_USAGE 0x002 |
◆ BALANCE_ARGS_FLAGS_USAGE_RANGE
#define BALANCE_ARGS_FLAGS_USAGE_RANGE 0x400 |
◆ BALANCE_ARGS_FLAGS_VRANGE
#define BALANCE_ARGS_FLAGS_VRANGE 0x010 |
◆ BALANCE_FLAGS_DATA
#define BALANCE_FLAGS_DATA 0x1 |
◆ BALANCE_FLAGS_METADATA
#define BALANCE_FLAGS_METADATA 0x4 |
◆ BALANCE_FLAGS_SYSTEM
#define BALANCE_FLAGS_SYSTEM 0x2 |
◆ BALANCE_ITEM_ID
#define BALANCE_ITEM_ID 0xFFFFFFFFFFFFFFFC |
◆ BLOCK_FLAG_DATA
◆ BLOCK_FLAG_DUPLICATE
#define BLOCK_FLAG_DUPLICATE 0x020 |
◆ BLOCK_FLAG_METADATA
#define BLOCK_FLAG_METADATA 0x004 |
◆ BLOCK_FLAG_RAID0
#define BLOCK_FLAG_RAID0 0x008 |
◆ BLOCK_FLAG_RAID1
#define BLOCK_FLAG_RAID1 0x010 |
◆ BLOCK_FLAG_RAID10
#define BLOCK_FLAG_RAID10 0x040 |
◆ BLOCK_FLAG_RAID1C3
#define BLOCK_FLAG_RAID1C3 0x200 |
◆ BLOCK_FLAG_RAID1C4
#define BLOCK_FLAG_RAID1C4 0x400 |
◆ BLOCK_FLAG_RAID5
#define BLOCK_FLAG_RAID5 0x080 |
◆ BLOCK_FLAG_RAID6
#define BLOCK_FLAG_RAID6 0x100 |
◆ BLOCK_FLAG_SYSTEM
#define BLOCK_FLAG_SYSTEM 0x002 |
◆ BTRFS_COMPAT_RO_FLAGS_FREE_SPACE_CACHE
#define BTRFS_COMPAT_RO_FLAGS_FREE_SPACE_CACHE 0x1 |
◆ BTRFS_COMPAT_RO_FLAGS_FREE_SPACE_CACHE_VALID
#define BTRFS_COMPAT_RO_FLAGS_FREE_SPACE_CACHE_VALID 0x2 |
◆ BTRFS_COMPAT_RO_FLAGS_VERITY
#define BTRFS_COMPAT_RO_FLAGS_VERITY 0x4 |
◆ BTRFS_COMPRESSION_LZO
#define BTRFS_COMPRESSION_LZO 2 |
◆ BTRFS_COMPRESSION_NONE
#define BTRFS_COMPRESSION_NONE 0 |
◆ BTRFS_COMPRESSION_ZLIB
#define BTRFS_COMPRESSION_ZLIB 1 |
◆ BTRFS_COMPRESSION_ZSTD
#define BTRFS_COMPRESSION_ZSTD 3 |
◆ BTRFS_DEV_STAT_CORRUPTION_ERRORS
#define BTRFS_DEV_STAT_CORRUPTION_ERRORS 3 |
◆ BTRFS_DEV_STAT_FLUSH_ERRORS
#define BTRFS_DEV_STAT_FLUSH_ERRORS 2 |
◆ BTRFS_DEV_STAT_GENERATION_ERRORS
#define BTRFS_DEV_STAT_GENERATION_ERRORS 4 |
◆ BTRFS_DEV_STAT_READ_ERRORS
#define BTRFS_DEV_STAT_READ_ERRORS 1 |
◆ BTRFS_DEV_STAT_WRITE_ERRORS
#define BTRFS_DEV_STAT_WRITE_ERRORS 0 |
◆ BTRFS_ENCODING_NONE
◆ BTRFS_ENCRYPTION_NONE
#define BTRFS_ENCRYPTION_NONE 0 |
◆ BTRFS_FREE_SPACE_USING_BITMAPS
#define BTRFS_FREE_SPACE_USING_BITMAPS 1 |
◆ BTRFS_INCOMPAT_FLAGS_BIG_METADATA
#define BTRFS_INCOMPAT_FLAGS_BIG_METADATA 0x0020 |
◆ BTRFS_INCOMPAT_FLAGS_COMPRESS_LZO
#define BTRFS_INCOMPAT_FLAGS_COMPRESS_LZO 0x0008 |
◆ BTRFS_INCOMPAT_FLAGS_COMPRESS_ZSTD
#define BTRFS_INCOMPAT_FLAGS_COMPRESS_ZSTD 0x0010 |
◆ BTRFS_INCOMPAT_FLAGS_DEFAULT_SUBVOL
#define BTRFS_INCOMPAT_FLAGS_DEFAULT_SUBVOL 0x0002 |
◆ BTRFS_INCOMPAT_FLAGS_EXTENDED_IREF
#define BTRFS_INCOMPAT_FLAGS_EXTENDED_IREF 0x0040 |
◆ BTRFS_INCOMPAT_FLAGS_METADATA_UUID
#define BTRFS_INCOMPAT_FLAGS_METADATA_UUID 0x0400 |
◆ BTRFS_INCOMPAT_FLAGS_MIXED_BACKREF
#define BTRFS_INCOMPAT_FLAGS_MIXED_BACKREF 0x0001 |
◆ BTRFS_INCOMPAT_FLAGS_MIXED_GROUPS
#define BTRFS_INCOMPAT_FLAGS_MIXED_GROUPS 0x0004 |
◆ BTRFS_INCOMPAT_FLAGS_NO_HOLES
#define BTRFS_INCOMPAT_FLAGS_NO_HOLES 0x0200 |
◆ BTRFS_INCOMPAT_FLAGS_RAID1C34
#define BTRFS_INCOMPAT_FLAGS_RAID1C34 0x0800 |
◆ BTRFS_INCOMPAT_FLAGS_RAID56
#define BTRFS_INCOMPAT_FLAGS_RAID56 0x0080 |
◆ BTRFS_INCOMPAT_FLAGS_SKINNY_METADATA
#define BTRFS_INCOMPAT_FLAGS_SKINNY_METADATA 0x0100 |
◆ BTRFS_INODE_APPEND
#define BTRFS_INODE_APPEND 0x080 |
◆ BTRFS_INODE_COMPRESS
#define BTRFS_INODE_COMPRESS 0x800 |
◆ BTRFS_INODE_DIRSYNC
#define BTRFS_INODE_DIRSYNC 0x400 |
◆ BTRFS_INODE_IMMUTABLE
#define BTRFS_INODE_IMMUTABLE 0x040 |
◆ BTRFS_INODE_NOATIME
#define BTRFS_INODE_NOATIME 0x200 |
◆ BTRFS_INODE_NOCOMPRESS
#define BTRFS_INODE_NOCOMPRESS 0x008 |
◆ BTRFS_INODE_NODATACOW
#define BTRFS_INODE_NODATACOW 0x002 |
◆ BTRFS_INODE_NODATASUM
#define BTRFS_INODE_NODATASUM 0x001 |
◆ BTRFS_INODE_NODUMP
#define BTRFS_INODE_NODUMP 0x100 |
◆ BTRFS_INODE_PREALLOC
#define BTRFS_INODE_PREALLOC 0x010 |
◆ BTRFS_INODE_READONLY
#define BTRFS_INODE_READONLY 0x004 |
◆ BTRFS_INODE_RO_VERITY
#define BTRFS_INODE_RO_VERITY 0x1 |
◆ BTRFS_INODE_SYNC
#define BTRFS_INODE_SYNC 0x020 |
◆ BTRFS_LAST_FREE_OBJECTID
#define BTRFS_LAST_FREE_OBJECTID 0xffffffffffffff00 |
◆ BTRFS_MAGIC
#define BTRFS_MAGIC 0x4d5f53665248425f |
◆ BTRFS_NUM_BACKUP_ROOTS
#define BTRFS_NUM_BACKUP_ROOTS 4 |
◆ BTRFS_ORPHAN_INODE_OBJID
#define BTRFS_ORPHAN_INODE_OBJID 0xFFFFFFFFFFFFFFFB |
◆ BTRFS_ROOT_CHECKSUM
◆ BTRFS_ROOT_CHUNK
◆ BTRFS_ROOT_DATA_RELOC
#define BTRFS_ROOT_DATA_RELOC 0xFFFFFFFFFFFFFFF7 |
◆ BTRFS_ROOT_DEVTREE
◆ BTRFS_ROOT_EXTENT
◆ BTRFS_ROOT_FREE_SPACE
#define BTRFS_ROOT_FREE_SPACE 0xa |
◆ BTRFS_ROOT_FSTREE
◆ BTRFS_ROOT_ROOT
◆ BTRFS_ROOT_TREEDIR
◆ BTRFS_ROOT_UUID
◆ BTRFS_SEND_CMD_CHMOD
#define BTRFS_SEND_CMD_CHMOD 18 |
◆ BTRFS_SEND_CMD_CHOWN
#define BTRFS_SEND_CMD_CHOWN 19 |
◆ BTRFS_SEND_CMD_CLONE
#define BTRFS_SEND_CMD_CLONE 16 |
◆ BTRFS_SEND_CMD_END
◆ BTRFS_SEND_CMD_LINK
#define BTRFS_SEND_CMD_LINK 10 |
◆ BTRFS_SEND_CMD_MKDIR
#define BTRFS_SEND_CMD_MKDIR 4 |
◆ BTRFS_SEND_CMD_MKFIFO
#define BTRFS_SEND_CMD_MKFIFO 6 |
◆ BTRFS_SEND_CMD_MKFILE
#define BTRFS_SEND_CMD_MKFILE 3 |
◆ BTRFS_SEND_CMD_MKNOD
#define BTRFS_SEND_CMD_MKNOD 5 |
◆ BTRFS_SEND_CMD_MKSOCK
#define BTRFS_SEND_CMD_MKSOCK 7 |
◆ BTRFS_SEND_CMD_REMOVE_XATTR
#define BTRFS_SEND_CMD_REMOVE_XATTR 14 |
◆ BTRFS_SEND_CMD_RENAME
#define BTRFS_SEND_CMD_RENAME 9 |
◆ BTRFS_SEND_CMD_RMDIR
#define BTRFS_SEND_CMD_RMDIR 12 |
◆ BTRFS_SEND_CMD_SET_XATTR
#define BTRFS_SEND_CMD_SET_XATTR 13 |
◆ BTRFS_SEND_CMD_SNAPSHOT
#define BTRFS_SEND_CMD_SNAPSHOT 2 |
◆ BTRFS_SEND_CMD_SUBVOL
#define BTRFS_SEND_CMD_SUBVOL 1 |
◆ BTRFS_SEND_CMD_SYMLINK
#define BTRFS_SEND_CMD_SYMLINK 8 |
◆ BTRFS_SEND_CMD_TRUNCATE
#define BTRFS_SEND_CMD_TRUNCATE 17 |
◆ BTRFS_SEND_CMD_UNLINK
#define BTRFS_SEND_CMD_UNLINK 11 |
◆ BTRFS_SEND_CMD_UPDATE_EXTENT
#define BTRFS_SEND_CMD_UPDATE_EXTENT 22 |
◆ BTRFS_SEND_CMD_UTIMES
#define BTRFS_SEND_CMD_UTIMES 20 |
◆ BTRFS_SEND_CMD_WRITE
#define BTRFS_SEND_CMD_WRITE 15 |
◆ BTRFS_SEND_MAGIC
#define BTRFS_SEND_MAGIC "btrfs-stream" |
◆ BTRFS_SEND_TLV_ATIME
#define BTRFS_SEND_TLV_ATIME 11 |
◆ BTRFS_SEND_TLV_CLONE_CTRANSID
#define BTRFS_SEND_TLV_CLONE_CTRANSID 21 |
◆ BTRFS_SEND_TLV_CLONE_LENGTH
#define BTRFS_SEND_TLV_CLONE_LENGTH 24 |
◆ BTRFS_SEND_TLV_CLONE_OFFSET
#define BTRFS_SEND_TLV_CLONE_OFFSET 23 |
◆ BTRFS_SEND_TLV_CLONE_PATH
#define BTRFS_SEND_TLV_CLONE_PATH 22 |
◆ BTRFS_SEND_TLV_CLONE_UUID
#define BTRFS_SEND_TLV_CLONE_UUID 20 |
◆ BTRFS_SEND_TLV_CTIME
#define BTRFS_SEND_TLV_CTIME 9 |
◆ BTRFS_SEND_TLV_DATA
#define BTRFS_SEND_TLV_DATA 19 |
◆ BTRFS_SEND_TLV_GID
◆ BTRFS_SEND_TLV_INODE
#define BTRFS_SEND_TLV_INODE 3 |
◆ BTRFS_SEND_TLV_MODE
◆ BTRFS_SEND_TLV_MTIME
#define BTRFS_SEND_TLV_MTIME 10 |
◆ BTRFS_SEND_TLV_OFFSET
#define BTRFS_SEND_TLV_OFFSET 18 |
◆ BTRFS_SEND_TLV_OTIME
#define BTRFS_SEND_TLV_OTIME 12 |
◆ BTRFS_SEND_TLV_PATH
#define BTRFS_SEND_TLV_PATH 15 |
◆ BTRFS_SEND_TLV_PATH_LINK
#define BTRFS_SEND_TLV_PATH_LINK 17 |
◆ BTRFS_SEND_TLV_PATH_TO
#define BTRFS_SEND_TLV_PATH_TO 16 |
◆ BTRFS_SEND_TLV_RDEV
◆ BTRFS_SEND_TLV_SIZE
◆ BTRFS_SEND_TLV_TRANSID
#define BTRFS_SEND_TLV_TRANSID 2 |
◆ BTRFS_SEND_TLV_UID
◆ BTRFS_SEND_TLV_UUID
◆ BTRFS_SEND_TLV_XATTR_DATA
#define BTRFS_SEND_TLV_XATTR_DATA 14 |
◆ BTRFS_SEND_TLV_XATTR_NAME
#define BTRFS_SEND_TLV_XATTR_NAME 13 |
◆ BTRFS_SUBVOL_READONLY
#define BTRFS_SUBVOL_READONLY 0x1 |
◆ BTRFS_SUPERBLOCK_FLAGS_SEEDING
#define BTRFS_SUPERBLOCK_FLAGS_SEEDING 0x100000000 |
◆ BTRFS_TYPE_BLOCKDEV
◆ BTRFS_TYPE_CHARDEV
◆ BTRFS_TYPE_DIRECTORY
#define BTRFS_TYPE_DIRECTORY 2 |
◆ BTRFS_TYPE_EA
◆ BTRFS_TYPE_FIFO
◆ BTRFS_TYPE_FILE
◆ BTRFS_TYPE_SOCKET
◆ BTRFS_TYPE_SYMLINK
◆ BTRFS_TYPE_UNKNOWN
◆ CSUM_TYPE_BLAKE2
◆ CSUM_TYPE_CRC32C
◆ CSUM_TYPE_SHA256
◆ CSUM_TYPE_XXHASH
◆ EXTENT_CSUM_ID
#define EXTENT_CSUM_ID 0xFFFFFFFFFFFFFFF6 |
◆ EXTENT_ITEM_DATA
#define EXTENT_ITEM_DATA 0x001 |
◆ EXTENT_ITEM_SHARED_BACKREFS
#define EXTENT_ITEM_SHARED_BACKREFS 0x100 |
◆ EXTENT_ITEM_TREE_BLOCK
#define EXTENT_ITEM_TREE_BLOCK 0x002 |
◆ EXTENT_TYPE_INLINE
◆ EXTENT_TYPE_PREALLOC
#define EXTENT_TYPE_PREALLOC 2 |
◆ EXTENT_TYPE_REGULAR
◆ FREE_SPACE_BITMAP
◆ FREE_SPACE_CACHE_ID
#define FREE_SPACE_CACHE_ID 0xFFFFFFFFFFFFFFF5 |
◆ FREE_SPACE_EXTENT
◆ HEADER_FLAG_MIXED_BACKREF
#define HEADER_FLAG_MIXED_BACKREF 0x100000000000000 |
◆ HEADER_FLAG_SHARED_BACKREF
#define HEADER_FLAG_SHARED_BACKREF 0x000000000000002 |
◆ HEADER_FLAG_WRITTEN
#define HEADER_FLAG_WRITTEN 0x000000000000001 |
◆ MAX_LABEL_SIZE
◆ SUBVOL_ROOT_INODE
#define SUBVOL_ROOT_INODE 0x100 |
◆ SYS_CHUNK_ARRAY_SIZE
#define SYS_CHUNK_ARRAY_SIZE 0x800 |
◆ TYPE_BLOCK_GROUP_ITEM
#define TYPE_BLOCK_GROUP_ITEM 0xC0 |
◆ TYPE_CHUNK_ITEM
◆ TYPE_DEV_EXTENT
◆ TYPE_DEV_ITEM
◆ TYPE_DEV_STATS
◆ TYPE_DIR_INDEX
◆ TYPE_DIR_ITEM
◆ TYPE_EXTENT_CSUM
◆ TYPE_EXTENT_DATA
◆ TYPE_EXTENT_DATA_REF
#define TYPE_EXTENT_DATA_REF 0xB2 |
◆ TYPE_EXTENT_ITEM
◆ TYPE_EXTENT_REF_V0
#define TYPE_EXTENT_REF_V0 0xB4 |
◆ TYPE_FREE_SPACE_BITMAP
#define TYPE_FREE_SPACE_BITMAP 0xC8 |
◆ TYPE_FREE_SPACE_EXTENT
#define TYPE_FREE_SPACE_EXTENT 0xC7 |
◆ TYPE_FREE_SPACE_INFO
#define TYPE_FREE_SPACE_INFO 0xC6 |
◆ TYPE_INODE_EXTREF
#define TYPE_INODE_EXTREF 0x0D |
◆ TYPE_INODE_ITEM
◆ TYPE_INODE_REF
◆ TYPE_METADATA_ITEM
#define TYPE_METADATA_ITEM 0xA9 |
◆ TYPE_ORPHAN_INODE
#define TYPE_ORPHAN_INODE 0x30 |
◆ TYPE_ROOT_BACKREF
#define TYPE_ROOT_BACKREF 0x90 |
◆ TYPE_ROOT_ITEM
◆ TYPE_ROOT_REF
◆ TYPE_SHARED_BLOCK_REF
#define TYPE_SHARED_BLOCK_REF 0xB6 |
◆ TYPE_SHARED_DATA_REF
#define TYPE_SHARED_DATA_REF 0xB8 |
◆ TYPE_SUBVOL_REC_UUID
#define TYPE_SUBVOL_REC_UUID 0xFC |
◆ TYPE_SUBVOL_UUID
◆ TYPE_TEMP_ITEM
◆ TYPE_TREE_BLOCK_REF
#define TYPE_TREE_BLOCK_REF 0xB0 |
◆ TYPE_XATTR_ITEM
◆ superblock_addrs
const uint64_t superblock_addrs[] = { 0x10000, 0x4000000, 0x4000000000, 0x4000000000000, 0 } |
|
static |
Definition at line 16 of file btrfs.h.
Referenced by add_trim_entry_avoid_sb(), device_still_valid(), get_superblock_size(), is_device_part_of_mounted_btrfs_raid(), is_mounted_multi_device(), protect_superblocks(), read_superblock(), remove_superblocks(), still_has_superblock(), superblock_collision(), test_vol(), verify_device(), write_superblock(), and write_superblocks().