blob: 2f961d43f1df5135f0380b866b71c12aa40ca909 [file] [log] [blame]
Chris Dearman37550cf2012-10-17 19:54:01 -07001The ReadOnly Bind mount tests, uses the filesystems tests from
subrata_modakd5073b92008-08-11 10:01:12 +00002the {LTPROOT}/testcases/kernel/fs .
3
4EXECUTING TESTS
5==================
6The tests can be executed through runltp like:
7
8./runltp -f fs_readonly
9
10Following tests are executed when the above is invoked:
11
12IOGEN & DOIO
13 |
Chris Dearman37550cf2012-10-17 19:54:01 -070014 ----- iogen
subrata_modakd5073b92008-08-11 10:01:12 +000015 |
16 ----- doio
17 |
18 ----- rwtest
19 |
20 ----- growfiles
21FS_INOD
22LINKTEST
23OPENFILE
24INODE
25STREAM
26FTEST
27LFTEST
28WRITETEST.
29
30IOGEN & DOIO
31=============
32
33 This is a pair of programs that does basic I/O operations on a set of files.
34The file offset, I/O length, I/O operation, and what open(2) flags are
35selected randomly from a pre-defined or commandline given set. All data
36written can be verified (this is the usual method).
37
38RWTest
39-----
40rwtest is a shell script that is a wrapper of iogen and doio.
41
42Growfiles
43--------
44Growfiles will create and truncate files in gradual steps using write and lseek.
Chris Dearman37550cf2012-10-17 19:54:01 -070045The system calls are checked for proper returns.
subrata_modakd5073b92008-08-11 10:01:12 +000046
47FS_INOD
48============
49
50File system stress - inode allocation/deallocation.
Chris Dearman37550cf2012-10-17 19:54:01 -070051Rapidly creates and deletes files through multiple processes running in the
52background.
subrata_modakd5073b92008-08-11 10:01:12 +000053
54
55LINKTEST
56===========
57
Chris Dearman37550cf2012-10-17 19:54:01 -070058Linktest.pl is a simple test that attempts to create a given number of hard
subrata_modakd5073b92008-08-11 10:01:12 +000059links and symbolic links to a single file.
60
61
62OPENFILE
63===========
64
65Create files and open simultaneously.
66
67INODE
68==================
69
70Does the File system managment and I/O functions work.
71This Construct a directory tree, create files in it, and verify
Chris Dearman37550cf2012-10-17 19:54:01 -070072that this was done as expected. It uses the syscalls mkdir, stat, open
subrata_modakd5073b92008-08-11 10:01:12 +000073
74
75STREAM
76============
77
78Performs different tests on the stream syscalls.
79This uses the syscalls freopen, fopen, mknod, ftell, fwrite, fread, ferror,
80feof, clearerr and fileno.
81
82FTEST
83=========
Chris Dearman37550cf2012-10-17 19:54:01 -070084Tests the file I/O, Inodes.
85Uses the syscalls
subrata_modakd5073b92008-08-11 10:01:12 +000086 * lseek, read, write, truncate, ftruncate, fsync, sync, fstat
87 * open, close, unlink, chdir, readv, writev, lseek64, llseek
88
89LFTEST
90==========
91
92Uses the lseek64.
93This writes one buffer at a time and lseeks from the beginning of the file to the
94end of the last write position
95
96
97WRITETEST
98=============
99
100This test verifies that writes to disk occur without corruption.
Chris Dearman37550cf2012-10-17 19:54:01 -0700101Once done , the file is re-opened, the random number generator
subrata_modakd5073b92008-08-11 10:01:12 +0000102is re-seeded, and the file is verified.
103
104IOCTL
105========
106( Note: Writing the tests to include tests on the ioctl system calls.)
107