Btrfs source repositories
From btrfs Wiki
Contents |
Btrfs Source Code
Note: "Stable" here doesn't mean that Btrfs is considered ready for production use, it means "the stable branch of the Btrfs development"
Stable Repositories
Since 2.6.29-rc1, Btrfs stable branch is included in the mainline kernel. To use a stable version of Btrfs, just download and compile a mainline kernel, or use the kernel shipped with your distro, which may have Btrfs support enabled.
Note that Btrfs evolves very quickly, so at this point it doesn't makes sense to use the Btrfs from a old kernel version, so if your distro uses a kernel which is not the latest stable version, it's recommended to get the latest stable version.
There is a standalone repository that is generated from the mainline kernel and contains only the Btrfs sources.
The userspace utilities can be downloaded from this repository (Gitweb access):
git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs-unstable.git
Unstable Repositories
These hold code that is under heavy development, and they are likely to be less tested than the code in the mainline kernel. We're in the process of adding a backport repository that will change less often and be more stable overall.
To download the unstable kernel module and utilities:
- Kernel module (it downloads a complete Linux kernel tree) (Gitweb access)
git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable.git
The Btrfs 2.6.31 disk format is available against 2.6.30 kernels in the newformat2 branch:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable.git newformat2
- Utilities (Gitweb access)
git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs-unstable.git
Note: the build depends on libuuid (uuid-dev on Ubuntu).
Distro specific information
Gentoo Linux ebuilds
Gentoo Linux includes packages for both the stable and unstable versions:
