sync
insmod translucency.o 
echo "/tmp/fromdir -> /tmp/todir" > /proc/sys/translucency/0
find /tmp/todir /tmp/fromdir | sort
/tmp/fromdir
/tmp/fromdir/have_testfiles
/tmp/fromdir/link
/tmp/fromdir/link2
/tmp/fromdir/link3
/tmp/fromdir/link4
/tmp/fromdir/link5
/tmp/fromdir/link6
/tmp/fromdir/link7
/tmp/fromdir/link8
/tmp/fromdir/static
/tmp/fromdir/sub
/tmp/fromdir/sub/static
/tmp/fromdir/sub/test
/tmp/fromdir/sub2
/tmp/fromdir/sub3
/tmp/fromdir/sub3/test
/tmp/fromdir/test
/tmp/todir
/tmp/todir/have_testfiles
/tmp/todir/link2
/tmp/todir/link4
/tmp/todir/link5
/tmp/todir/link6
/tmp/todir/sub2
/tmp/todir/sub2/dynamic
/tmp/todir/sub2/test
/tmp/todir/sub3
/tmp/todir/sub3/test
/tmp/todir/test
find /tmp/fromdir/link5/ /tmp/fromdir/link8/ | sort	#/tmp/fromdir/link6
/tmp/fromdir/link5/
/tmp/fromdir/link5/static
/tmp/fromdir/link5/test
/tmp/fromdir/link8/
/tmp/fromdir/link8/test
sleep 1
cat /tmp/fromdir/test
this is file "test"
cat /tmp/fromdir/static
this is file "static"
cat /tmp/fromdir/sub/test
this is static file "sub/test"
cat /tmp/fromdir/sub2/test
this is overlayed file "sub2/test"
cat /tmp/fromdir/sub3/test
this is file "sub3/test"
cat /tmp/fromdir/sub2/static
this is file "sub2/static"
cat /tmp/fromdir/link
this is file "static"
cat /tmp/fromdir/link2
this is file "/tmp/linktest"
cat /tmp/fromdir/link3
this is file "sub3/test"
cat /tmp/fromdir/link4
this is file "sub/static"
cat /tmp/fromdir/link5/test
this is static file "sub/test"
cat /tmp/fromdir/link6/test
this is static file "sub2/test"
cat /tmp/fromdir/link7/test
cat: /tmp/fromdir/link7/test: No such file or directory
make[1]: [test] Error 1 (ignored)
cat /tmp/fromdir/link8/test
this is file "sub3/test"
cat /tmp/fromdir/sub/../sub3/test
this is file "sub3/test"
cat /tmp/fromdir/sub3/../sub/test
this is static file "sub/test"
echo devices are bad... > /tmp/fromdir/sub2/null
cat /tmp/fromdir/sub2/null
test `ls /tmp/fromdir/sub2/test*|wc -l` -ge 2 && echo we have multiple dir-entries
make[1]: [test] Error 1 (ignored)
/tmp/fromdir/sub2/exectest
static
echo echo appended >>/tmp/fromdir/sub2/exectest
/tmp/fromdir/sub2/exectest
static
appended
rm /tmp/fromdir/sub2/exectest
echo -e \#\!/bin/sh\\necho overridden > /tmp/fromdir/sub2/exectest
/tmp/fromdir/sub2/exectest
overridden
rm /tmp/fromdir/sub2/exectest
/tmp/fromdir/sub2/exectest
make[1]: /tmp/fromdir/sub2/exectest: Command not found
make[1]: [test] Error 127 (ignored)
echo 2 > /proc/sys/translucency/flags
echo echo appended >>/tmp/fromdir/sub2/exectest
/tmp/fromdir/sub2/exectest
appended
echo 4 > /proc/sys/translucency/flags
find /tmp/fromdir | sort
/tmp/fromdir
/tmp/fromdir/link
/tmp/fromdir/link2
/tmp/fromdir/link3
/tmp/fromdir/link7
/tmp/fromdir/link8
/tmp/fromdir/static
/tmp/fromdir/sub
/tmp/fromdir/sub/static
/tmp/fromdir/sub/test
/tmp/fromdir/sub2
/tmp/fromdir/sub2/exectest
/tmp/fromdir/sub2/fifo
/tmp/fromdir/sub2/null
/tmp/fromdir/sub2/static
/tmp/fromdir/sub2/test
echo 1 > /proc/sys/translucency/flags
find /tmp/fromdir /tmp/todir | sort
/tmp/fromdir
/tmp/fromdir/link
/tmp/fromdir/link2
/tmp/fromdir/link3
/tmp/fromdir/link7
/tmp/fromdir/link8
/tmp/fromdir/static
/tmp/fromdir/sub
/tmp/fromdir/sub/static
/tmp/fromdir/sub/test
/tmp/fromdir/sub2
/tmp/fromdir/sub2/exectest
/tmp/fromdir/sub2/fifo
/tmp/fromdir/sub2/null
/tmp/fromdir/sub2/static
/tmp/fromdir/sub2/test
/tmp/todir
/tmp/todir/have_testfiles
/tmp/todir/link2
/tmp/todir/link4
/tmp/todir/link5
/tmp/todir/link6
/tmp/todir/sub2
/tmp/todir/sub2/dynamic
/tmp/todir/sub2/exectest
/tmp/todir/sub2/test
/tmp/todir/sub3
/tmp/todir/sub3/test
/tmp/todir/test
cat /tmp/fromdir/sub2/test
this is static file "sub2/test"
/tmp/fromdir/sub2/exectest
static
echo 0 > /proc/sys/translucency/flags
/tmp/fromdir/sub2/exectest
appended
rm /tmp/fromdir/sub2/exectest
echo "" > /proc/sys/translucency/0
rmmod translucency
