1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Error-Fixing Btrfs FSCK Tool Is Imminent

Linux Kernel

Published on 23 January 2012 12:13 PM EST
Written by Michael Larabel in Linux Kernel
15 Comments

An fsck utility capable of fixing problems on the Btrfs file-system is imminent. Plus other features continue to be worked on for this next-generation, open-source Linux file-system.

Chris Mason, the Oracle employee who's been the lead developer of Btrfs, was one of the presenters this past weekend in Los Angeles at the SCALE 10x conference. Chris was obviously presenting on Btrfs.

In his hour-long talk, Chris went over the state of Btrfs, some of the features, performance, and contrasting this promising file-system to the other Linux file-systems (namely EXT4 and XFS).

During the talk, Chris did mention that RAID 5 and RAID 6 support will be pulled into the Btrfs tree once he is done with the file-system checking code. The RAID5/RAID6 code for Btrfs was written by Intel. This file-system-level RAID support complements the existing RAID 0, RAID 1, and RAID 10 support. RAID 5 offers block-level striping with parity data across all disk drives part of the RAID array. RAID 6 is an extension of RAID 5 that adds an additional parity block for having two parity blocks across all of the drives in the RAID array for greater redundancy and data loss recovering abilities.

Besides the RAID5/RAID6 Btrfs-level patches from Intel, Chris Mason will also be working on triple mirroring support for his file-system. Based upon the timeline of things, this greater RAID support will likely be merged for the Linux 3.4 or Linux 3.5 kernels. The Linux 3.4 kernel will also be bringing back support for larger block sizes, along with Snappy transparent compression support.

Now what everyone's been waiting for... the fsck utility for Btrfs that's read-write to support properly fixing the Btrfs file-system in the event of problems, is coming soon. The fsck utility for Btrfs that supports writing (a read-only version has been available) has undergone several rewrites by Chris, but he thinks he's onto the final implementation. It looks like this will finally be released by the middle of February.

The enterprise versions of Oracle Linux and SUSE Enterprise Server are going to be shipped with Btrfs support and for this there needs to be the fsck support in place. Chris says the deadline for this is the 14th of February.

Should the Btrfs fsck materialize in February, this may mean that the Fedora 17 "Beefy Miracle" Linux release will default to Btrfs as its file-system of choice. Fedora has been trying to be the first tier-one Linux distribution shipping with Btrfs by default, but it always ended up being cut largely because of the missing file-system checker.

Error-Fixing Btrfs FSCK Tool Is Imminent


Chris mentioned he would have preferred seeing all of this code running in Fedora first before the production enterprise releases of Oracle Linux and SUSE, but it just didn't work out. Fedora has been shipping with experimental Btrfs support for several releases now, including several interesting features to take advantage of the Btrfs file-system like system snapshots with roll-back support using the Btrfs copy-on-write snapshots.

A complete fsck utility also likely makes it closer to seeing Btrfs by default in Ubuntu Linux. Based upon how historically Fedora is first to pick-up upstream features and then a release or two later finding their way to Ubuntu, the feature freeze for Ubuntu 12.04 being in February (and being a Long-Term Support cycle), it wouldn't be until at least Ubuntu 12.10 in October that we see Btrfs within Ubuntu by default (it too has supported install-time Btrfs support for a few release cycles now). Chances are though the Btrfs migration wouldn't happen until Ubuntu 13.04, but we will see in a few months during the Ubuntu Developer Summit for 12.10 to see what happens.

Transparent encryption for Btrfs was also brought up. While transparent compression is supported (LZO, Gzip, and Snappy), transparent encryption isn't yet handled within Btrfs. There is support for a transparent encryption within the Btrfs on-disk format, but the rest of the code is not done. However, dm-crypt can be used just fine with Btrfs as a means of encryption for now, albeit with a slight latency cost.

Chris Mason also commented on Oracle's IP/patent state of Btrfs when brought up by an audience member. Oracle has no patents covering Btrfs. Additionally, Chris said he ensured early on to get some open-source kernel developers that are open-source fanatics and would "never agree to a license change" to get copyrighted code in Btrfs.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. Rosewill RS-MI-01: An Ultra Low-Cost Mini-ITX Chassis
  2. D-Link DCS-2330L HD Wireless Network Camera
  3. Gigabyte AM1M-S2H
  4. AMD's New Athlon/Semprons Give Old Phenom CPUs A Big Run For The Money
Latest Linux Articles
  1. AMD Catalyst 14.4 On Linux With Radeon R3 APU Graphics
  2. Red Hat Enterprise Linux 7.0 RC Benchmarks
  3. AMD Catalyst 14.4 Brings Few Linux Performance Improvements
  4. The Performance Of Fedora 20 Updated
Latest Linux News
  1. R600 Gallium3D Lands Many OpenGL Fixes
  2. LLVMpipe Gallium3D Now Exposes GLSL 3.30
  3. NGINX 1.6 Brings SPDY 3.1 & Other New Features
  4. Linux Foundation Announces A Core Infrastructure Initiative
  5. More Steam Linux Tests/Benchmarks Might Be Coming
  6. NVIDIA's Amazing Single-Board ARM Computer Might Be Delayed
  7. Fedora 21 To Get A Playground, New Features
  8. PC-BSD Is Developing Its Own Desktop Environment
  9. Valve Is Bringing VOGL To Windows & Working On Regression Tests
  10. Canonical Is Taking Over Linux 3.13 Kernel Maintenance
  11. Google Web Designer Is Now Natively Available On Linux
  12. Ubuntu 14.10 Is Codenamed The Utopic Unicorn
Latest Forum Discussions
  1. Linux Kernel Developers Fed Up With Ridiculous Bugs In Systemd
  2. HTPC-upgrade advice: AMD Richland A8-7600 or Kaveri A10-6700T ???
  3. What Else Would You Like To See On Phoronix This Spring?
  4. The GNOME Foundation Is Running Short On Money
  5. The Most Amazing OpenGL Tech Demo In 64kb
  6. Announcing radeontop, a tool for viewing the GPU usage
  7. New card. Open source drivers only.
  8. Script for Fan Speed Control