tTomb size lower limit - tomb - the crypto undertaker HTML git clone git://parazyd.org/tomb.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit f37f7dd51df9270fdd0f5aeec81f819aabc5c190 DIR parent 568cc43ab69457b2a7be979802fd92194a8eb6d5 HTML 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: M tomb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/tomb b/tomb t@@ -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}`"