2022-04-19 11:36:22 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Make sure btrfstune will not set seed flag when the fs has dirty log
|
|
|
|
|
2023-04-19 15:08:41 +00:00
|
|
|
source "$TEST_TOP/common" || exit
|
2022-04-19 11:36:22 +00:00
|
|
|
|
|
|
|
check_prereq btrfstune
|
|
|
|
|
|
|
|
image=$(extract_image "./dirty_log.img.xz")
|
|
|
|
|
|
|
|
run_mustfail "btrfstune should reject fs with dirty log for seeding flag" \
|
|
|
|
"$TOP/btrfstune" -S1 "$image"
|