- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/filesystems/btrfs-progs.xml
r90025d31 r34a6571 7 7 <!ENTITY btrfs-progs-download-http "&kernel-dl;/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v&btrfs-progs-version;.tar.xz"> 8 8 <!ENTITY btrfs-progs-download-ftp " "> 9 <!ENTITY btrfs-progs-md5sum " 0472036ca5ef729374c673e1d867476e">9 <!ENTITY btrfs-progs-md5sum "8ca78d6e62179ef177597422e27a58fc"> 10 10 <!ENTITY btrfs-progs-size "2.1 MB"> 11 <!ENTITY btrfs-progs-buildsize " 97 MB (add 2.7 GB fortests)">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)"> 13 13 ]> 14 14 … … 17 17 18 18 <sect1info> 19 <othername>$LastChangedBy$</othername>20 19 <date>$Date$</date> 21 20 </sect1info> … … 35 34 </para> 36 35 37 &lfs1 0_checked;36 &lfs110a_checked; 38 37 39 38 <bridgehead renderas="sect3">Package Information</bridgehead> … … 86 85 <bridgehead renderas="sect4">Optional</bridgehead> 87 86 <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 90 88 <xref linkend="reiserfs"/> (for tests) 91 89 </para> … … 107 105 <*/M> Btrfs filesystem support [CONFIG_BTRFS_FS]</literal></screen> 108 106 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 ---> 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> 116 117 117 118 <indexterm zone="btrfs-progs btrfs-progs-kernel"> … … 129 130 </para> 130 131 131 <screen><userinput>./configure --prefix=/usr \ 132 --bindir=/bin \ 133 --libdir=/lib \ 134 --with-pkgconfigdir=/usr/lib/pkgconfig && 132 <screen><userinput>./configure --prefix=/usr && 135 133 make</userinput></screen> 136 134 … … 142 140 </para> 143 141 </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 && 151 152 sed -i '/found/s/^/: #/' tests/convert-tests.sh && 153 154 mv tests/convert-tests/010-reiserfs-basic/test.sh{,.broken} && 155 mv tests/convert-tests/011-reiserfs-delete-all-rollback/test.sh{,.broken} && 156 mv tests/convert-tests/012-reiserfs-large-hole-extent/test.sh{,.broken} && 157 mv tests/convert-tests/013-reiserfs-common-inode-flags/test.sh{,.broken} && 158 mv tests/convert-tests/014-reiserfs-tail-handling/test.sh{,.broken} && 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> 160 149 161 150 <para> … … 165 154 166 155 <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 173 162 popd</userinput></screen> 174 163 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=<DIR> test</command>. 193 </para> 194 --> 175 195 <para> 176 196 Install the package as the <systemitem … … 178 198 </para> 179 199 180 <screen role="root"><userinput>make install && 181 182 ln -sfv ../../lib/$(readlink /lib/libbtrfs.so) /usr/lib/libbtrfs.so && 183 ln -sfv ../../lib/$(readlink /lib/libbtrfsutil.so) /usr/lib/libbtrfsutil.so && 184 rm -fv /lib/libbtrfs.{a,so} /lib/libbtrfsutil.{a,so} && 185 mv -v /bin/{mkfs,fsck}.btrfs /sbin</userinput></screen> 200 <screen role="root"><userinput>make install</userinput></screen> 186 201 187 202 </sect2> … … 194 209 is needed if the recommended dependencies are not installed. 195 210 </para> 196 211 <!-- not anymore in the commands 197 212 <para> 198 213 <command>mv tests/{cli,convert,misc,fuzz}-tests/ ...</command>: Disables … … 209 224 library entries. 210 225 </para> 211 226 --> 212 227 </sect2> 213 228 … … 252 267 <listitem> 253 268 <para> 254 is the main interface into btrfs filesystem operations .269 is the main interface into btrfs filesystem operations 255 270 </para> 256 271 <indexterm zone="btrfs-progs btrfs-prog"> … … 264 279 <listitem> 265 280 <para> 266 converts from an ext2/3/4 filesystem to btrfs.281 converts from an ext2/3/4 or reiserfs filesystem to btrfs 267 282 </para> 268 283 <indexterm zone="btrfs-progs btrfs-convert"> … … 276 291 <listitem> 277 292 <para> 278 is a filter to find btrfs root .293 is a filter to find btrfs root 279 294 </para> 280 295 <indexterm zone="btrfs-progs btrfs-find-root"> … … 288 303 <listitem> 289 304 <para> 290 maps btrfs logical extent to physical extent .305 maps btrfs logical extent to physical extent 291 306 </para> 292 307 <indexterm zone="btrfs-progs btrfs-map-logical"> … … 300 315 <listitem> 301 316 <para> 302 overwrites the primary superblock with a backup copy .317 overwrites the primary superblock with a backup copy 303 318 </para> 304 319 <indexterm zone="btrfs-progs btrfs-select-super"> … … 312 327 <listitem> 313 328 <para> 314 tunes various filesystem parameters .329 tunes various filesystem parameters 315 330 </para> 316 331 <indexterm zone="btrfs-progs btrfstune"> … … 324 339 <listitem> 325 340 <para> 326 does nothing, but is present for consistency with fstab .341 does nothing, but is present for consistency with fstab 327 342 </para> 328 343 <indexterm zone="btrfs-progs fsck.btrfs"> … … 336 351 <listitem> 337 352 <para> 338 creates a btrfs file system .353 creates a btrfs file system 339 354 </para> 340 355 <indexterm zone="btrfs-progs mkfs.btrfs">
Note:
See TracChangeset
for help on using the changeset viewer.