tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit f37f7dd51df9270fdd0f5aeec81f819aabc5c190
parent 568cc43ab69457b2a7be979802fd92194a8eb6d5
Author: Jaromil <jaromil@dyne.org>
Date:   Mon, 27 May 2013 21:35:28 +0200

Tomb size lower limit

Most filesystems can't deal with less than 10 MiB space
closes issue #68

Diffstat:
Mtomb | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/tomb b/tomb @@ -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}`"