1f08c3bdfSopenharmony_ciThe ReadOnly Bind mount tests, uses the filesystems tests from
2f08c3bdfSopenharmony_cithe {LTPROOT}/testcases/kernel/fs .
3f08c3bdfSopenharmony_ci
4f08c3bdfSopenharmony_ciEXECUTING TESTS
5f08c3bdfSopenharmony_ci==================
6f08c3bdfSopenharmony_ciThe tests can be executed through runltp like:
7f08c3bdfSopenharmony_ci
8f08c3bdfSopenharmony_ci./runltp -f fs_readonly
9f08c3bdfSopenharmony_ci
10f08c3bdfSopenharmony_ciFollowing tests are executed when the above is invoked:
11f08c3bdfSopenharmony_ci
12f08c3bdfSopenharmony_ciIOGEN & DOIO
13f08c3bdfSopenharmony_ci   |
14f08c3bdfSopenharmony_ci    ----- iogen
15f08c3bdfSopenharmony_ci   |
16f08c3bdfSopenharmony_ci    ----- doio
17f08c3bdfSopenharmony_ci   |
18f08c3bdfSopenharmony_ci    ----- rwtest
19f08c3bdfSopenharmony_ci   |
20f08c3bdfSopenharmony_ci    ----- growfiles
21f08c3bdfSopenharmony_ciFS_INOD
22f08c3bdfSopenharmony_ciLINKTEST
23f08c3bdfSopenharmony_ciOPENFILE
24f08c3bdfSopenharmony_ciINODE
25f08c3bdfSopenharmony_ciSTREAM
26f08c3bdfSopenharmony_ciFTEST
27f08c3bdfSopenharmony_ciLFTEST
28f08c3bdfSopenharmony_ciWRITETEST.
29f08c3bdfSopenharmony_ci
30f08c3bdfSopenharmony_ciIOGEN & DOIO
31f08c3bdfSopenharmony_ci=============
32f08c3bdfSopenharmony_ci
33f08c3bdfSopenharmony_ci    This is a pair of programs that does basic I/O operations on a set of files.
34f08c3bdfSopenharmony_ciThe file offset, I/O length, I/O operation, and what open(2) flags are
35f08c3bdfSopenharmony_ciselected randomly from a pre-defined or commandline given set. All data
36f08c3bdfSopenharmony_ciwritten can be verified (this is the usual method).
37f08c3bdfSopenharmony_ci
38f08c3bdfSopenharmony_ciRWTest
39f08c3bdfSopenharmony_ci-----
40f08c3bdfSopenharmony_cirwtest is a shell script that is a wrapper of iogen and doio.
41f08c3bdfSopenharmony_ci
42f08c3bdfSopenharmony_ciGrowfiles
43f08c3bdfSopenharmony_ci--------
44f08c3bdfSopenharmony_ciGrowfiles will create and truncate files in gradual steps using write and lseek.
45f08c3bdfSopenharmony_ciThe system calls are checked for proper returns.
46f08c3bdfSopenharmony_ci
47f08c3bdfSopenharmony_ciFS_INOD
48f08c3bdfSopenharmony_ci============
49f08c3bdfSopenharmony_ci
50f08c3bdfSopenharmony_ciFile system stress - inode allocation/deallocation.
51f08c3bdfSopenharmony_ciRapidly creates and deletes files through multiple processes running in the
52f08c3bdfSopenharmony_cibackground.
53f08c3bdfSopenharmony_ci
54f08c3bdfSopenharmony_ci
55f08c3bdfSopenharmony_ciLINKTEST
56f08c3bdfSopenharmony_ci===========
57f08c3bdfSopenharmony_ci
58f08c3bdfSopenharmony_ciLinktest.pl is a simple test that attempts to create a given number of hard
59f08c3bdfSopenharmony_cilinks and symbolic links to a single file.
60f08c3bdfSopenharmony_ci
61f08c3bdfSopenharmony_ci
62f08c3bdfSopenharmony_ciOPENFILE
63f08c3bdfSopenharmony_ci===========
64f08c3bdfSopenharmony_ci
65f08c3bdfSopenharmony_ciCreate files and open simultaneously.
66f08c3bdfSopenharmony_ci
67f08c3bdfSopenharmony_ciINODE
68f08c3bdfSopenharmony_ci==================
69f08c3bdfSopenharmony_ci
70f08c3bdfSopenharmony_ciDoes the File system managment and I/O functions work.
71f08c3bdfSopenharmony_ciThis Construct a directory tree, create files in it, and verify
72f08c3bdfSopenharmony_cithat this was done as expected. It uses the syscalls mkdir, stat, open
73f08c3bdfSopenharmony_ci
74f08c3bdfSopenharmony_ci
75f08c3bdfSopenharmony_ciSTREAM
76f08c3bdfSopenharmony_ci============
77f08c3bdfSopenharmony_ci
78f08c3bdfSopenharmony_ciPerforms different tests on the stream  syscalls.
79f08c3bdfSopenharmony_ciThis uses the syscalls freopen, fopen, mknod, ftell, fwrite, fread,  ferror,
80f08c3bdfSopenharmony_cifeof, clearerr and fileno.
81f08c3bdfSopenharmony_ci
82f08c3bdfSopenharmony_ciFTEST
83f08c3bdfSopenharmony_ci=========
84f08c3bdfSopenharmony_ciTests the file I/O, Inodes.
85f08c3bdfSopenharmony_ciUses the syscalls
86f08c3bdfSopenharmony_ci * lseek, read, write,  truncate, ftruncate, fsync, sync, fstat
87f08c3bdfSopenharmony_ci * open, close, unlink, chdir, readv, writev, lseek64, llseek
88f08c3bdfSopenharmony_ci
89f08c3bdfSopenharmony_ciLFTEST
90f08c3bdfSopenharmony_ci==========
91f08c3bdfSopenharmony_ci
92f08c3bdfSopenharmony_ciUses the lseek64.
93f08c3bdfSopenharmony_ciThis writes one buffer at a time and lseeks from the beginning of the file to the
94f08c3bdfSopenharmony_ciend of the last write position
95f08c3bdfSopenharmony_ci
96f08c3bdfSopenharmony_ci
97f08c3bdfSopenharmony_ciWRITETEST
98f08c3bdfSopenharmony_ci=============
99f08c3bdfSopenharmony_ci
100f08c3bdfSopenharmony_ciThis test verifies that writes to disk occur without corruption.
101f08c3bdfSopenharmony_ciOnce done , the file is re-opened, the random number generator
102f08c3bdfSopenharmony_ciis re-seeded, and the file is verified.
103f08c3bdfSopenharmony_ci
104f08c3bdfSopenharmony_ciIOCTL
105f08c3bdfSopenharmony_ci========
106f08c3bdfSopenharmony_ci( Note: Writing the tests to  include tests on the ioctl system calls.)
107f08c3bdfSopenharmony_ci
108