"Fossies" - the Fresh Open Source Software Archive

Member "btrfs-progs-v5.4/tests/misc-tests/037-fi-show-on-new-file/test.sh" (3 Dec 2019, 333 Bytes) of package /linux/misc/btrfs-progs-v5.4.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 # test for 'filesystem show' on fresh local file
    3 
    4 source "$TEST_TOP/common"
    5 
    6 check_prereq mkfs.btrfs
    7 check_prereq btrfs
    8 
    9 IMAGE=$(mktemp -u btrfs-XXXXXX.img)
   10 
   11 run_check truncate -s3g "$IMAGE"
   12 run_check $SUDO_HELPER "$TOP/mkfs.btrfs" -f "$IMAGE"
   13 run_check $SUDO_HELPER "$TOP/btrfs" filesystem show "$IMAGE"
   14 
   15 rm -f "$IMAGE"