Ignore:
File:
1 edited

Legend:

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

    r90025d31 r34a6571  
    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        "0472036ca5ef729374c673e1d867476e">
     9  <!ENTITY btrfs-progs-md5sum        "8ca78d6e62179ef177597422e27a58fc">
    1010  <!ENTITY btrfs-progs-size          "2.1 MB">
    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)">
     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)">
    1313]>
    1414
     
    1717
    1818  <sect1info>
    19     <othername>$LastChangedBy$</othername>
    2019    <date>$Date$</date>
    2120  </sect1info>
     
    3534    </para>
    3635
    37     &lfs10_checked;
     36    &lfs110a_checked;
    3837
    3938    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    8685    <bridgehead renderas="sect4">Optional</bridgehead>
    8786    <para role="optional">
    88       <xref linkend="lvm2"/> (<command>dmsetup</command> is used in tests),
    89       <xref linkend="python2"/> (python bindings), and
     87      <xref linkend="lvm2"/> (<command>dmsetup</command> is used in tests) and
    9088      <xref linkend="reiserfs"/> (for tests)
    9189    </para>
     
    107105  &lt;*/M&gt; Btrfs filesystem support [CONFIG_BTRFS_FS]</literal></screen>
    108106
    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>
     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>
    116117
    117118    <indexterm zone="btrfs-progs btrfs-progs-kernel">
     
    129130    </para>
    130131
    131 <screen><userinput>./configure --prefix=/usr \
    132             --bindir=/bin \
    133             --libdir=/lib \
    134             --with-pkgconfigdir=/usr/lib/pkgconfig &amp;&amp;
     132<screen><userinput>./configure --prefix=/usr &amp;&amp;
    135133make</userinput></screen>
    136134
     
    142140      </para>
    143141    </note>
    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 
    152 sed -i '/found/s/^/: #/' tests/convert-tests.sh &amp;&amp;
    153 
    154 mv tests/convert-tests/010-reiserfs-basic/test.sh{,.broken}               &amp;&amp;
    155 mv tests/convert-tests/011-reiserfs-delete-all-rollback/test.sh{,.broken} &amp;&amp;
    156 mv tests/convert-tests/012-reiserfs-large-hole-extent/test.sh{,.broken}   &amp;&amp;
    157 mv tests/convert-tests/013-reiserfs-common-inode-flags/test.sh{,.broken}  &amp;&amp;
    158 mv tests/convert-tests/014-reiserfs-tail-handling/test.sh{,.broken}       &amp;&amp;
    159 mv tests/fuzz-tests/003-multi-check-unmounted/test.sh{,.broken}</userinput></screen>
     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>
    160149
    161150    <para>
     
    165154
    166155<screen role="root" remap="test"><userinput>pushd tests
    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 -->
     156   ./fsck-tests.sh
     157   ./mkfs-tests.sh
     158   ./cli-tests.sh
     159   ./convert-tests.sh
     160   ./misc-tests.sh
     161   ./fuzz-tests.sh
    173162popd</userinput></screen>
    174163
     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>
     171Substitute 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-->
    175195    <para>
    176196      Install the package as the <systemitem
     
    178198    </para>
    179199
    180 <screen role="root"><userinput>make install &amp;&amp;
    181 
    182 ln -sfv ../../lib/$(readlink /lib/libbtrfs.so) /usr/lib/libbtrfs.so &amp;&amp;
    183 ln -sfv ../../lib/$(readlink /lib/libbtrfsutil.so) /usr/lib/libbtrfsutil.so &amp;&amp;
    184 rm -fv /lib/libbtrfs.{a,so} /lib/libbtrfsutil.{a,so} &amp;&amp;
    185 mv -v /bin/{mkfs,fsck}.btrfs /sbin</userinput></screen>
     200<screen role="root"><userinput>make install</userinput></screen>
    186201
    187202  </sect2>
     
    194209      is needed if the recommended dependencies are not installed.
    195210    </para>
    196 
     211<!-- not anymore in the commands
    197212    <para>
    198213      <command>mv tests/{cli,convert,misc,fuzz}-tests/ ...</command>: Disables
     
    209224      library entries.
    210225    </para>
    211 
     226-->
    212227  </sect2>
    213228
     
    252267        <listitem>
    253268          <para>
    254             is the main interface into btrfs filesystem operations.
     269            is the main interface into btrfs filesystem operations
    255270          </para>
    256271          <indexterm zone="btrfs-progs btrfs-prog">
     
    264279        <listitem>
    265280          <para>
    266             converts from an ext2/3/4 filesystem to btrfs.
     281            converts from an ext2/3/4 or reiserfs filesystem to btrfs
    267282          </para>
    268283          <indexterm zone="btrfs-progs btrfs-convert">
     
    276291        <listitem>
    277292          <para>
    278             is a filter to find btrfs root.
     293            is a filter to find btrfs root
    279294          </para>
    280295          <indexterm zone="btrfs-progs btrfs-find-root">
     
    288303        <listitem>
    289304          <para>
    290             maps btrfs logical extent to physical extent.
     305            maps btrfs logical extent to physical extent
    291306          </para>
    292307          <indexterm zone="btrfs-progs btrfs-map-logical">
     
    300315        <listitem>
    301316          <para>
    302             overwrites the primary superblock with a backup copy.
     317            overwrites the primary superblock with a backup copy
    303318          </para>
    304319          <indexterm zone="btrfs-progs btrfs-select-super">
     
    312327        <listitem>
    313328          <para>
    314             tunes various filesystem parameters.
     329            tunes various filesystem parameters
    315330          </para>
    316331          <indexterm zone="btrfs-progs btrfstune">
     
    324339        <listitem>
    325340          <para>
    326             does nothing, but is present for consistency with fstab.
     341            does nothing, but is present for consistency with fstab
    327342          </para>
    328343          <indexterm zone="btrfs-progs fsck.btrfs">
     
    336351        <listitem>
    337352          <para>
    338             creates a btrfs file system.
     353            creates a btrfs file system
    339354          </para>
    340355          <indexterm zone="btrfs-progs mkfs.btrfs">
Note: See TracChangeset for help on using the changeset viewer.