mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-01-03 14:17:37 +00:00
Fix operators to compare numerically, not lexicographically
The operator < compares two strings lexicographically resulting in that a 100MB tomb is considered smaller than 47MB or 18MB. Closes #489
This commit is contained in:
parent
0c8d4cf477
commit
dcdf4cb3bb
4
tomb
4
tomb
@ -2162,13 +2162,13 @@ lock_tomb_with_key() {
|
|||||||
ext3|ext4) ;;
|
ext3|ext4) ;;
|
||||||
ext3maxinodes|ext4maxinodes) ;;
|
ext3maxinodes|ext4maxinodes) ;;
|
||||||
btrfs)
|
btrfs)
|
||||||
if [[ $tombsize < 49283072 ]]; then
|
if [[ $tombsize -lt 49283072 ]]; then
|
||||||
_failure "Filesystem ::1 filesystem:: not supported on tombs smaller than 47MB." \
|
_failure "Filesystem ::1 filesystem:: not supported on tombs smaller than 47MB." \
|
||||||
$filesystem
|
$filesystem
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
btrfsmixedmode)
|
btrfsmixedmode)
|
||||||
if [[ $tombsize < 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 18MB." \
|
||||||
$filesystem
|
$filesystem
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user