3 OST=`../utils/obdctl name2dev OSCDEV`
4 MDS=`../utils/obdctl name2dev MDCDEV`
7 umount /mnt/lustre || exit -1
9 mount -t lustre_lite -o ost=$OST,mds=$MDS none /mnt/lustre || exit -1
14 mkdir /mnt/lustre/dir2
16 # Test mkdir on existing directory
21 # Test mkdir on existing directory with no locks already held
26 # Use mknod to create a file
27 ./mcreate /mnt/lustre/file
28 # ...on an existing file.
29 ./mcreate /mnt/lustre/file
33 # Use mknod to create a file with no locks already held
34 ./mcreate /mnt/lustre/file
38 ls -l /mnt/lustre/file
43 ./mcreate /mnt/lustre/file2
45 ./mcreate /mnt/lustre/file3
49 ./tchmod 777 /mnt/lustre/file3
53 ./mcreate /mnt/lustre/file4
54 ./tchmod 777 /mnt/lustre/file4
58 ls -l /mnt/lustre/file4
59 ./tchmod 777 /mnt/lustre/file4
64 ./tchmod 777 /mnt/lustre/file4
68 touch /mnt/lustre/file5
69 touch /mnt/lustre/file6
70 touch /mnt/lustre/file5
74 touch /mnt/lustre/file5
78 echo foo >> /mnt/lustre/file
85 echo foo >> /mnt/lustre/iotest
86 echo bar >> /mnt/lustre/iotest
87 cat /mnt/lustre/iotest
91 cat /mnt/lustre/iotest
92 echo baz >> /mnt/lustre/iotest
100 mkdir /mnt/lustre/new
106 mkdir /mnt/lustre/newer
111 cat /mnt/lustre/iotest
112 echo "Testing truncation..."
113 echo foo > /mnt/lustre/iotest
114 echo bar >> /mnt/lustre/iotest
115 cat /mnt/lustre/iotest
116 echo "trucating to 4 bytes now..."
117 ./truncate /mnt/lustre/iotest 4
118 cat /mnt/lustre/iotest
123 rmdir /mnt/lustre/foo