3 Btrfs uses libcrc32c in the kernel for file and metadata checksums. You need
4 to compile the kernel with:
8 libcrc32c can be static as well. Once your kernel is setup, typing make in the
9 btrfs module sources will build against the running kernel. When the build is
15 The Btrfs utility programs require the following libraries/tools to build:
17 - libuuid (This can be found in the e2fsprogs sources, and is usually available
18 as libuuid or e2fsprogs-devel from various distros).
19 - libattr (Extended attribute library - Development files)
20 - libblkid (Block device id library - Development files)
21 - liblzo2 (LZO data compression library - Development files)
22 - libacl (Access control list library - Development files)
23 - e2fslibs (ext2/ext3/ext4 file system libraries - Development files)
24 - asciidoc (Text document format tool - For documentation)
26 Building the utilities is just make ; make install. The programs go
27 into /usr/local/bin. The mains commands available are:
29 mkfs.btrfs: create a filesystem
31 btrfs: control program to create snapshots and subvolumes:
32 # mount a btrfs filesystem
36 btrfs subvolume create /mnt/new_subvol_name
38 # snapshot of a subvolume
39 btrfs subvolume snapshot /mnt/default /mnt/snapshot_of_default
40 btrfs subvolume snapshot /mnt/snapshot_of_default \
41 /mnt/snapshot_of_a_snapshot
43 # list of the subvolumes
45 default snapshot_of_a_snapshot snapshot_of_new_subvol
46 new_subvol_name snapshot_of_default
48 # removal of a subvolume or a snapshot
49 btrfs subvolume delete /mn/snapshot_of_a_snapshot
51 # look a the btrfs man page for further information
54 btrfsck: do a limited check of the FS extent trees.</li>
56 btrfs-debug-tree: print all of the FS metadata in text form. Example:
58 btrfs-debug-tree /dev/sda2 >& big_output_file