2019-05-15 14:47:42 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# https://bugzilla.kernel.org/show_bug.cgi?id=200085
|
|
|
|
#
|
|
|
|
# The --dump option should follow the --max-errors and not loop indefinetelly
|
|
|
|
# by default
|
|
|
|
|
2023-04-19 15:08:41 +00:00
|
|
|
source "$TEST_TOP/common" || exit
|
2019-05-15 14:47:42 +00:00
|
|
|
|
|
|
|
check_prereq btrfs
|
|
|
|
|
|
|
|
printf 'btrfs-stream\0\0\0\0\0' | run_mustfail "parsing invalid stream did not fail" \
|
|
|
|
"$TOP/btrfs" receive --dump
|
|
|
|
printf 'btrfs-stream\0\0\0\0\0' | run_mustfail "parsing invalid stream did not fail" \
|
|
|
|
"$TOP/btrfs" receive --dump -E 1
|
|
|
|
printf 'btrfs-stream\0\0\0\0\0' | run_mustfail "parsing invalid stream did not fail" \
|
|
|
|
"$TOP/btrfs" receive --dump -E 10
|