"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/common" between
btrfs-progs-v5.4.tar.xz and btrfs-progs-v5.4.1.tar.xz

About: btrfs-progs are the userspace utilities for the Linux Btrfs filesystem.

common  (btrfs-progs-v5.4.tar.xz):common  (btrfs-progs-v5.4.1.tar.xz)
skipping to change at line 334 skipping to change at line 334
check_image() check_image()
{ {
local image local image
image=$1 image=$1
echo "testing image $(basename $image)" >> "$RESULTS" echo "testing image $(basename $image)" >> "$RESULTS"
"$TOP/btrfs" check "$image" >> "$RESULTS" 2>&1 "$TOP/btrfs" check "$image" >> "$RESULTS" 2>&1
[ $? -eq 0 ] && _fail "btrfs check should have detected corruption" [ $? -eq 0 ] && _fail "btrfs check should have detected corruption"
run_check "$TOP/btrfs" check --repair "$image" run_check "$TOP/btrfs" check --repair --force "$image"
run_check "$TOP/btrfs" check "$image" run_check "$TOP/btrfs" check "$image"
} }
# Extract a usable image from packed formats # Extract a usable image from packed formats
# - raw btrfs filesystem images, suffix .raw # - raw btrfs filesystem images, suffix .raw
# - dtto compressed by XZ, suffix .raw.xz # - dtto compressed by XZ, suffix .raw.xz
# - meta-dump images with suffix .img # - meta-dump images with suffix .img
# - dtto compressed by XZ, suffix .img.xz # - dtto compressed by XZ, suffix .img.xz
# - compressed send stream, .stream.xz # - compressed send stream, .stream.xz
extract_image() extract_image()
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)