Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A btrfs filesystem consists in a collection of btrees:
* Chunk tree (referenced by superblock)
* Root tree (referenced by superblock)
  - device tree
  - extent tree
  - checksum tree
  - data relocation tree
  - fs tree
     contains inode_item inode_ref dir_item dir_index extent_data. Here is an output example btrfs_1file_1subvol.txt.

The btrfs-debug-tree can be used to dump the btrees. Here is an output example .

btrfs stores all metadata structures (and to some extent even data if it can fit in a btree leaf) are stored as a item inside the btree.

...