Английская Википедия:Bcachefs

Материал из Онлайн справочника
Версия от 07:32, 7 февраля 2024; EducationBot (обсуждение | вклад) (Новая страница: «{{Английская Википедия/Панель перехода}} {{Short description|Linux file system}} {{infobox file system | name = Bcachefs | full_name = | developer = Kent Overstreet | variants = | introduction_date = {{Start date and age|2015|08|21|df=yes}} | partition_id = | directory_struct = Hybrid B+ tree | file_struct = Extents | bad_blocks...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:Infobox file system Bcachefs is a copy-on-write (COW) file system for Linux-based operating systems. Its primary developer, Kent Overstreet, first announced it in 2015, and it was added to the Linux kernel beginning with 6.7.[1][2] It is intended to compete with the modern features of ZFS or Btrfs, and the speed and performance of ext4 or XFS. It self-describes as "stable", as of December 2022.[3]

Features

Bcachefs is a copy-on-write (COW) file system for Linux-based operating systems.Шаблон:Sfn Features include caching,Шаблон:Sfn full file-system encryption using the ChaCha20 and Poly1305 algorithms,Шаблон:Sfn native compressionШаблон:Sfn via LZ4, gzip[4] and Zstandard,[5] snapshots,Шаблон:Sfn CRC-32C and 64-bit checksumming.Шаблон:Sfn It can span block devices, including in RAID configurations.Шаблон:Sfn

Earlier versions of Bcachefs provided all the functionality of Bcache, a block-layer cache system for Linux, with which Bcachefs shares about 80% of its code.Шаблон:Sfn As of December 2021, the block-layer cache functionality has been removed.[5]

On a data structure level, bcachefs uses B-trees like many other modern file systems, but with an unusually large node size defaulting to 256 KiB. These nodes are internally log-structured, forming a hybrid data structure, reducing the need for rewriting nodes on update.[6] Snapshots are not implemented by cloning a COW tree, but by adding a version number to filesystem objects.[7] The COW feature and the bucket allocator enables a RAID implementation with neither write hole nor IO fragmentation.[5]

History

Primary development has been by Kent Overstreet, the developer of Bcache, which he describes as a "prototype" for the ideas that became Bcachefs. Overstreet intends Bcachefs to replace Bcache.Шаблон:Sfn Overstreet has stated that development of Bcachefs began as Bcache's developers realized that its codebase had "been evolving ... into a full blown, general-purpose POSIX filesystem", and that "there was a really clean and elegant design" within it if they took it in that direction. Some time after Bcache was merged in 2013 into the mainline Linux kernel, Overstreet left his job at Google to work full-time on Bcachefs.Шаблон:Sfn

After a few years' unfunded development, Overstreet announced Bcachefs in 2015, at which point he called the code "more or less feature complete", and called for testers and contributors. He intended it to be an advanced file system with modern featuresШаблон:Sfn like those of ZFS or Btrfs, with the speed and performance of file systems such as ext4 and XFS.Шаблон:Sfn As of 2017 Overstreet was receiving financial support for the development of Bcachefs via Patreon.Шаблон:Sfn

As of mid-2018, the on-disk format had settled.Шаблон:Sfn Patches had been submitted for review to have Bcachefs included in the mainline Linux kernel, but had not yet been accepted.Шаблон:Sfn

By mid-2019, the desired features of Bcachefs were completed and the associated patches to LKML were submitted for peer review.Шаблон:SfnШаблон:Sfn In September 2023 the filesystem was merged in linux-next, a development tree of the Linux kernel where new features are tested before inclusion in the mainline tree.[8]

In October 2023 bcachefs was merged into the Linux 6.7 kernel,[9] which was released in January of 2024.[2]

References

Шаблон:Reflist

Works cited

Шаблон:Refbegin

Шаблон:Refend

External links

Шаблон:File systems Шаблон:Portal bar