tomb

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

commit c47ab2d68b6354419fcd06ae0f76afea03b7f766
parent fe0e1dfabdaf4fb59d939a3fbdc8fb9336bb6072
Author: Jaromil <jaromil@dyne.org>
Date:   Sun, 22 Aug 2010 19:56:29 +0200

fix umount
and some notes

Diffstat:
Msrc/tomb | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/tomb b/src/tomb @@ -134,7 +134,7 @@ PATH=/usr/bin:/usr/sbin:/bin:/sbin ### main() ### -notice "tomb - simple commandline tool for encrypted storage" +notice "Tomb - simple commandline tool for encrypted storage" act "version $VERSION ($DATE) by Denis J. Roio <jaromil@dyne.org>" #act "invoked with args \"$*\" " #act "running on `date`" @@ -421,8 +421,13 @@ mount_tomb() { act "encrypted storage filesystem check" fsck.ext3 -p -C0 /dev/mapper/${mapper} - + + + mount -t ext3 /dev/mapper/${mapper} ${MOUNT} +# TODO: possible mount options to try out: +# -o rw,noatime,nodev,data=writeback,commit=30 +# -o rw,noatime,nodev notice "encrypted storage $FILE succesfully mounted on $MOUNT" append_line /var/run/tombs "${MOUNT} ${mapper} ${nstloop}" @@ -478,7 +483,7 @@ umount_tomb() { exit 0 fi - losetup -d "`echo $mapper | cut -d. -f4`" + losetup -d "/dev/`echo $mapper | cut -d. -f4`" # echo ${nstloop} | grep loop 1>/dev/null 2>/dev/null # # if it's a loopback then we need to do losetup -d