Tomb size lower limit

Most filesystems can't deal with less than 10 MiB space
closes issue #68
This commit is contained in:
Jaromil 2013-05-27 21:35:28 +02:00
parent 568cc43ab6
commit f37f7dd51d

2
tomb
View File

@ -796,6 +796,8 @@ dig_tomb() {
[[ $tombsize != <-> ]] && die "Size argument is not an integer"
[[ $tombsize -lt 10 ]] && die "Tombs can't be smaller than 10 megabytes"
if [ -e ${tombdir}/${tombfile} ]; then
_warning "A tomb exists already. I'm not digging here:"
_warning " `ls -lh ${tombdir}/${tombfile}`"