Btrfs
Developer(s) | SUSE, Meta, Western Digital, Oracle Corporation, Fujitsu, Fusion-io, Intel, The Linux Foundation, Red Hat, and Strato AG[1] |
---|---|
Full name | B-tree file system |
Introduced | March 23, 2009 | with Linux kernel 2.6.29
Partition identifier | |
Structures | |
Directory contents | B-tree |
File allocation | Extents |
Bad blocks | None recorded |
Limits | |
Max. volume size | 16 EiB[3][lower-alpha 1] |
Max. file size | 16 EiB[3][lower-alpha 1] |
Max. number of files | 264[lower-alpha 2][4] |
Max. filename length | 255 ASCII characters (fewer for multibyte character encodings such as Unicode) |
Allowed characters in filenames | All except '/' and NUL ('\0' ) |
Features | |
Dates recorded | Creation (otime),[5] modification (mtime), attribute modification (ctime), and access (atime) |
Date range | 64-bit signed int offset from 1970-01-01T00:00:00Z[6] |
Date resolution | Nanosecond |
Attributes | POSIX and extended attributes |
File system permissions | Unix permissions, POSIX ACLs |
Transparent compression | Yes (zlib, LZO[7] and (since 4.14) ZSTD[8]) |
Transparent encryption | Planned[9] |
Data deduplication | Yes[10] |
Copy-on-write | Yes |
Other | |
Supported operating systems | Linux, ReactOS[11] |
Website | {{{1}}} |
Btrfs (pronounced as "better F S",[9] "butter F S",[12][13] "b-tree F S",[13] or B.T.R.F.S.) is a computer storage format that combines a file system based on the copy-on-write (COW) principle with a logical volume manager (not to be confused with Linux's LVM), developed together. It was founded by Chris Mason in 2007[14] for use in Linux, and since November 2013, the file system's on-disk format has been declared stable in the Linux kernel.[15]
Btrfs is intended to address the lack of pooling, snapshots, checksums, and integral multi-device spanning in Linux file systems.[9] Chris Mason, the principal Btrfs author, stated that its goal was "to let [Linux] scale for the storage that will be available. Scaling is not just about addressing the storage but also means being able to administer and to manage it with a clean interface that lets people see what's being used and makes it more reliable".[16]
History
The core data structure of Btrfs—the copy-on-write B-tree—was originally proposed by IBM researcher Ohad Rodeh at a presentation at USENIX 2007.[17] Chris Mason, an engineer working on ReiserFS for SUSE at the time, joined Oracle later that year and began work on a new file system based on these B-trees.[18]
In 2008, the principal developer of the ext3 and ext4 file systems, Theodore Ts'o, stated that although ext4 has improved features, it is not a major advance; it uses old technology and is a stop-gap. Ts'o said that Btrfs is the better direction because "it offers improvements in scalability, reliability, and ease of management".[19] Btrfs also has "a number of the same design ideas that reiser3/4 had".[20]
Btrfs 1.0, with finalized on-disk format, was originally slated for a late-2008 release,[21] and was finally accepted into the Linux kernel mainline in 2009.[22] Several Linux distributions began offering Btrfs as an experimental choice of root file system during installation.[23][24][25]
In July 2011, Btrfs automatic defragmentation and scrubbing features were merged into version 3.0 of the Linux kernel mainline.[26] Besides Mason at Oracle, Miao Xie at Fujitsu contributed performance improvements.[27] In June 2012, Chris Mason left Oracle for Fusion-io, which he left a year later with Josef Bacik to join Facebook. While at both companies, Mason continued his work on Btrfs.[28][18]
In 2012, two Linux distributions moved Btrfs from experimental to production or supported status: Oracle Linux in March,[29] followed by SUSE Linux Enterprise in August.[30]
In 2015, Btrfs was adopted as the default filesystem for SUSE Linux Enterprise Server (SLE) 12.[31]
In August 2017, Red Hat announced in the release notes for Red Hat Enterprise Linux (RHEL) 7.4 that it no longer planned to move Btrfs to a fully supported feature (it's been included as a "technology preview" since RHEL 6 beta) noting that it would remain available in the RHEL 7 release series.[32] Btrfs was removed from RHEL 8 in May 2019.[33] RHEL moved from ext4 in RHEL 6 to XFS in RHEL 7.[34]
In 2020, Btrfs was selected as the default file system for Fedora 33 for desktop variants.[35]
Features
List of features
Implemented
As of version 5.0 of the Linux kernel, Btrfs implements the following features:[36][37]
- Mostly self-healing in some configurations due to the nature of copy-on-write
- Online defragmentation and an autodefrag mount option[26]
- Online volume growth and shrinking
- Online block device addition and removal
- Online balancing (movement of objects between block devices to balance load)
- Offline filesystem check[38]
- Online data scrubbing for finding errors and automatically fixing them for files with redundant copies
- RAID 0, RAID 1, and RAID 10[39]
- Subvolumes (one or more separately mountable filesystem roots within each disk partition)
- Transparent compression via zlib, LZO[7] and (since 4.14) ZSTD,[8] configurable per file or volume[40][41]
- Atomic writable (via copy-on-write) or read-only[42] snapshots of subvolumes
- File cloning (reflink, copy-on-write) via
cp --reflink <source file> <destination file>
[43] - Checksums on data and metadata (CRC-32C[44]). New hash functions are implemented since 5.5:[45] xxHash, SHA256, BLAKE2B.
- In-place conversion from ext3/4 to Btrfs (with rollback). This feature regressed around btrfs-progs version 4.0, rewritten from scratch in 4.6.[46]
- Union mounting of read-only storage, known as file system seeding (read-only storage used as a copy-on-write backing for a writable Btrfs)[47]
- Block discard (reclaims space on some virtualized setups and improves wear leveling on SSDs with TRIM)
- Send/receive (saving diffs between snapshots to a binary stream)[48]
- Incremental backup[49]
- Out-of-band data deduplication (requires userspace tools)[10]
- Ability to handle swap files and swap partitions
Implemented but not recommended for production use
- Hierarchical per-subvolume quotas[50]
- RAID 5, RAID 6 (fail to guard against write holes)[51][52][53]
Cloning
Btrfs provides a clone operation that atomically creates a copy-on-write snapshot of a file. Such cloned files are sometimes referred to as reflinks, in light of the proposed associated Linux kernel system call.[54]
By cloning, the file system does not create a new link pointing to an existing inode; instead, it creates a new inode that initially shares the same disk blocks with the original file. As a result, cloning works only within the boundaries of the same Btrfs file system, but since version 3.6 of the Linux kernel it may cross the boundaries of subvolumes under certain circumstances.[55][56] The actual data blocks are not duplicated; at the same time, due to the copy-on-write (CoW) nature of Btrfs, modifications to any of the cloned files are not visible in the original file and vice versa.[57]
Cloning should not be confused with hard links, which are directory entries that associate multiple file names with a single file. While hard links can be taken as different names for the same file, cloning in Btrfs provides independent files that initially share all their disk blocks.[57][58]
Support for this Btrfs feature was added in version 7.5 of the GNU coreutils, via the --reflink
option to the cp
command.[59][60]
In addition to data cloning (FICLONE), Btrfs also supports out-of-band deduplication via FIDEDUPERANGE. This functionality allows two files with (even partially) identical data to share storage.[61][10]
Subvolumes and snapshots
A Btrfs subvolume can be thought of as a separate POSIX file namespace, mountable separately by passing subvol
or subvolid
options to the utility. It can also be accessed by mounting the top-level subvolume, in which case subvolumes are visible and accessible as its subdirectories.[62]
Subvolumes can be created at any place within the file system hierarchy, and they can also be nested. Nested subvolumes appear as subdirectories within their parent subvolumes, similarly to the way a top-level subvolume presents its subvolumes as subdirectories. Deleting a subvolume is not possible until all subvolumes below it in the nesting hierarchy are deleted; as a result, top-level subvolumes cannot be deleted.[63]
Any Btrfs file system always has a default subvolume, which is initially set to be the top-level subvolume, and is mounted by default if no subvolume selection option is passed to mount
. The default subvolume can be changed as required.[63]
A Btrfs snapshot is a subvolume that shares its data (and metadata) with some other subvolume, using Btrfs' copy-on-write capabilities, and modifications to a snapshot are not visible in the original subvolume. Once a writable snapshot is made, it can be treated as an alternate version of the original file system. For example, to roll back to a snapshot, a modified original subvolume needs to be unmounted and the snapshot needs to be mounted in its place. At that point, the original subvolume may also be deleted.[62]
The copy-on-write (CoW) nature of Btrfs means that snapshots are quickly created, while initially consuming very little disk space. Since a snapshot is a subvolume, creating nested snapshots is also possible. Taking snapshots of a subvolume is not a recursive process; thus, if a snapshot of a subvolume is created, every subvolume or snapshot that the subvolume already contains is mapped to an empty directory of the same name inside the snapshot.[62][63]
Taking snapshots of a directory is not possible, as only subvolumes can have snapshots. However, there is a workaround that involves reflinks spread across subvolumes: a new subvolume is created, containing cross-subvolume reflinks to the content of the targeted directory. Having that available, a snapshot of this new volume can be created.[55]
A subvolume in Btrfs is quite different from a traditional Logical Volume Manager (LVM) logical volume. With LVM, a logical volume is a separate block device, while a Btrfs subvolume is not and it cannot be treated or used that way.[62] Making dd or LVM snapshots of btrfs leads to data loss if either the original or the copy is mounted while both are on the same computer.[64]
Send–receive
Given any pair of subvolumes (or snapshots), Btrfs can generate a binary diff between them (by using the btrfs send
command) that can be replayed later (by using btrfs receive
), possibly on a different Btrfs file system. The send–receive feature effectively creates (and applies) a set of data modifications required for converting one subvolume into another.[48][65]
The send/receive feature can be used with regularly scheduled snapshots for implementing a simple form of file system replication, or for the purpose of performing incremental backups.[48][65]
Quota groups
A quota group (or qgroup) imposes an upper limit to the space a subvolume or snapshot may consume. A new snapshot initially consumes no quota because its data is shared with its parent, but thereafter incurs a charge for new files and copy-on-write operations on existing files. When quotas are active, a quota group is automatically created with each new subvolume or snapshot. These initial quota groups are building blocks which can be grouped (with the btrfs qgroup
command) into hierarchies to implement quota pools.[50]
Quota groups only apply to subvolumes and snapshots, while having quotas enforced on individual subdirectories, users, or user groups is not possible. However, workarounds are possible by using different subvolumes for all users or user groups that require a quota to be enforced.
In-place conversion from ext2/3/4 and ReiserFS
As the result of having very little metadata anchored in fixed locations, Btrfs can warp to fit unusual spatial layouts of the backend storage devices. The btrfs-convert
tool exploits this ability to do an in-place conversion of an ext2/3/4 or ReiserFS file system, by nesting the equivalent Btrfs metadata in its unallocated space—while preserving an unmodified copy of the original file system.[66]
The conversion involves creating a copy of the whole ext2/3/4 metadata, while the Btrfs files simply point to the same blocks used by the ext2/3/4 files. This makes the bulk of the blocks shared between the two filesystems before the conversion becomes permanent. Thanks to the copy-on-write nature of Btrfs, the original versions of the file data blocks are preserved during all file modifications. Until the conversion becomes permanent, only the blocks that were marked as free in ext2/3/4 are used to hold new Btrfs modifications, meaning that the conversion can be undone at any time (although doing so will erase any changes made after the conversion to Btrfs).[66]
All converted files are available and writable in the default subvolume of the Btrfs. A sparse file holding all of the references to the original ext2/3/4 filesystem is created in a separate subvolume, which is mountable on its own as a read-only disk image, allowing both original and converted file systems to be accessed at the same time. Deleting this sparse file frees up the space and makes the conversion permanent.[66]
In 4.x versions of the mainline Linux kernel, the in-place ext3/4 conversion was considered untested and rarely used.[66] However, the feature was rewritten from scratch in 2016 for btrfs-progs
4.6.[46] and has been considered stable since then.
In-place conversion from ReiserFS was introduced in September 2017 with kernel 4.13.[67]
Union mounting / seed devices
When creating a new Btrfs, an existing Btrfs can be used as a read-only "seed" file system.[68] The new file system will then act as a copy-on-write overlay on the seed, as a form of union mounting. The seed can be later detached from the Btrfs, at which point the rebalancer will simply copy over any seed data still referenced by the new file system before detaching. Mason has suggested this may be useful for a Live CD installer, which might boot from a read-only Btrfs seed on an optical disc, rebalance itself to the target partition on the install disk in the background while the user continues to work, then eject the disc to complete the installation without rebooting.[69]
Encryption
In his 2009 interview, Chris Mason stated that support for encryption was planned for Btrfs.[70] In the meantime, a workaround for combining encryption with Btrfs is to use a full-disk encryption mechanism such as dm-crypt / LUKS on the underlying devices and to create the Btrfs filesystem on top of that layer.
(As of 2020) the developers were working to add keyed hash like HMAC (SHA256).[71]
Checking and recovery
Unix systems traditionally rely on "fsck" programs to check and repair filesystems. This functionality is implemented via the btrfs check
program. Since version 4.0 this functionality is deemed relatively stable. However, as of December 2022, the btrfs documentation suggests that its --repair
option be used only if you have been advised by "a developer or an experienced user".[72] As of August 2022, the SLE documentation recommends using a Live CD, performing a backup and only using the repair option as a last resort.[73]
There is another tool, named btrfs-restore
, that can be used to recover files from an unmountable filesystem, without modifying the broken filesystem itself (i.e., non-destructively).[74][75]
In normal use, Btrfs is mostly self-healing and can recover from broken root trees at mount time, thanks to making periodic data flushes to permanent storage, by default every 30 seconds. Thus, isolated errors will cause a maximum of 30 seconds of filesystem changes to be lost at the next mount.[76] This period can be changed by specifying a desired value (in seconds) with the commit
mount option.[77][78]
Design
Ohad Rodeh's original proposal at USENIX 2007 noted that B+ trees, which are widely used as on-disk data structures for databases, could not efficiently allow copy-on-write-based snapshots because its leaf nodes were linked together: if a leaf was copied on write, its siblings and parents would have to be as well, as would their siblings and parents and so on until the entire tree was copied. He suggested instead a modified B-tree (which has no leaf linkage), with a refcount associated to each tree node but stored in an ad hoc free map structure and certain relaxations to the tree's balancing algorithms to make them copy-on-write friendly. The result would be a data structure suitable for a high-performance object store that could perform copy-on-write snapshots, while maintaining good concurrency.[17]
At Oracle later that year, Chris Mason began work on a snapshot-capable file system that would use this data structure almost exclusively—not just for metadata and file data, but also recursively to track space allocation of the trees themselves. This allowed all traversal and modifications to be funneled through a single code path, against which features such as copy on write, checksumming and mirroring needed to be implemented only once to benefit the entire file system.[79]
Btrfs is structured as several layers of such trees, all using the same B-tree implementation. The trees store generic items sorted by a 136-bit key. The most significant 64 bits of the key are a unique object id. The middle eight bits are an item type field: its use is hardwired into code as an item filter in tree lookups. Objects can have multiple items of multiple types. The remaining (least significant) 64 bits are used in type-specific ways. Therefore, items for the same object end up adjacent to each other in the tree, grouped by type. By choosing certain key values, objects can further put items of the same type in a particular order.[79][4]
Interior tree nodes are simply flat lists of key-pointer pairs, where the pointer is the logical block number of a child node. Leaf nodes contain item keys packed into the front of the node and item data packed into the end, with the two growing toward each other as the leaf fills up.[79]
File system tree
Within each directory, directory entries appear as directory items, whose least significant bits of key values are a CRC32C hash of their filename. Their data is a location key, or the key of the inode item it points to. Directory items together can thus act as an index for path-to-inode lookups, but are not used for iteration because they are sorted by their hash, effectively randomly permuting them. This means user applications iterating over and opening files in a large directory would thus generate many more disk seeks between non-adjacent files—a notable performance drain in other file systems with hash-ordered directories such as ReiserFS,[80] ext3 (with Htree-indexes enabled[81]) and ext4, all of which have TEA-hashed filenames. To avoid this, each directory entry has a directory index item, whose key value of the item is set to a per-directory counter that increments with each new directory entry. Iteration over these index items thus returns entries in roughly the same order as stored on disk.
Files with hard links in multiple directories have multiple reference items, one for each parent directory. Files with multiple hard links in the same directory pack all of the links' filenames into the same reference item. This was a design flaw that limited the number of same-directory hard links to however many could fit in a single tree block. (On the default block size of 4 KiB, an average filename length of 8 bytes and a per-filename header of 4 bytes, this would be less than 350.) Applications which made heavy use of multiple same-directory hard links, such as git, GNUS, GMame and BackupPC were observed to fail at this limit.[82] The limit was eventually removed[83] (and as of October 2012 has been merged[84] pending release in Linux 3.7) by introducing spillover extended reference items to hold hard link filenames which do not otherwise fit.
Extents
File data is kept outside the tree in extents, which are contiguous runs of disk data blocks. Extent blocks default to 4 KiB in size, do not have headers and contain only (possibly compressed) file data. In compressed extents, individual blocks are not compressed separately; rather, the compression stream spans the entire extent.
Files have extent data items to track the extents which hold their contents. The item's key value is the starting byte offset of the extent. This makes for efficient seeks in large files with many extents, because the correct extent for any given file offset can be computed with just one tree lookup.
Snapshots and cloned files share extents. When a small part of a large such extent is overwritten, the resulting copy-on-write may create three new extents: a small one containing the overwritten data, and two large ones with unmodified data on either side of the overwrite. To avoid having to re-write unmodified data, the copy-on-write may instead create bookend extents, or extents which are simply slices of existing extents. Extent data items allow for this by including an offset into the extent they are tracking: items for bookends are those with non-zero offsets.[4]
Extent allocation tree
The extent allocation tree acts as an allocation map for the file system. Unlike other trees, items in this tree do not have object ids. They represent regions of space: their key values hold the starting offsets and lengths of the regions they represent.
The file system divides its allocated space into block groups which are variable-sized allocation regions that alternate between preferring metadata extents (tree nodes) and data extents (file contents). The default ratio of data to metadata block groups is 1:2. They are intended to use concepts of the Orlov block allocator to allocate related files together and resist fragmentation by leaving free space between groups. (Ext3 block groups, however, have fixed locations computed from the size of the file system, whereas those in Btrfs are dynamic and created as needed.) Each block group is associated with a block group item. Inode items in the file system tree include a reference to their current block group.[4]
Extent items contain a back-reference to the tree node or file occupying that extent. There may be multiple back-references if the extent is shared between snapshots. If there are too many back-references to fit in the item, they spill out into individual extent data reference items. Tree nodes, in turn, have back-references to their containing trees. This makes it possible to find which extents or tree nodes are in any region of space by doing a B-tree range lookup on a pair of offsets bracketing that region, then following the back-references. For relocating data, this allows an efficient upwards traversal from the relocated blocks to quickly find and fix all downwards references to those blocks, without having to scan the entire file system. This, in turn, allows the file system to efficiently shrink, migrate, and defragment its storage online.
The extent allocation tree, as with all other trees in the file system, is copy-on-write. Writes to the file system may thus cause a cascade whereby changed tree nodes and file data result in new extents being allocated, causing the extent tree itself to change. To avoid creating a feedback loop, extent tree nodes which are still in memory but not yet committed to disk may be updated in place to reflect new copied-on-write extents.
In theory, the extent allocation tree makes a conventional free-space bitmap unnecessary because the extent allocation tree acts as a B-tree version of a BSP tree. In practice, however, an in-memory red–black tree of page-sized bitmaps is used to speed up allocations. These bitmaps are persisted to disk (starting in Linux 2.6.37, via the space_cache
mount option[85]) as special extents that are exempt from checksumming and copy-on-write.
Checksum tree and scrubbing
CRC-32C checksums are computed for both data and metadata and stored as checksum items in a checksum tree. There is room for 256 bits of metadata checksums and up to a full node (roughly 4 KB or more) for data checksums. Btrfs has provisions for additional checksum algorithms to be added in future versions of the file system.[36][86]
There is one checksum item per contiguous run of allocated blocks, with per-block checksums packed end-to-end into the item data. If there are more checksums than can fit, they spill into another checksum item in a new leaf. If the file system detects a checksum mismatch while reading a block, it first tries to obtain (or create) a good copy of this block from another device – if internal mirroring or RAID techniques are in use.[87][88]
Btrfs can initiate an online check of the entire file system by triggering a file system scrub job that is performed in the background. The scrub job scans the entire file system for integrity and automatically attempts to report and repair any bad blocks it finds along the way.[87][89]
Log tree
An fsync request commits modified data immediately to stable storage. fsync-heavy workloads (like a database or a virtual machine whose running OS fsyncs frequently) could potentially generate a great deal of redundant write I/O by forcing the file system to repeatedly copy-on-write and flush frequently modified parts of trees to storage. To avoid this, a temporary per-subvolume log tree is created to journal fsync-triggered copies on write. Log trees are self-contained, tracking their own extents and keeping their own checksum items. Their items are replayed and deleted at the next full tree commit or (if there was a system crash) at the next remount.
Chunk and device trees
Block devices are divided into physical chunks of 1 GiB for data and 256 MiB for metadata.[90] Physical chunks across multiple devices can be mirrored or striped together into a single logical chunk. These logical chunks are combined into a single logical address space that the rest of the filesystem uses.
The chunk tree tracks this by storing each device therein as a device item and logical chunks as chunk map items, which provide a forward mapping from logical to physical addresses by storing their offsets in the least significant 64 bits of their key. Chunk map items can be one of several different types:
- single
- 1 logical to 1 physical chunk
- dup
- 1 logical chunk to 2 physical chunks on 1 block device
- raid0
- N logical chunks to N≥2 physical chunks across N≥2 block devices
- raid1
- 1 logical chunk to 2 physical chunks across 2 out of N≥2 block devices,[91] in contrast to conventional RAID 1 which has N physical chunks
- raid1c3
- 1 logical chunk to 3 physical chunks out of N≥3 block devices
- raid1c4
- 1 logical chunk to 4 physical chunks out of N≥4 block devices
- raid5
- N (for N≥2) logical chunks to N+1 physical chunks across N+1 block devices, with 1 physical chunk used as parity
- raid6
- N (for N≥2) logical chunks to N+2 physical chunks across N+2 block devices, with 2 physical chunks used as parity
N is the number of block devices still having free space when the chunk is allocated. If N is not large enough for the chosen mirroring/mapping, then the filesystem is effectively out of space.
Relocation trees
Defragmentation, shrinking, and rebalancing operations require extents to be relocated. However, doing a simple copy-on-write of the relocating extent will break sharing between snapshots and consume disk space. To preserve sharing, an update-and-swap algorithm is used, with a special relocation tree serving as scratch space for affected metadata. The extent to be relocated is first copied to its destination. Then, by following backreferences upward through the affected subvolume's file system tree, metadata pointing to the old extent is progressively updated to point at the new one; any newly updated items are stored in the relocation tree. Once the update is complete, items in the relocation tree are swapped with their counterparts in the affected subvolume, and the relocation tree is discarded.[92]
Superblock
All the file system's trees—including the chunk tree itself—are stored in chunks, creating a potential bootstrapping problem when mounting the file system. To bootstrap into a mount, a list of physical addresses of chunks belonging to the chunk and root trees are stored in the superblock.[93]
Superblock mirrors are kept at fixed locations:[94] 64 KiB into every block device, with additional copies at 64 MiB, 256 GiB and 1 PiB. When a superblock mirror is updated, its generation number is incremented. At mount time, the copy with the highest generation number is used. All superblock mirrors are updated in tandem, except in SSD mode which alternates updates among mirrors to provide some wear levelling.
Commercial support
Supported
- Oracle Linux from version 7[95][96]
- SUSE Linux Enterprise Server from version 12[97][98]
- Synology DiskStation Manager (DSM) from version 6.0[99]
No longer supported
- Btrfs was included as a "technology preview" in Red Hat Enterprise Linux 6 and 7;[23][32] it was removed in RHEL 8 in 2018.[33][100][101]
See also
- APFS – a copy-on-write file system for macOS, iPadOS, iOS, tvOS and watchOS
- Bcachefs
- Comparison of file systems
- HAMMER – DragonFly BSD's file system that uses B-trees, paired with checksums as a countermeasure for data corruption
- List of file systems
- ReFS – a copy-on-write file system for Windows Server 2012
- ZFS
Notes
- ↑ 1.0 1.1 This is the Btrfs' own on-disk size limit. The limit is reduced down to 8 EiB on 64-bit systems and 2 EiB on 32-bit systems due to Linux kernel's internal limits, unless kernel's
CONFIG_LBD
configuration option (available since the 2.6.x kernel series) is enabled to remove these kernel limits.[102][103] - ↑ Every item in Btrfs has a 64-bit identifier, which means the most files one can have on a Btrfs filesystem is 264.
References
- ↑ "Contributors at BTRFS documentation". kernel.org. 2022-06-15. https://btrfs.readthedocs.io/en/latest/Contributors.html.
- ↑ "GPT fdisk - ArchWiki". https://wiki.archlinux.org/index.php/GPT_fdisk.
- ↑ 3.0 3.1 "Suse Documentation: Storage Administration Guide – Large File Support in Linux". SUSE. https://www.suse.com/documentation/sles11/stor_admin/data/sec_filesystems_lfs.html.
- ↑ 4.0 4.1 4.2 4.3 Mason, Chris. "Btrfs design". Btrfs wiki. http://btrfs.wiki.kernel.org/articles/b/t/r/Btrfs_design.html.
- ↑ Jonathan Corbet (2010-07-26). "File creation times". LWN.net. https://lwn.net/Articles/397442/.
- ↑ "On-disk Format - btrfs Wiki". https://btrfs.wiki.kernel.org/index.php/On-disk_Format#Basic_Structures.
- ↑ 7.0 7.1 "btrfs Wiki". kernel.org. https://btrfs.wiki.kernel.org.
- ↑ 8.0 8.1 "Linux_4.14 - Linux Kernel Newbies". https://kernelnewbies.org/Linux_4.14.
- ↑ 9.0 9.1 9.2 McPherson, Amanda (22 June 2009). "A Conversation with Chris Mason on BTRfs: the next generation file system for Linux". Linux Foundation. http://www.linuxfoundation.org/news-media/blogs/browse/2009/06/conversation-chris-mason-btrfs-next-generation-file-system-linux.
- ↑ 10.0 10.1 10.2 "Deduplication". kernel.org. https://btrfs.readthedocs.io/en/latest/Deduplication.html.
- ↑ "ReactOS 0.4.1 Released". reactos.org. https://reactos.org/project-news/reactos-041-released.
- ↑ "Oracle Linux 7 Q&A with Wim Coekaerts". http://streaming.oracle.com/ebn/podcasts/media/20209545_Oracle-Linux-7.mp4.
- ↑ 13.0 13.1 Henson, Valerie (31 January 2008). Chunkfs: Fast file system check and repair. Melbourne, Australia. Event occurs at 18m 49s. Retrieved 2008-02-05.
It's called Butter FS or B-tree FS, but all the cool kids say Butter FS
- ↑ Salter, Jim (2021-09-24). "Examining btrfs, Linux's perpetually half-finished filesystem". https://arstechnica.com/gadgets/2021/09/examining-btrfs-linuxs-perpetually-half-finished-filesystem/. "Chris Mason is the founding developer of btrfs, which he began working on in 2007 while working at Oracle. This leads many people to believe that btrfs is an Oracle project—it is not. The project belonged to Mason, not to his employer, and it remains a community project unencumbered by corporate ownership to this day."
- ↑ "Linux kernel commit changing stability status in fs/btrfs/Kconfig". https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4204617d142c0887e45fda2562cb5c58097b918e.
- ↑ Kerner, Sean Michael (30 October 2008). "A Better File System for Linux?". http://www.internetnews.com/dev-news/article.php/3781676/A+Better+File+System+for+Linux.htm.
- ↑ 17.0 17.1 Rodeh, Ohad (2007). "B-trees, shadowing, and clones". USENIX Linux Storage & Filesystem Workshop. https://www.usenix.org/legacy/events/lsf07/tech/rodeh.pdf. Also Rodeh, Ohad (2008). "B-trees, shadowing, and clones". ACM Transactions on Storage 3 (4): 1–27. doi:10.1145/1326542.1326544.
- ↑ 18.0 18.1 "Lead Btrfs File-System Developers Join Facebook". phoronix.com. https://www.phoronix.com/scan.php?page=news_item&px=MTUzNTE.
- ↑ Paul, Ryan (13 April 2009). "Panelists ponder the kernel at Linux Collaboration Summit". https://arstechnica.com/open-source/news/2009/04/linux-collaboration-summit-the-kernel-panel.ars.
- ↑ Ts'o, Theodore (1 August 2008). "Re: reiser4 for 2.6.27-rc1". linux-kernel (Mailing list). Retrieved 2010-12-31.
- ↑ "Development timeline". Btrfs wiki. 11 December 2008. http://btrfs.wiki.kernel.org/index.php/Development_timeline.
- ↑ Wuelfing, Britta (12 January 2009). "Kernel 2.6.29: Corbet Says Btrfs Next Generation Filesystem". Linux Magazine. http://www.linux-magazine.com/Online/News/Kernel-2.6.29-Corbet-Says-Btrfs-Next-Generation-Filesystem.
- ↑ 23.0 23.1 "Red Hat Enterprise Linux 6 documentation: Technology Previews". http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Technical_Notes/storage.html#id4452791.
- ↑ "Fedora Weekly News Issue 276". 25 May 2011. http://fedoraproject.org/wiki/FWN/LatestIssue#What.27s_new_in_Fedora_15_.28Lovelock.29.3F.
- ↑ "Debian 6.0 "Squeeze" released" (Press release). Debian. 6 February 2011. Retrieved 2011-02-08.
Support has also been added for the ext4 and Btrfs filesystems...
- ↑ 26.0 26.1 "Linux kernel 3.0, Section 1.1. Btrfs: Automatic defragmentation, scrubbing, performance improvements". 2011-07-21. http://kernelnewbies.org/Linux_3.0#head-3e596e03408e1d32a7cc381d6f54e87feee22ee4.
- ↑ Leemhuis, Thorsten (21 June 2011). "Kernel Log: Coming in 3.0 (Part 2) - Filesystems". The H Open. http://www.h-online.com/open/features/Kernel-Log-Coming-in-3-0-Part-2-Filesystems-1263681.html.
- ↑ Varghese, Sam. "iTWire". http://www.itwire.com/business-it-news/open-source/62417-faecbook-lures-top-btrfs-hackers.
- ↑ "Unbreakable Enterprise Kernel Release 2 has been released". https://blogs.oracle.com/linux/unbreakable-enterprise-kernel-release-2-has-been-released.
- ↑ "SLES 11 SP2 Release Notes". 21 August 2012. http://www.novell.com/linux/releasenotes/x86_64/SUSE-SLES/11-SP2/#fate-306585.
- ↑ "SUSE Linux Enterprise Server 12 Release Notes". 2015-11-05. https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12/#fate-317221.
- ↑ 32.0 32.1 "Red Hat Enterprise Linux 7.4 Release Notes, Chapter 53: Deprecated Functionality". 2017-08-01. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/7.4_Release_Notes/chap-Red_Hat_Enterprise_Linux-7.4_Release_Notes-Deprecated_Functionality.html.
- ↑ 33.0 33.1 "Considerations in adopting RHEL 8". Product Documentation for Red Hat Enterprise Linux 8. Red Hat. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/considerations_in_adopting_rhel_8/file-systems-and-storage_considerations-in-adopting-rhel-8#btrfs-has-been-removed_file-systems-and-storage.
- ↑ "How to Choose Your Red Hat Enterprise Linux File System". 4 September 2020. https://access.redhat.com/articles/3129891.
- ↑ "Btrfs Coming to Fedora 33". 2020-08-24. https://fedoramagazine.org/btrfs-coming-to-fedora-33/.
- ↑ 36.0 36.1 "Btrfs Wiki: Features". 2013-11-27. https://btrfs.wiki.kernel.org/index.php/Main_Page#Features.
- ↑ "Btrfs Wiki: Changelog". 2019-05-29. https://btrfs.wiki.kernel.org/index.php/Changelog.
- ↑ "Manpage btrfs-check". https://btrfs.readthedocs.io/en/latest/btrfs-check.html.
- ↑ "Using Btrfs with Multiple Devices". 2013-11-07. https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices.
- ↑ "Compression". 2013-06-25. https://btrfs.wiki.kernel.org/index.php/Compression.
- ↑ "Btrfs: add support for inode properties". 2014-01-28. https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=63541927c8d11d2686778b1e8ec71c14b4fd53e4.
- ↑ "btrfs: Readonly snapshots". https://lwn.net/Articles/417617/.
- ↑ "Save disk space on Linux by cloning files on Btrfs and OCFS2". https://blogs.oracle.com/otn/save-disk-space-on-linux-by-cloning-files-on-btrfs-and-ocfs2.
- ↑ "Wiki FAQ: What checksum function does Btrfs use?". Btrfs wiki. http://btrfs.wiki.kernel.org/index.php/FAQ#What_checksum_function_does_Btrfs_use.3F.
- ↑ "Btrfs hilights in 5.5: new hashes". https://kdave.github.io/btrfs-hilights-5.5-new-hashes/.
- ↑ 46.0 46.1 "Btrfs progs release 4.6". https://www.spinics.net/lists/linux-btrfs/msg56040.html.
- ↑ Mason, Chris (12 January 2009). "Btrfs changelog". http://btrfs.ipv5.de/index.php?title=Changelog#Seed_Device_support.
- ↑ 48.0 48.1 48.2 Corbet, Jonathan (2012-07-11), Btrfs send/receive, LWN.net, https://lwn.net/Articles/506244/, retrieved 2012-11-14
- ↑ "Btrfs Wiki: Incremental Backup". 2013-05-27. https://btrfs.wiki.kernel.org/index.php/Incremental_Backup.
- ↑ 50.0 50.1 Jansen, Arne (2011), Btrfs Subvolume Quota Groups, Strato AG, http://sensille.com/qgroups.pdf, retrieved 2012-11-14
- ↑ btrfs (2016-07-16). "RAID 5/6". kernel.org. https://btrfs.wiki.kernel.org/index.php/RAID56.
- ↑ Zygo Blaxell. "How to use btrfs raid5 successfully(ish)". https://lore.kernel.org/linux-btrfs/20200627032414.GX10769@hungrycats.org/.
- ↑ Zygo Blaxell. "Current bugs with operational impact on btrfs raid5". https://lore.kernel.org/linux-btrfs/20200627030614.GW10769@hungrycats.org/.
- ↑ Corbet, Jonathan (2009-05-05). "The two sides of reflink()". LWN.net. https://lwn.net/Articles/331808/.
- ↑ 55.0 55.1 "UseCases – btrfs documentation". https://btrfs.wiki.kernel.org/index.php/UseCases.
- ↑ "btrfs: allow cross-subvolume file clone". https://github.com/torvalds/linux/commit/362a20c5e27614739c46707d1c5f55c214d164ce.
- ↑ 57.0 57.1 Lenz Grimmer (2011-08-31). "Save disk space on Linux by cloning files on Btrfs and OCFS2". https://blogs.oracle.com/OTNGarage/entry/save_disk_space_on_linux.
- ↑ "Symlinks reference names, hardlinks reference meta-data and reflinks reference data". 2010-10-27. http://www.pixelbeat.org/docs/unix_links.html.
- ↑ Meyering, Jim (20 August 2009). "GNU coreutils NEWS: Noteworthy changes in release 7.5". http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=NEWS;h=601d73251c49ce36b39f9838aa818c740cf3a10a;hb=af1996dde2d0089117a9e5e7aa543c6e55474b77.
- ↑ Scrivano, Giuseppe (1 August 2009). "cp: accept the --reflink option". http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=a1d7469835371ded0ad8e3496bc5a5bebf94ccef.
- ↑ Linux Programmer's Manual – System Calls –
- ↑ 62.0 62.1 62.2 62.3 "SysadminGuide – Btrfs documentation". https://btrfs.wiki.kernel.org/index.php/SysadminGuide.
- ↑ 63.0 63.1 63.2 "5.6 Creating Subvolumes and Snapshots [needs update"]. 2013. http://docs.oracle.com/cd/E37670_01/E37355/html/ol_use_case3_btrfs.html.
- ↑ "Gotchas - btrfs Wiki". https://btrfs.wiki.kernel.org/index.php/Gotchas#Block-level_copies_of_devices.
- ↑ 65.0 65.1 "5.7 Using the Send/Receive Feature". 2013. http://docs.oracle.com/cd/E37670_01/E37355/html/ol_sendrecv_btrfs.html.
- ↑ 66.0 66.1 66.2 66.3 Mason, Chris (2015-06-25). "Conversion from Ext3 (Btrfs documentation)". https://btrfs.wiki.kernel.org/index.php/Conversion_from_Ext3.
- ↑ "btrfs-convert(8) — BTRFS Documentation". https://btrfs.readthedocs.io/en/latest/btrfs-convert.html.
- ↑ "Seed device". https://btrfs.wiki.kernel.org/index.php/Seed-device.
- ↑ Mason, Chris (2012-04-05), Btrfs Filesystem: Status and New Features, Linux Foundation, http://linuxfoundation.ubicast.tv/videos/permalink/123/, retrieved 2012-11-16[yes|permanent dead link|dead link}}]
- ↑ McPherson, Amanda (2009-06-22). "A Conversation with Chris Mason on BTRfs: the next generation file system for Linux". Linux Foundation. http://www.linuxfoundation.org/news-media/blogs/browse/2009/06/conversation-chris-mason-btrfs-next-generation-file-system-linux. "In future releases we plan to add online fsck, deduplication, encryption and other features that have been on admin wish lists for a long time."
- ↑ Sterba, David. "authenticated file systems using HMAC(SHA256)". https://lore.kernel.org/linux-btrfs/3ca669b7-7447-5793-f231-32d5417bd8ee@suse.com/T/#m949c14afbe4485faf61bd6a568abfe21163bf5bd.
- ↑ "btrfs-check(8)". https://btrfs.readthedocs.io/en/latest/btrfs-check.html.
- ↑ "How to recover from BTRFS errors | Support | SUSE". https://www.suse.com/support/kb/doc/?id=000018769.
- ↑ "Restore - btrfs Wiki". https://btrfs.wiki.kernel.org/index.php/Restore.
- ↑ "btrfs-restore(8) - Linux manual page". https://man7.org/linux/man-pages/man8/btrfs-restore.8.html.
- ↑ "Problem FAQ - btrfs Wiki". 2013-07-31. https://btrfs.wiki.kernel.org/index.php/Problem_FAQ.
- ↑ "kernel/git/torvalds/linux.git: Documentation: filesystems: add new btrfs mount options (Linux kernel source tree)". kernel.org. 2013-11-21. https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=906c176e541f89ed3c04d0e9af1c7cf7b3cc1adb.
- ↑ "Mount options - btrfs Wiki". 2013-11-12. https://btrfs.readthedocs.io/en/latest/btrfs-man5.html.
- ↑ 79.0 79.1 79.2 Aurora, Valerie (22 July 2009). "A short history of btrfs". LWN.net. https://lwn.net/Articles/342892/.
- ↑ Reiser, Hans (2001-12-07). "Re: Ext2 directory index: ALS paper and benchmarks". ReiserFS developers mailing list. http://lkml.indiana.edu/hypermail/linux/kernel/0112.0/2019.html.
- ↑ Mason, Chris. "Acp". Oracle personal web page. http://oss.oracle.com/~mason/acp/.
- ↑ "Hard Link Limitation". kerneltrap.org. 8 August 2010. http://kerneltrap.org/mailarchive/linux-btrfs/2010/8/2/6885208/thread.
- ↑ Fasheh, Mark (2012-10-09). "btrfs: extended inode refs". https://git.kernel.org/?p=linux/kernel/git/mason/linux-btrfs.git;a=commit;h=f186373fef005cee948a4a39e6a14c2e5f517298.
- ↑ Torvalds, Linus (2012-10-10). "Pull btrfs update from Chris Mason". git.kernel.org. https://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=72055425e53540d9d0e59a57ac8c9b8ce77b62d5.
- ↑ Larabel, Michael (2010-12-24). "Benchmarks of the Btrfs Space Cache Option". Phoronix. https://www.phoronix.com/scan.php?page=article&item=btrfs_space_cache&num=1.
- ↑ "FAQ - btrfs Wiki: What checksum function does Btrfs use?". The btrfs Project. https://btrfs.wiki.kernel.org/index.php/FAQ#What_checksum_function_does_Btrfs_use.3F.
- ↑ 87.0 87.1 Bierman, Margaret; Grimmer, Lenz (August 2012). "How I Use the Advanced Capabilities of Btrfs". http://www.oracle.com/technetwork/articles/servers-storage-admin/advanced-btrfs-1734952.html.
- ↑ Salter, Jim (15 January 2014). "Bitrot and Atomic COWs: Inside "Next-Gen" Filesystems". https://arstechnica.com/information-technology/2014/01/bitrot-and-atomic-cows-inside-next-gen-filesystems/.
- ↑ Coekaerts, Wim (2011-09-28). "Btrfs Scrub – Go Fix Corruptions with Mirror Copies Please!". https://blogs.oracle.com/wim/entry/btrfs_scrub_go_fix_corruptions.
- ↑ "Glossary". https://btrfs.wiki.kernel.org/index.php/Glossary.
- ↑ "Manpage/mkfs.btrfs". Profiles. https://btrfs.wiki.kernel.org/index.php/Manpage/mkfs.btrfs#PROFILES.
- ↑ Mason, Chris; Rodeh, Ohad; Bacik, Josef (2012-07-09), BTRFS: The Linux B-tree Filesystem, IBM Research, http://domino.watson.ibm.com/library/CyberDig.nsf/papers/6E1C5B6A1B6EDD9885257A38006B6130/$File/rj10501.pdf, retrieved 2012-11-12
- ↑ Mason, Chris (30 April 2008). "Multiple device support". http://btrfs.wiki.kernel.org/index.php/Multiple_Device_Support.
- ↑ Bartell, Sean (2010-04-20). "Re: Restoring BTRFS partition". linux-btrfs (Mailing list).
- ↑ "Oracle Now Supports Btrfs RAID5/6 on Their Unbreakable Enterprise Kernel - Phoronix". https://www.phoronix.com/scan.php?page=news_item&px=Btrfs-RAID56-UEK.
- ↑ "Managing Btrfs in Oracle Linux 8". https://docs.oracle.com/en/operating-systems/oracle-linux/8/fsadmin/about-btrfs.html.[|permanent dead link|dead link}}]
- ↑ "SUSE Reaffirms Support for Btrfs". https://lwn.net/Articles/731848/.
- ↑ "SUSE Linux Enterprise Server 12 Release Notes". https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12/.
- ↑ "Cloud Station White Paper". Synology. p. 11. https://global.download.synology.com/download/Document/Software/WhitePaper/Package/CloudStation/All/enu/Synology_Cloud_Station_White_Paper-Based_on_DSM_6.0.pdf. "Starting from DSM 6.0, data volumes can be formatted as Btrfs"
- ↑ "Btrfs has been deprecated in RHEL | Hacker News". https://news.ycombinator.com/item?id=14907771.
- ↑ "Red Hat Appears to Be Abandoning Their Btrfs Hopes - Phoronix". https://www.phoronix.com/scan.php?page=news_item&px=Red-Hat-Deprecates-Btrfs-Again.
- ↑ Andreas Jaeger (2005-02-15). "Large File Support in Linux". http://users.suse.com/~aj/linux_lfs.html.
- ↑ "Linux kernel configuration help for CONFIG_LBD in 2.6.29 on x86". http://kernel.xc.net/html/linux-2.6.29/x86/LBD.
External links
- I Can't Believe This is Butter! A tour of btrfs on YouTube – a conference presentation by Avi Miller, an Oracle engineer
- Btrfs: Working with multiple devices – LWN.net, December 2013, by Jonathan Corbet
- Marc's Linux Btrfs posts – detailed insights into various Btrfs features
- Btrfs overview, LinuxCon 2014, by Marc Merlin
- File System Evangelist and Thought Leader: An Interview with Valerie Aurora[Usurped!], Linux Magazine, 14 July 2009, by Jeffrey B. Layton
- WinBtrfs Btrfs Driver For Windows
Original source: https://en.wikipedia.org/wiki/Btrfs.
Read more |