elevate minimum size permitted for btrfs filesystem

This commit is contained in:
Jaromil 2024-08-31 05:53:47 +02:00
parent 963a0cc321
commit b7fa057e48
2 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ fi
if test_have_prereq BTRFS; then if test_have_prereq BTRFS; then
test_export "create_btrfs" test_export "create_btrfs"
test_expect_success 'Testing tomb creation using BTRFS filesystem' ' test_expect_success 'Testing tomb creation using BTRFS filesystem' '
tt_dig -s 50 && tt_dig -s 120 &&
tt_forge --tomb-pwd $DUMMYPASS && tt_forge --tomb-pwd $DUMMYPASS &&
print $DUMMYPASS \ print $DUMMYPASS \
| gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \ | gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \

10
tomb
View File

@ -2072,15 +2072,15 @@ lock_tomb_with_key() {
ext3|ext4) ;; ext3|ext4) ;;
ext3maxinodes|ext4maxinodes) ;; ext3maxinodes|ext4maxinodes) ;;
btrfs) btrfs)
if [[ $tombsize -lt 49283072 ]]; then if [[ $tombsize -lt 114294784 ]]; then
_failure "Filesystem ::1 filesystem:: not supported on tombs smaller than 47MB." \ _failure "Filesystem ::1 filesystem:: not supported on tombs smaller than ::2 size::" \
$filesystem $filesystem "114MB"
fi fi
;; ;;
btrfsmixedmode) btrfsmixedmode)
if [[ $tombsize -lt 18874368 ]]; then if [[ $tombsize -lt 18874368 ]]; then
_failure "Filesystem ::1 filesystem:: not supported on tombs smaller than 18MB." \ _failure "Filesystem ::1 filesystem:: not supported on tombs smaller than ::2 size::" \
$filesystem $filesystem "18MB"
fi fi
;; ;;
*) *)