www.pudn.com > cryptfs030905.rar > testit.sh


#!/bin/bash -norc
set -x

strace -v ./mapper1 /mnt/cryptfs/BAR.TXT 0 20

exit 0

# attach a node so /mnt/cryptfs/abc -> /n/fist/zadok
./fist_ioctl +a /mnt/cryptfs abc /n/fist/zadok
#read n
#./fist_ioctl +a /mnt/cryptfs XyZ23q /some/place
exit 1

#ls -l /mnt/cryptfs/uname

#read n
file=foo-$RANDOM

## shift inward test
#echo 'abcdefghijklmnopqrstuvwxyz0123456789' > /mnt/cryptfs/$file
#read n
#echo 'XXXXXXXXXX' | ~ib42/c/test/write /mnt/cryptfs/$file 10

## shift outward test
#echo 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' > /mnt/cryptfs/$file
cp /bin/ls /mnt/cryptfs/$file
read n
echo '1234567890' | ~ib42/c/test/write /mnt/cryptfs/$file 4110

read n
cat <> /mnt/cryptfs/G

#  touch /mnt/cryptfs/$file
#  ls -l /mnt/cryptfs/$file
#  read n
#  #perl -e "print 'a' x 80" >> /mnt/cryptfs/$file
#  ~ib42/c/test/truncate /mnt/cryptfs/$file 100
#  read n
#  #perl -e "print 'b' x 4900" >> /mnt/cryptfs/$file
#  ~ib42/c/test/truncate /mnt/cryptfs/$file 5000
#  read n
#  date >> /mnt/cryptfs/$file
#  read n
#  hexdump /mnt/cryptfs/$file


#echo
#cp /etc/termcap /mnt/cryptfs/$file
#read n
#od -Ax -h /n/fist/cryptfs/$file
#ls -l /mnt/cryptfs/$file