Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/filesystems/btrfs-progs.xml

    r34a6571 r90025d31  
    77  <!ENTITY btrfs-progs-download-http "&kernel-dl;/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v&btrfs-progs-version;.tar.xz">
    88  <!ENTITY btrfs-progs-download-ftp  " ">
    9   <!ENTITY btrfs-progs-md5sum        "8ca78d6e62179ef177597422e27a58fc">
     9  <!ENTITY btrfs-progs-md5sum        "0472036ca5ef729374c673e1d867476e">
    1010  <!ENTITY btrfs-progs-size          "2.1 MB">
    11   <!ENTITY btrfs-progs-buildsize     "54 MB (up to 2.7 GB are used during tests)">
    12   <!ENTITY btrfs-progs-time          "0.2 SBU (add 5.9 SBU for tests, but will be longer on slow disks)">
     11  <!ENTITY btrfs-progs-buildsize     "97 MB (add 2.7 GB for tests)">
     12  <!ENTITY btrfs-progs-time          "0.2 SBU (add 6.3 SBU for tests)">
    1313]>
    1414
     
    1717
    1818  <sect1info>
     19    <othername>$LastChangedBy$</othername>
    1920    <date>$Date$</date>
    2021  </sect1info>
     
    3435    </para>
    3536
    36     &lfs110a_checked;
     37    &lfs10_checked;
    3738
    3839    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    8586    <bridgehead renderas="sect4">Optional</bridgehead>
    8687    <para role="optional">
    87       <xref linkend="lvm2"/> (<command>dmsetup</command> is used in tests) and
     88      <xref linkend="lvm2"/> (<command>dmsetup</command> is used in tests),
     89      <xref linkend="python2"/> (python bindings), and
    8890      <xref linkend="reiserfs"/> (for tests)
    8991    </para>
     
    105107  &lt;*/M&gt; Btrfs filesystem support [CONFIG_BTRFS_FS]</literal></screen>
    106108
    107     <para>
    108       In addition to the above and to the options required for
    109       <xref linkend="lvm2"/> and <xref linkend="reiserfs"/>, the following
    110       options must be enabled for running tests:
    111     </para>
    112 
    113 <screen><literal>File systems  ---&gt;
    114   [*]   Btrfs POSIX Access Control Lists      [CONFIG_BTRFS_FS_POSIX_ACL]
    115   [*]   ReiserFS extended attributes          [CONFIG_REISERFS_FS_XATTR]
    116   [*]     ReiserFS POSIX Access Control Lists [CONFIG_REISERFS_FS_POSIX_ACL]</literal></screen>
     109    <note>
     110      <para>
     111        CONFIG_BTRFS_FS_POSIX_ACL and
     112        CONFIG_REISERFS_FS_XATTR are required for some tests.
     113        Other Btrfs options in the kernel are optional.
     114      </para>
     115    </note>
    117116
    118117    <indexterm zone="btrfs-progs btrfs-progs-kernel">
     
    130129    </para>
    131130
    132 <screen><userinput>./configure --prefix=/usr &amp;&amp;
     131<screen><userinput>./configure --prefix=/usr \
     132            --bindir=/bin \
     133            --libdir=/lib \
     134            --with-pkgconfigdir=/usr/lib/pkgconfig &amp;&amp;
    133135make</userinput></screen>
    134136
     
    140142      </para>
    141143    </note>
    142 <!-- Keeping this for now, but it seems that calling "make test" is
    143      simpler and does the same thing -->
    144     <para>
    145       Before running tests, build a support program:
    146     </para>
    147 
    148 <screen remap="test"><userinput>make fssum</userinput></screen>
     144
     145    <para>
     146      Before running tests, build a support program and
     147      disable several that fail:
     148    </para>
     149
     150<screen remap="test"><userinput>make fssum &amp;&amp;
     151
     152sed -i '/found/s/^/: #/' tests/convert-tests.sh &amp;&amp;
     153
     154mv tests/convert-tests/010-reiserfs-basic/test.sh{,.broken}               &amp;&amp;
     155mv tests/convert-tests/011-reiserfs-delete-all-rollback/test.sh{,.broken} &amp;&amp;
     156mv tests/convert-tests/012-reiserfs-large-hole-extent/test.sh{,.broken}   &amp;&amp;
     157mv tests/convert-tests/013-reiserfs-common-inode-flags/test.sh{,.broken}  &amp;&amp;
     158mv tests/convert-tests/014-reiserfs-tail-handling/test.sh{,.broken}       &amp;&amp;
     159mv tests/fuzz-tests/003-multi-check-unmounted/test.sh{,.broken}</userinput></screen>
    149160
    150161    <para>
     
    154165
    155166<screen role="root" remap="test"><userinput>pushd tests
    156    ./fsck-tests.sh
    157    ./mkfs-tests.sh
    158    ./cli-tests.sh
    159    ./convert-tests.sh
    160    ./misc-tests.sh
    161    ./fuzz-tests.sh
     167   ./fsck-tests.sh    <!-- 43 tests  6m14s -->
     168   ./mkfs-tests.sh    <!-- 20 tests  2m48s -->
     169   ./cli-tests.sh     <!-- 12 tests  0m51s -->
     170   ./convert-tests.sh <!-- 16 tests 13m36s -->
     171   ./misc-tests.sh    <!-- 38 tests  3m18s -->
     172   ./fuzz-tests.sh    <!--  8 tests  1m11s -->
    162173popd</userinput></screen>
    163174
    164 <!-- Template for failed test removal:
    165     <para>
    166       To test the results, first disable one test that fails and prevents
    167       the other ones to run:
    168     </para>
    169 
    170 <screen remap="test"><userinput>mv tests/fsck-tests/012-leaf-corruption/test.sh{,.broken}</userinput></screen>
    171 Substitute your test failure with the one above.
    172     <para>
    173       To test the results, run (as the
    174       <systemitem class="username">root</systemitem> user):
    175     </para>
    176 
    177 <screen role="root" remap="test"><userinput>make -j1 -k test</userinput></screen>
    178 -->
    179     <note>
    180       <para>
    181         If the above mentioned kernel options are not enabled, some tests
    182         fail, and prevent all the remaining tests to run, because the test
    183         disk image is not cleanly unmounted.
    184       </para>
    185     </note>
    186 <!--
    187     <para>
    188       Two tests fail for unknown reasons in the
    189       <command>test-libbtrfsutil</command> section. Tests take a very long
    190       time, and it may be interesting to run only part of them. Running tests
    191       only in one directory can be done with
    192       <command>make TEST=&lt;DIR&gt; test</command>.
    193     </para>
    194 -->
    195175    <para>
    196176      Install the package as the <systemitem
     
    198178    </para>
    199179
    200 <screen role="root"><userinput>make install</userinput></screen>
     180<screen role="root"><userinput>make install &amp;&amp;
     181
     182ln -sfv ../../lib/$(readlink /lib/libbtrfs.so) /usr/lib/libbtrfs.so &amp;&amp;
     183ln -sfv ../../lib/$(readlink /lib/libbtrfsutil.so) /usr/lib/libbtrfsutil.so &amp;&amp;
     184rm -fv /lib/libbtrfs.{a,so} /lib/libbtrfsutil.{a,so} &amp;&amp;
     185mv -v /bin/{mkfs,fsck}.btrfs /sbin</userinput></screen>
    201186
    202187  </sect2>
     
    209194      is needed if the recommended dependencies are not installed.
    210195    </para>
    211 <!-- not anymore in the commands
     196
    212197    <para>
    213198      <command>mv tests/{cli,convert,misc,fuzz}-tests/ ...</command>: Disables
     
    224209      library entries.
    225210    </para>
    226 -->
     211
    227212  </sect2>
    228213
     
    267252        <listitem>
    268253          <para>
    269             is the main interface into btrfs filesystem operations
     254            is the main interface into btrfs filesystem operations.
    270255          </para>
    271256          <indexterm zone="btrfs-progs btrfs-prog">
     
    279264        <listitem>
    280265          <para>
    281             converts from an ext2/3/4 or reiserfs filesystem to btrfs
     266            converts from an ext2/3/4 filesystem to btrfs.
    282267          </para>
    283268          <indexterm zone="btrfs-progs btrfs-convert">
     
    291276        <listitem>
    292277          <para>
    293             is a filter to find btrfs root
     278            is a filter to find btrfs root.
    294279          </para>
    295280          <indexterm zone="btrfs-progs btrfs-find-root">
     
    303288        <listitem>
    304289          <para>
    305             maps btrfs logical extent to physical extent
     290            maps btrfs logical extent to physical extent.
    306291          </para>
    307292          <indexterm zone="btrfs-progs btrfs-map-logical">
     
    315300        <listitem>
    316301          <para>
    317             overwrites the primary superblock with a backup copy
     302            overwrites the primary superblock with a backup copy.
    318303          </para>
    319304          <indexterm zone="btrfs-progs btrfs-select-super">
     
    327312        <listitem>
    328313          <para>
    329             tunes various filesystem parameters
     314            tunes various filesystem parameters.
    330315          </para>
    331316          <indexterm zone="btrfs-progs btrfstune">
     
    339324        <listitem>
    340325          <para>
    341             does nothing, but is present for consistency with fstab
     326            does nothing, but is present for consistency with fstab.
    342327          </para>
    343328          <indexterm zone="btrfs-progs fsck.btrfs">
     
    351336        <listitem>
    352337          <para>
    353             creates a btrfs file system
     338            creates a btrfs file system.
    354339          </para>
    355340          <indexterm zone="btrfs-progs mkfs.btrfs">
Note: See TracChangeset for help on using the changeset viewer.