mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-26 06:46:30 +00:00
elevate minimum size permitted for btrfs filesystem
This commit is contained in:
parent
963a0cc321
commit
b7fa057e48
@ -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
10
tomb
@ -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
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user