1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
|
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
|