Main Page

From btrfs Wiki
(Difference between revisions)
Jump to: navigation, search
(News and Changelog: progs 4.17)
(News and Changelog: progs 4.17.1)
Line 65: Line 65:
== News and Changelog ==
== News and Changelog ==
''' btrfs-progs v4.17 (Jun 2018) '''
''' btrfs-progs v4.17.1 (Aug 2018) '''
* check
* check:                                                                                                                                         
** many lowmem mode improvements
** add ability to fix wrong ram_bytes for compressed inline files                                                                                 
** properly report qgroup mismatch errors
** beautify progress output                                                                                                                       
** check symlinks with append/immutable flags
* btrfstune: allow to continue uuid change after unclean interruption                                                                             
* fi usage
* several fuzz fixes:                                                                                                                             
** correctly calculate allocated/unallocated for raid10
** detect overalpping chunks                                                                                                                     
** minor output updates
** chunk loading error handling                                                                                                                   
* mkfs
** don't crash with unexpected root refs to extents                                                                                               
** detect ENOSPC on thinly provisioned devices
* relax option parsing again to allow mixing options and non-options arguments                                                                   
** fix spurious EEXIST during directory traversal
* fix qgroup rescan status reporting                                                                                                             
* restore: fix relative path for restore target
* build:                                                                                                                                          
* dump-tree: print symbolic tree names for backrefs
** drop obsolete dir-test                                                                                                                         
* send: fix regression preventing send -p with subvolumes mounted on "/"
** new configure option to disable building of tools                                                                                             
* corrupt-tree: refactoring and command line updates
** add compatibility options --disable-static and --disable-shared                                                                               
* build
* other:                                                                                                                                         
** make it work with e2fsprogs < 1.42 again
** cleanups and preparatory work                                                                                                                  
** restore support for autoconf 2.63
** new test images
** detect if -std=gnu90 is supported
* other: new tests, cleanups
''' Linux v4.17 (Jun 2018) '''
''' Linux v4.17 (Jun 2018) '''

Revision as of 14:17, 6 August 2018

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. Jointly developed at multiple companies, Btrfs is licensed under the GPL and open for contribution from anyone. Not too many companies have said that they are using Btrfs in production, but we welcome those who can say so on the production users page.


Stability status

For a feature status and stability please refer to the Status page. The filesystem disk format is stable; this means it is not expected to change unless there are very strong reasons to do so. If there is a format change, filesystems which implement the previous disk format will continue to be mountable and usable by newer kernels.

The Btrfs code base is under heavy development. Not only is every effort being made to ensure that it remains stable and fast but to make it more so with 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.

As with all software, newly added features may need a few releases to stabilize.

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.


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.

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)
  • 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) 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)
  • Efficient incremental backup
  • 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
  • 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.
  • Subvolume-aware quota support
  • Send/receive of subvolume changes
    • Efficient incremental filesystem mirroring
  • Batch, or out-of-band deduplication (happens after writes, not during)

Features by kernel version

As part of the changelog you can also review

Features Currently in Development or Planned for Future Implementation

  • Online filesystem check
  • Object-level mirroring and striping
  • Alternative checksum algorithms
  • In-band deduplication (happes during writes)
  • Hot data tracking and moving to faster devices (or provided on the generic VFS layer)
  • SMR support
  • DAX/persistent memory support
  • The file/directory -level encryption support (fscrypt)

News and Changelog

btrfs-progs v4.17.1 (Aug 2018)

  • check:
    • add ability to fix wrong ram_bytes for compressed inline files
    • beautify progress output
  • btrfstune: allow to continue uuid change after unclean interruption
  • several fuzz fixes:
    • detect overalpping chunks
    • chunk loading error handling
    • don't crash with unexpected root refs to extents
  • relax option parsing again to allow mixing options and non-options arguments
  • fix qgroup rescan status reporting
  • build:
    • drop obsolete dir-test
    • new configure option to disable building of tools
    • add compatibility options --disable-static and --disable-shared
  • other:
    • cleanups and preparatory work
    • new test images

Linux v4.17 (Jun 2018)

  • mount options: new nossd_spread; subvolid will detect junk after the number and fail the mount
  • add message after cancelled device replace
  • direct module dependency on libcrc32, removed own crc wrappers
  • removed user space transaction ioctls
  • use lighter locking when reading /proc/self/mounts (RCU)
  • skip writeback of last page when truncating file to same size
  • send: do not issue unnecessary truncate operations
  • selftests: more tree block validation
  • fix fsync after hole punching when using no-holes feature
  • raid56:
    • make sure target is identical to source when raid56 rebuild fails after dev-replace
    • faster rebuild during scrub, batch by stripes and not block-by-block
    • make more use of cached data when rebuilding from a missing device
  • pull request

Read about past releases in the Changelog


Guides and usage information

External Btrfs Documentation / Guides

Links to Btrfs documentation of various Linux distributions:

Project information/Contact

Manual pages

  • Original wiki documentation (obsolete, will be removed)

Developer documentation

  • 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)
  • Code documentation — trees, source files, sample code for manipulating trees
  • Data Structures — detailed on-disk data structures
  • Trees — detailed in-tree representation of files and directories
  • 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.
  • Unmerged features
    • In-band (write) time deduplication

Source code download

Wiki editing

The wiki contributions are welcome! Please create an account and wait for approval (this is a necessary spam protection). You can try to catch some of the wiki admins on IRC and expedite the account creation.

Articles, presentations, podcasts

Historical resources

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

Articles, presentations, podcasts


Personal tools