Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
MOUNTS=0
-function roloopify {
- local DIR=$1
- if [ ! -d "$DIR" ] ; then
- echo "Can not find $DIR" 1>&2
- return 1
- fi
- mkisofs -quiet -o /tmp/$$.iso -JR $DIR
- mount -o loop,ro /tmp/$$.iso $DIR
-# rm -f /tmp/$$.iso
- echo "Inspect"
- read N
- return 0
-}
-
function havechattr {
local FILE=tmp.chattr.check
if [ ! -d $1 ] ; then
}
function create_hierarchy {
-# XXX: what's this for?!
-# touch $LOWER_DIR0/f
havechattr $LOWER_DIR0 && chattr -R -i $LOWER_DIR0
havechattr $LOWER_DIR1 && chattr -R -i $LOWER_DIR1