btrfs-progs-5.19
      
      
      
        
          Kernel
          Configuration
        
        
          Enable the following option in the kernel configuration and
          recompile the kernel:
        
        File systems --->
  <*/M> Btrfs filesystem support [CONFIG_BTRFS_FS]
        
          In addition to the above and to the options required for LVM2-2.03.16 and
          reiserfsprogs-3.6.27, the following
          options must be enabled for running tests:
        
        File systems  --->
  [*]   Btrfs POSIX Access Control Lists      [CONFIG_BTRFS_FS_POSIX_ACL]
  [*]   ReiserFS extended attributes          [CONFIG_REISERFS_FS_XATTR]
  [*]     ReiserFS POSIX Access Control Lists [CONFIG_REISERFS_FS_POSIX_ACL]
       
      
        
          Installation of btrfs-progs
        
        
          Install btrfs-progs by running the
          following commands:
        
        ./configure --prefix=/usr --disable-documentation &&
make
        
          
          
            Note
          
          
            Some tests require grep built with perl regular expressions. To
            obtain this, rebuild grep with the LFS Chapter 8 instructions
            after installing PCRE-8.45.
          
         
        
          Before running tests, build a support program:
        
        make fssum
        
          To test the results, issue (as the root user):
        
        pushd tests
   ./fsck-tests.sh
   ./mkfs-tests.sh
   ./cli-tests.sh
   ./convert-tests.sh
   ./misc-tests.sh
   ./fuzz-tests.sh
popd
        
          
          
            Note
          
          
            If the above mentioned kernel options are not enabled, some tests
            fail, and prevent all the remaining tests to run, because the
            test disk image is not cleanly unmounted.
          
         
        
          Install the package as the root
          user:
        
        make install
       
      
        
          Command Explanations
        
        
          --disable-documentation: This option is
          needed if the recommended dependencies are not installed.
        
       
      
        
          Contents
        
        
          
            
              Installed Programs:
              btrfs, btrfs-convert, btrfs-find-root,
              btrfs-image, btrfs-map-logical, btrfs-select-super, btrfsck
              (link to btrfs), btrfstune, fsck.btrfs, and mkfs.btrfs
            
            
              Installed Libraries:
              libbtrfs.so and libbtrfsutil.so
            
            
              Installed Directories:
              /usr/include/btrfs
            
           
         
        
          
            Short Descriptions
          
          
            
              
              
            
            
              
                | 
                   
                    btrfs
                   
                 | 
                
                   
                    is the main interface into btrfs filesystem operations
                   
                 | 
              
              
                | 
                   
                    btrfs-convert
                   
                 | 
                
                   
                    converts from an ext2/3/4 or reiserfs filesystem to btrfs
                   
                 | 
              
              
                | 
                   
                    btrfs-find-root
                   
                 | 
                
                   
                    is a filter to find btrfs root
                   
                 | 
              
              
                | 
                   
                    btrfs-map-logical
                   
                 | 
                
                   
                    maps btrfs logical extent to physical extent
                   
                 | 
              
              
                | 
                   
                    btrfs-select-super
                   
                 | 
                
                   
                    overwrites the primary superblock with a backup copy
                   
                 | 
              
              
                | 
                   
                    btrfstune
                   
                 | 
                
                   
                    tunes various filesystem parameters
                   
                 | 
              
              
                | 
                   
                    fsck.btrfs
                   
                 | 
                
                   
                    does nothing, but is present for consistency with fstab
                   
                 | 
              
              
                | 
                   
                    mkfs.btrfs
                   
                 | 
                
                   
                    creates a btrfs file system
                   
                 |