Main Page

From btrfs Wiki
(Difference between revisions)
Jump to: navigation, search
(News: zstd news)
(News: progs 6.0.2)
 
(61 intermediate revisions by one user not shown)
Line 12: Line 12:
 
Development of Btrfs started in 2007. Since that time, Btrfs is a part of the Linux kernel and is under active development.
 
Development of Btrfs started in 2007. Since that time, Btrfs is a part of the Linux kernel and is under active development.
  
Jointly developed at [[Contributors|multiple companies]], Btrfs is licensed under the GPL and open for contribution from anyone.
+
Jointly developed by multiple companies (https://btrfs.readthedocs.io/en/latest/Contributors.html, Btrfs is licensed under the GPL and open for contribution from anyone.
  
 
[[Production_Users|List of companies using btrfs in production]].
 
[[Production_Users|List of companies using btrfs in production]].
Line 43: Line 43:
 
* Extent based file storage
 
* Extent based file storage
 
* 2^64 byte == 16 EiB maximum file size (practical limit is 8 EiB due to Linux VFS)
 
* 2^64 byte == 16 EiB maximum file size (practical limit is 8 EiB due to Linux VFS)
* Space-efficient packing of small files
+
* [https://btrfs.readthedocs.io/en/latest/Inline-files.html Space-efficient packing of small files]
 
* Space-efficient indexed directories
 
* Space-efficient indexed directories
 
* Dynamic inode allocation
 
* Dynamic inode allocation
 
* Writable snapshots, read-only snapshots
 
* Writable snapshots, read-only snapshots
* Subvolumes (separate internal filesystem roots)
+
* [https://btrfs.readthedocs.io/en/latest/Subvolumes.html Subvolumes] (separate internal filesystem roots)
* Checksums on data and metadata (crc32c, xxhash, sha256, blake2b)
+
* [https://btrfs.readthedocs.io/en/latest/Checksumming.html Checksums on data and metadata] (crc32c, xxhash, sha256, blake2b)
* [[Compression]] (ZLIB, LZO, ZSTD), heuristics
+
* [https://btrfs.readthedocs.io/en/latest/Compression.html Compression] (ZLIB, LZO, ZSTD), heuristics
 
* Integrated [[Multiple_Device_Support|multiple device support]]
 
* Integrated [[Multiple_Device_Support|multiple device support]]
 
** File Striping
 
** File Striping
Line 55: Line 55:
 
** File Striping+Mirroring
 
** File Striping+Mirroring
 
** Single and Dual Parity implementations (experimental, not production-ready)
 
** Single and Dual Parity implementations (experimental, not production-ready)
* SSD (flash storage) awareness (TRIM/Discard for reporting free blocks for reuse) and optimizations (e.g. avoiding unnecessary seek optimizations, sending writes in clusters, even if they are from unrelated files. This results in larger write operations and faster write throughput)
+
* SSD (flash storage) awareness
* Efficient [[Incremental_Backup|incremental backup]]
+
** [https://btrfs.readthedocs.io/en/latest/Trim.html TRIM/Discard] for reporting free blocks for reuse
* Background scrub process for finding and repairing errors of files with redundant copies
+
** Optimizations (e.g. avoiding unnecessary seek optimizations, sending writes in clusters, even if they are from unrelated files. This results in larger write operations and faster write throughput)
* Online filesystem defragmentation
+
* Background [https://btrfs.readthedocs.io/en/latest/Scrub.html scrub] process for finding and repairing errors of files with redundant copies
* [[btrfsck|Offline filesystem check]]
+
* Online filesystem [https://btrfs.readthedocs.io/en/latest/Defragmentation.html defragmentation]
 +
* [https://btrfs.readthedocs.io/en/latest/btrfs-check.html Offline filesystem check]
 
* In-place [[Conversion_from_Ext3|conversion]] of existing ext2/3/4 and reiserfs file systems
 
* In-place [[Conversion_from_Ext3|conversion]] of existing ext2/3/4 and reiserfs file systems
* [[Seed-device|Seed devices]]. Create a (readonly) filesystem that acts as a template to seed other Btrfs filesystems. The original filesystem and devices are included as a readonly starting point for the new filesystem. Using copy on write, all modifications are stored on different devices; the original is unchanged.
+
* [https://btrfs.readthedocs.io/en/latest/Seeding-device.html Seeding devices]. Create a (readonly) filesystem that acts as a template to seed other Btrfs filesystems. The original filesystem and devices are included as a readonly starting point for the new filesystem. Using copy on write, all modifications are stored on different devices; the original is unchanged.
* Subvolume-aware [[quota support]]
+
* Subvolume-aware [https://btrfs.readthedocs.io/en/latest/Qgroups.html quota support]
* Send/receive of subvolume changes
+
* [https://btrfs.readthedocs.io/en/latest/Send-receive.html Send/receive] of subvolume changes, efficient incremental filesystem mirroring and [[Incremental_Backup|backup]]
** Efficient incremental filesystem mirroring
+
 
* Batch, or out-of-band [[deduplication]] (happens after writes, not during)
 
* Batch, or out-of-band [[deduplication]] (happens after writes, not during)
* Swapfile support
+
* [https://btrfs.readthedocs.io/en/latest/Swapfile.html Swapfile] support
* [[Tree-checker]], post-read and pre-write metadata verification
+
* [https://btrfs.readthedocs.io/en/latest/Tree-checker.html Tree-checker], post-read and pre-write metadata verification
 
* [[Zoned]] mode support (SMR/ZBC/ZNS friendly allocation)
 
* [[Zoned]] mode support (SMR/ZBC/ZNS friendly allocation)
 +
* fsverity integration
  
 
=== Features by kernel version ===
 
=== Features by kernel version ===
As part of the changelog you can also review
 
  
* [[Changelog#By_feature|features by kernel version]]
+
* features by kernel version https://btrfs.readthedocs.io/en/latest/Feature-by-version.html
  
=== Features Currently in Development or Planned for Future Implementation ===
+
=== Documentation ===
 +
 
 +
* https://btrfs.readthedocs.org or https://btrfs.rtfd.io
 +
* the #btrfs channel is at [https://libera.chat libera.chat], matrix.org bridge works (persistent room #btrfs:matrix.org).
  
* DAX/persistent memory support
 
* The file/directory -level encryption support (fscrypt)
 
* fsverity integration
 
 
</div>
 
</div>
  
Line 90: Line 90:
  
 
* [[Getting started]] — first steps, distributions with btrfs support
 
* [[Getting started]] — first steps, distributions with btrfs support
** [[Manpage/btrfs(5)#MOUNT_OPTIONS|Mount options]]
+
** [https://btrfs.readthedocs.io/en/latest/btrfs-man5.html#mount-options Mount options]
 
* [[FAQ]] — About the btrfs project and filesystem
 
* [[FAQ]] — About the btrfs project and filesystem
 
* [[UseCases]] — Recipes for how to do stuff with btrfs
 
* [[UseCases]] — Recipes for how to do stuff with btrfs
Line 98: Line 98:
 
* [[Problem FAQ]] — Commonly-encountered problems and solutions.
 
* [[Problem FAQ]] — Commonly-encountered problems and solutions.
 
** [[Gotchas]] — lists known bugs and issues, but not necessarily solutions.
 
** [[Gotchas]] — lists known bugs and issues, but not necessarily solutions.
 
=== External Btrfs Documentation / Guides ===
 
 
Links to Btrfs documentation of various Linux distributions:
 
 
* "[https://docs.oracle.com/cd/E37670_01/E37355/html/ol_btrfs.html The Btrfs File System]" chapter in the [https://docs.oracle.com/cd/E37670_01/E37355/html/index.html Oracle Linux 6 Administrator's Solutions Guide]
 
* [https://documentation.suse.com/sles/15-GA/single-html/SLES-storage/#sec-filesystems-major-btrfs Major File Systems in Linux] chapter in the [https://documentation.suse.com/en-us/sles/15-GA/single-html/SLES-storage/ SLES 15 Storage Administration Guide]
 
* [https://help.ubuntu.com/community/btrfs Btrfs Wiki page] on the [https://help.ubuntu.com/community Ubuntu Community Help Wiki]
 
* [https://wiki.archlinux.org/index.php/Btrfs Btrfs Wiki page] on the [https://wiki.archlinux.org/ Arch Linux Wiki]
 
* [http://marc.merlins.org/perso/btrfs/post_2014-05-21_My-Btrfs-Talk-at-Linuxcon-JP-2014.html Marc MERLIN's Btrfs talk at Linuxcon JP 2014] which gives an overview of Btrfs, best practices, and its more interesting features.
 
  
 
=== Manual pages ===
 
=== Manual pages ===
  
* Manual pages generated from git ([[:Category:Manpage|complete list]]):
+
* Manual pages generated from git ([https://btrfs.readthedocs.io/en/latest/man-index.html complete list]):
** [[Manpage/btrfs|btrfs]] — main administration tool
+
** [https://btrfs.readthedocs.io/en/latest/btrfs.html btrfs] — main administration tool
** [[Manpage/mkfs.btrfs|mkfs.btrfs]] — creating the filesystem
+
** [https://btrfs.readthedocs.io/en/latest/mkfs.btrfs.html mkfs.btrfs] — creating the filesystem
** [[Manpage/btrfs-check|btrfs check]] — repairing file systems
+
** [https://btrfs.readthedocs.io/en/latest/btrfs-check.html btrfs check] — repairing file systems
** [[Manpage/btrfs-convert|btrfs-convert]] — tool to convert in-place from ext2/3/4 filesystems to btrfs. For a greater detail of how the algorithm works, please see the [[Conversion from Ext3]] page.
+
** [https://btrfs.readthedocs.io/en/latest/btrfs-convert.html btrfs-convert] — tool to convert in-place from ext2/3/4 filesystems to btrfs. For a greater detail of how the algorithm works, please see the [[Conversion from Ext3]] page.
  
 
* Original wiki documentation (obsolete, will be removed)
 
* Original wiki documentation (obsolete, will be removed)
Line 127: Line 117:
 
* [[Developer's FAQ]] — hints and answers for contributors and developers, general information about patch formatting
 
* [[Developer's FAQ]] — hints and answers for contributors and developers, general information about patch formatting
 
* [[Development notes]] — notes, hints, checklists for specific implementation tasks (eg. adding new ioctls)
 
* [[Development notes]] — notes, hints, checklists for specific implementation tasks (eg. adding new ioctls)
* [[Code documentation]] — trees, source files, sample code for manipulating trees
 
 
* [[Data Structures]] — detailed on-disk data structures
 
* [[Data Structures]] — detailed on-disk data structures
 
* [[On-disk_Format | On-disk Format]] - Details of data structures written on disk
 
* [[On-disk_Format | On-disk Format]] - Details of data structures written on disk
Line 134: Line 123:
 
* [[Btrfs design]] — design notes (possibly out of date in places)
 
* [[Btrfs design]] — design notes (possibly out of date in places)
 
* [[Multiple Device Support]] — design notes
 
* [[Multiple Device Support]] — design notes
* [[ENOSPC]] — Current ENOSPC design issues
 
 
* [[Design_notes_on_Send/Receive]] — notes from initial impelentation, protocol V2 updates draft
 
* [[Design_notes_on_Send/Receive]] — notes from initial impelentation, protocol V2 updates draft
 
* [[Qgroups status quo]] - notes on some qgroups observations/pain points
 
* [[Qgroups status quo]] - notes on some qgroups observations/pain points
Line 145: Line 133:
 
* Original COW B-tree: Source code in C that implements the COW B-tree algorithms [https://github.com/orodeh/bt repository]. Written by Ohad Rodeh at IBM Research in 2006, and released under a BSD license. This is a reference implementation, that works in user space.
 
* Original COW B-tree: Source code in C that implements the COW B-tree algorithms [https://github.com/orodeh/bt repository]. Written by Ohad Rodeh at IBM Research in 2006, and released under a BSD license. This is a reference implementation, that works in user space.
  
* Unmerged features
+
* [[User notes on dedupe]] — User/tester notes for using in-band deduplication feature
** In-band (write) time deduplication
+
*** [[User notes on dedupe]] — User/tester notes for using in-band deduplication feature
+
 
</div>
 
</div>
  
Line 154: Line 140:
 
<!-- News Block -->
 
<!-- News Block -->
 
<div style="margin:0; margin-top:10px; border:1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#f0e0d0; align:left;">
 
<div style="margin:0; margin-top:10px; border:1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#f0e0d0; align:left;">
 +
 
== News ==
 
== News ==
  
''' IRC channel at libera.chat '''
+
''' btrfs-progs v6.0.2 (Nov 2022) '''
 
+
* Please see the release notes at [https://btrfs.readthedocs.io/en/latest/CHANGES.html readthedocs.io]
The #btrfs channel is at [https://libera.chat libera.chat], matrix.org bridge works (persistent room #btrfs:matrix.org).
+
 
+
''' zstd (Nov 15) '''
+
 
+
The zstd implementation 1.4.10 in kernel has been [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c8c109546a19613d323a319d0c921cb1f317e629 merged] to 5.15-rc1, speedups and sync with upstream version
+
 
+
''' btrfs-progs v5.15 (Nov 2021) '''
+
* mkfs: new defaults!
+
** no-holes
+
** free-space-tree
+
** DUP for metadata unconditionally
+
* libbtrfsutil: add missing profile defines
+
* libbtrfs: minimize its impact on the other code, refactor and separate implementation where needed, cleanup afterwards, reduced header exports
+
* documentation: introduce sphinx build and RST versions of manual pages, will become the new format and replace asciidoc
+
* fixes: fix warning regarding v1 space cache when only v2 (free space tree) is enabled
+
 
+
''' linux v5.15 (Nov 2021) '''
+
 
+
Features:
+
 
+
* fs-verity support, using standard ioctls, backward compatible with read-only limitation on inodes with previously enabled fs-verity
+
* idmapped mount support
+
* make mount with rescue=ibadroots more tolerant to partially damaged trees
+
* allow raid0 on a single device and raid10 on two devices, degenerate cases but might be useful as an intermediate step during conversion to other profiles
+
* zoned mode block group auto reclaim can be disabled via sysfs knob
+
  
Performance improvements:
+
''' btrfs-progs v6.0 (Oct 2022) '''
 +
* Please see the release notes at [https://btrfs.readthedocs.io/en/latest/CHANGES.html#btrfs-progs-6-0-2022-10-11 readthedocs.io]
  
* continue readahead of node siblings even if target node is in memory, could speed up full send (on sample test +11%)
+
''' linux v6.0 (Oct 2022) '''
* batching of delayed items can speed up creating many files
+
* fsync/tree-log speedups
+
** avoid unnecessary work (gains +2% throughput, -2% run time on sample load)
+
** reduced lock contention on renames (on dbench +4% throughput, up to -30% latency)
+
  
Fixes:
+
''' linux v5.19 (Aug 2022) '''
  
* various zoned mode fixes
+
''' linux v5.18 (Jun 2022) '''
* preemptive flushing threshold tuning, avoid excessive work on almost full filesystems
+
  
Core:
+
''' util-linux v2.38 (Apr 2022) '''
  
* continued subpage support, preparation for implementing remaining features like compression and defragmentation; with some limitations, write is now enabled on 64K page systems with 4K sectors, still considered experimental
+
blk* utilities and libraries finally recognize btrfs formatted with zoned mode
** no readahead on compressed reads
+
** inline extents disabled
+
** disabled raid56 profile conversion and mount
+
* improved flushing logic, fixing early ENOSPC on some workloads
+
* inode flags have been internally split to read-only and read-write incompat bit parts, used by fs-verity
+
* new tree items for fs-verity: descriptor item, Merkle tree item
+
* inode operations extended to be namespace-aware
+
* cleanups and refactoring
+
  
 
</div>
 
</div>
Line 216: Line 166:
 
== Changelog ==
 
== Changelog ==
  
Read about past releases in the separate [[Changelog]] page
+
Changelogs and other related information are also tracked at https://btrfs.readthedocs.io:
  
* [[Changelog#By_feature|features by kernel version]]
+
* features by kernel version https://btrfs.readthedocs.io/en/latest/Feature-by-version.html
 
* [[Changelog#By_version_.28linux_kernel.29|kernel changes for each release]]
 
* [[Changelog#By_version_.28linux_kernel.29|kernel changes for each release]]
* [[Changelog#By_version_.28btrfs-progs.29|btrfs-progs changes for each release]]
+
* btrfs-progs changes for each release https://btrfs.readthedocs.io/en/latest/CHANGES.html
 
</div>
 
</div>
  
 
<!-- Source code Block -->
 
<!-- Source code Block -->
 
<div style="margin:0; margin-top:10px; border:1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#dfefdf; align:left; margin-top:10px">
 
<div style="margin:0; margin-top:10px; border:1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#dfefdf; align:left; margin-top:10px">
 +
 
== Source code download ==
 
== Source code download ==
  
Line 262: Line 213:
 
=== Articles, presentations, podcasts ===
 
=== Articles, presentations, podcasts ===
  
 +
* [http://marc.merlins.org/perso/btrfs/post_2014-05-21_My-Btrfs-Talk-at-Linuxcon-JP-2014.html Marc MERLIN's Btrfs talk at Linuxcon JP 2014] which gives an overview of Btrfs, best practices, and its more interesting features.
 
* '''Article:''' [http://www.howtoforge.com/a-beginners-guide-to-btrfs A Beginner's Guide To Btrfs] (2012-11-26)
 
* '''Article:''' [http://www.howtoforge.com/a-beginners-guide-to-btrfs A Beginner's Guide To Btrfs] (2012-11-26)
 
* '''Article:''' [http://www.oracle.com/technetwork/articles/servers-storage-admin/advanced-btrfs-1734952.html How I Use the Advanced Capabilities of Btrfs] by Margaret Bierman with Lenz Grimmer (2012-08-11)
 
* '''Article:''' [http://www.oracle.com/technetwork/articles/servers-storage-admin/advanced-btrfs-1734952.html How I Use the Advanced Capabilities of Btrfs] by Margaret Bierman with Lenz Grimmer (2012-08-11)
Line 278: Line 230:
 
<!-- Project Block -->
 
<!-- Project Block -->
 
<div style="margin:0; margin-top:10px; border:1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#dfefdf; align:left; margin-top:10px">
 
<div style="margin:0; margin-top:10px; border:1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#dfefdf; align:left; margin-top:10px">
 +
 
== Project information/Contact ==
 
== Project information/Contact ==
  
* [[Changelog]] history of changes in linux kernel wrt btrfs
+
* Development statistics, contributors, commits https://btrfs.readthedocs.io/en/latest/Contributors.html#statistics-for-5-x-series
** [[Changelog#By_feature | features added by release]]
+
* [https://btrfs.readthedocs.io/en/latest/Glossary.html Glossary]
* [[Contributors#Statistics_for_5.x_series|Development statistics]] — contributors, commits, lines
+
* [[Glossary]]
+
 
* Contact information:
 
* Contact information:
 
** [[Btrfs mailing list]]
 
** [[Btrfs mailing list]]
** [http://en.wikipedia.org/wiki/Internet_Relay_Chat IRC] on [https://libera.chat libera.chat] in the channel [irc://irc.libera.chat:6667/btrfs #btrfs]
+
** [http://en.wikipedia.org/wiki/Internet_Relay_Chat IRC] on [https://libera.chat libera.chat] in the channel [irc://irc.libera.chat:6667/btrfs #btrfs], matrix.org bridge works (persistent room #btrfs:matrix.org)
 
** Reporting bugs:
 
** Reporting bugs:
 
*** for kernel code see [[Problem_FAQ#How_do_I_report_bugs_and_issues.3F | the Bugzilla FAQ]], quick tip: use product ''File System'' and component ''btrfs''.
 
*** for kernel code see [[Problem_FAQ#How_do_I_report_bugs_and_issues.3F | the Bugzilla FAQ]], quick tip: use product ''File System'' and component ''btrfs''.
*** for btrfs-progs it's either bugzilla or [https://github.com/kdave/btrfs-progs/issues/ github issues]
+
*** for btrfs-progs please use [https://github.com/kdave/btrfs-progs/issues/ github issues] (and not kernel.org bugzilla anymore)
*** for read-only documentation exported on wiki eg. manual pages as [https://github.com/kdave/btrfs-progs/issues/ github issues]
+
*** for documentation please use [https://github.com/kdave/btrfs-progs/issues/ github issues] -- report unclear wording, typos, suggest examples, formatting
 
* [[Project ideas]]
 
* [[Project ideas]]
 
* [[Project_ideas#Cleanup_projects|Cleanup ideas]]
 
* [[Project_ideas#Cleanup_projects|Cleanup ideas]]
Line 301: Line 252:
 
== Wiki accounts, editing ==
 
== Wiki accounts, editing ==
  
The wiki contributions are welcome! Please create an account and wait for approval (this is a necessary spam protection and we cannot remove it). You can try to catch some of the wiki admins on [[#Project_information.2FContact|IRC]] (or ping user 'kdave' in a query) to expedite the account creation.
+
The wiki is still in use, however the main portion of documenation is being migrated to https://btrfs.readthedocs.io.
 +
 
 +
Wiki edits and fixups are welcome and may be copied to the RTD documentation eventually. Please create an account and wait for approval (this is a necessary spam protection and we cannot remove it). You can try to catch some of the wiki admins on [[#Project_information.2FContact|IRC]] (or ping user 'kdave' in a query) to expedite the account creation.
  
 
The registration requires full name for account but it's not mandatory from our perspective. The wiki User and User talk pages are created automatically but removed after account is approved. If you want to use the pages, create them manually, they won't be deleted.
 
The registration requires full name for account but it's not mandatory from our perspective. The wiki User and User talk pages are created automatically but removed after account is approved. If you want to use the pages, create them manually, they won't be deleted.

Latest revision as of 16:57, 24 November 2022

btrfs

btrfs is a modern copy on write (CoW) filesystem for Linux aimed at implementing advanced features while also focusing on fault tolerance, repair and easy administration. Its main features and benefits are:

  • Snapshots which do not make the full copy of files
  • RAID - support for software-based RAID 0, RAID 1, RAID 10
  • Self-healing - checksums for data and metadata, automatic detection of silent data corruptions

Development of Btrfs started in 2007. Since that time, Btrfs is a part of the Linux kernel and is under active development.

Jointly developed by multiple companies (https://btrfs.readthedocs.io/en/latest/Contributors.html, Btrfs is licensed under the GPL and open for contribution from anyone.

List of companies using btrfs in production.

[edit] Development and Issue Reporting

For feature status, please refer to the Status page.

The Btrfs code base is stable. However, new features are still under development. Every effort is made to ensure that it remains stable and fast at each and every commit. This rapid pace of development means that the filesystem improves noticeably with every new Linux release so it's highly recommended that users run the most modern kernel possible.

For benchmarks, it's recommended to test the latest stable Linux version, and not any older, as well as the latest Linux development versions. Also, it's recommended to test the various mount options such as different compression options.

If you find any behavior you suspect to be caused by a bug, performance issues, or have any questions about using Btrfs, please email the Btrfs mailing list (no subscription required). Please report bugs on Bugzilla.

[edit] Features

Linux has a wealth of filesystems from which to choose, but we are facing a number of challenges with scaling to the large storage subsystems that are becoming common in today's data centers. Filesystems need to scale in their ability to address and manage large storage, and also in their ability to detect, repair and tolerate errors in the data stored on disk.

[edit] Major Features Currently Implemented

  • Extent based file storage
  • 2^64 byte == 16 EiB maximum file size (practical limit is 8 EiB due to Linux VFS)
  • Space-efficient packing of small files
  • Space-efficient indexed directories
  • Dynamic inode allocation
  • Writable snapshots, read-only snapshots
  • Subvolumes (separate internal filesystem roots)
  • Checksums on data and metadata (crc32c, xxhash, sha256, blake2b)
  • Compression (ZLIB, LZO, ZSTD), heuristics
  • Integrated multiple device support
    • File Striping
    • File Mirroring
    • File Striping+Mirroring
    • Single and Dual Parity implementations (experimental, not production-ready)
  • SSD (flash storage) awareness
    • TRIM/Discard for reporting free blocks for reuse
    • Optimizations (e.g. avoiding unnecessary seek optimizations, sending writes in clusters, even if they are from unrelated files. This results in larger write operations and faster write throughput)
  • Background scrub process for finding and repairing errors of files with redundant copies
  • Online filesystem defragmentation
  • Offline filesystem check
  • In-place conversion of existing ext2/3/4 and reiserfs file systems
  • Seeding devices. Create a (readonly) filesystem that acts as a template to seed other Btrfs filesystems. The original filesystem and devices are included as a readonly starting point for the new filesystem. Using copy on write, all modifications are stored on different devices; the original is unchanged.
  • Subvolume-aware quota support
  • Send/receive of subvolume changes, efficient incremental filesystem mirroring and backup
  • Batch, or out-of-band deduplication (happens after writes, not during)
  • Swapfile support
  • Tree-checker, post-read and pre-write metadata verification
  • Zoned mode support (SMR/ZBC/ZNS friendly allocation)
  • fsverity integration

[edit] Features by kernel version

[edit] Documentation

[edit] Documentation

[edit] Guides and usage information

[edit] Manual pages

  • Original wiki documentation (obsolete, will be removed)

[edit] Developer documentation

  • Development setup - how to build btrfs from sources and prepare a development environment
  • Original COW B-tree: Source code in C that implements the COW B-tree algorithms repository. Written by Ohad Rodeh at IBM Research in 2006, and released under a BSD license. This is a reference implementation, that works in user space.

[edit] News

btrfs-progs v6.0.2 (Nov 2022)

btrfs-progs v6.0 (Oct 2022)

linux v6.0 (Oct 2022)

linux v5.19 (Aug 2022)

linux v5.18 (Jun 2022)

util-linux v2.38 (Apr 2022)

blk* utilities and libraries finally recognize btrfs formatted with zoned mode

[edit] Changelog

Changelogs and other related information are also tracked at https://btrfs.readthedocs.io:

[edit] Source code download

Btrfs source repositories describes purpose and contents, here are a few quick links:

[edit] Articles, presentations, podcasts

[edit] Historical resources

Links to old or obsolete documentation, articles. Kept for historical reasons. Stuff that's more than 3 years old.

[edit] Articles, presentations, podcasts

[edit] Project information/Contact

[edit] Wiki accounts, editing

The wiki is still in use, however the main portion of documenation is being migrated to https://btrfs.readthedocs.io.

Wiki edits and fixups are welcome and may be copied to the RTD documentation eventually. Please create an account and wait for approval (this is a necessary spam protection and we cannot remove it). You can try to catch some of the wiki admins on IRC (or ping user 'kdave' in a query) to expedite the account creation.

The registration requires full name for account but it's not mandatory from our perspective. The wiki User and User talk pages are created automatically but removed after account is approved. If you want to use the pages, create them manually, they won't be deleted.

Personal tools