6 sh llmountcleanup.sh > /dev/null
11 sh llrmount.sh > /dev/null
16 echo '== touch .../f ; rm .../f ======================== test 0'
22 echo '== mkdir .../d1; mkdir .../d1/d2 ================= test 1'
24 mkdir /mnt/lustre/d1/d2
28 echo '== rmdir .../d1/d2; rmdir .../d1 ================= test 1b'
29 rmdir /mnt/lustre/d1/d2
34 echo '== mkdir .../d2; touch .../d2/f ================== test 2'
36 touch /mnt/lustre/d2/f
40 echo '== rm -r .../d2; touch .../d2/f ================== test 2b'
45 echo '== mkdir .../d3 ================================== test 3'
49 echo '== touch .../d3/f ================================ test 3b'
50 touch /mnt/lustre/d3/f
53 echo '== rm -r .../d3 ================================== test 3c'
58 echo '== mkdir .../d4 ================================== test 4'
62 echo '== mkdir .../d4/d2 =============================== test 4b'
63 mkdir /mnt/lustre/d4/d2
67 echo '== mkdir .../d5; mkdir .../d5/d2; chmod .../d5/d2 = test 5'
69 mkdir /mnt/lustre/d5/d2
70 chmod 0666 /mnt/lustre/d5/d2
74 echo '== touch .../f6; chmod .../f6 ==================== test 6'
76 chmod 0666 /mnt/lustre/f6
80 echo '== mkdir .../d7; mcreate .../d7/f; chmod .../d7/f = test 7'
82 ./mcreate /mnt/lustre/d7/f
83 chmod 0666 /mnt/lustre/d7/f
87 echo '== mkdir .../d8; touch .../d8/f; chmod .../d8/f == test 8'
89 touch /mnt/lustre/d8/f
90 chmod 0666 /mnt/lustre/d8/f
95 echo '== mkdir .../d9; mkdir .../d9/d2; mkdir .../d9/d2/d3 == test 9'
97 mkdir /mnt/lustre/d9/d2
98 mkdir /mnt/lustre/d9/d2/d3
103 echo '== mkdir .../d10; mkdir .../d10/d2; touch .../d10/d2/f = test 10'
104 mkdir /mnt/lustre/d10
105 mkdir /mnt/lustre/d10/d2
106 touch /mnt/lustre/d10/d2/f
110 echo '=================================================== test 11'
111 mkdir /mnt/lustre/d11
112 mkdir /mnt/lustre/d11/d2
113 chmod 0666 /mnt/lustre/d11/d2
114 chmod 0555 /mnt/lustre/d11/d2
118 echo '=================================================== test 12'
119 mkdir /mnt/lustre/d12
120 touch /mnt/lustre/d12/f
121 chmod 0666 /mnt/lustre/d12/f
122 chmod 0555 /mnt/lustre/d12/f
126 echo '=================================================== test 13'
127 mkdir /mnt/lustre/d13
128 cp /etc/passwd /mnt/lustre/d13/f
134 echo '=================================================== test 14'
135 mkdir /mnt/lustre/d14
136 touch /mnt/lustre/d14/f
142 echo '=================================================== test 15'
143 mkdir /mnt/lustre/d15
144 touch /mnt/lustre/d15/f
145 mv /mnt/lustre/d15/f /mnt/lustre/d15/f2
149 echo '=================================================== test 16'
150 mkdir /mnt/lustre/d16
151 touch /mnt/lustre/d16/f
152 rm -rf /mnt/lustre/d16/f
156 echo '== symlinks: create, remove (dangling and real) === test 17'
157 mkdir /mnt/lustre/d17
158 touch /mnt/lustre/d17/f
159 ln -s /mnt/lustre/d17/f /mnt/lustre/d17/l-exist
160 ln -s no-such-file /mnt/lustre/d17/l-dangle
161 ls -l /mnt/lustre/d17
162 rm -f /mnt/lustre/l-dangle
163 rm -f /mnt/lustre/l-exist
167 echo '== touch /mnt/lustre/f ; ls /mnt/lustre ========== test 18'
173 echo '== touch /mnt/lustre/f ; ls -l /mnt/lustre ======= test 19'
180 echo '== touch /mnt/lustre/f ; ls -l /mnt/lustre ======= test 20'
193 echo '== write to dangling link ======================= test 21'
194 mkdir /mnt/lustre/d21
195 ln -s dangle /mnt/lustre/d21/link
196 echo foo >> /mnt/lustre/d21/link
197 cat /mnt/lustre/d21/dangle
201 # echo '== unpack tar archive as nonroot user =========== test 22'
202 echo '== please fix test 22'
203 # mkdir /mnt/lustre/d22
204 # chown 4711 /mnt/lustre/d22
205 # (./setuid 4711 ; tar cf - /etc/hosts /etc/sysconfig/network | tar xfC - /mnt/lustre/d22 ; ./setuid 0)
206 # ls -lR /mnt/lustre/d22/etc
210 echo '== O_CREAT|O_EXCL in subdir ===================== test 23'
211 mkdir /mnt/lustre/d23
212 ./toexcl /mnt/lustre/d23/f23
213 ./toexcl /mnt/lustre/d23/f23
217 echo '======================= finished ======================='