"Fossies" - the Fresh Open Source Software Archive

Member "btrfs-progs-v5.4.1/tests/fsck-tests/044-invalid-extent-item-generation/test.sh" (9 Jan 2020, 417 Bytes) of package /linux/misc/btrfs-progs-v5.4.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 #
    3 # Due to a bug in --init-extent-tree option, we may create bad generation
    4 # number for data extents.
    5 #
    6 # This test case will ensure btrfs check can at least detect such problem,
    7 # just like kernel tree-checker.
    8 
    9 source "$TEST_TOP/common"
   10 
   11 check_prereq btrfs
   12 
   13 check_image() {
   14     run_mustfail \
   15         "btrfs check failed to detect invalid extent item generation" \
   16         "$TOP/btrfs" check "$1"
   17 }
   18 
   19 check_all_images