source: rtems/testsuites/psxtests/psxmount/psxmount.scn @ 847ad44

4.11
Last change on this file since 847ad44 was 847ad44, checked in by Sebastian Huber <sebastian.huber@…>, on May 23, 2012 at 9:39:50 AM

Filesystem: Wait for unmount() to finish

  • Property mode set to 100644
File size: 3.9 KB
Line 
1*** MOUNT/UNMOUNT TEST ***
2
3chdir to the root directory
4chdir() status : 0
5
6
7Creating a series of directories under /
8Creating :                         a  0 0    Success
9Creating :                         b  0 0    Success
10Creating :                         c  0 0    Success
11Creating :                         d  0 0    Success
12Creating :                         e  0 0    Success
13Creating :                         f  0 0    Success
14Creating :                       c/y  0 0    Success
15Creating :                       c/z  0 0    Success
16Creating :                       c/x  0 0    Success
17Creating :                 c/y/a3333  0 0    Success
18Creating :                  c/y/j123  0 0    Success
19Creating :        c/y/my_mount_point  0 0    Success
20Creating : c/y/my_mount_point/my_dir  0 0    Success
21Creating :        c/z/my_mount_point  0 0    Success
22create /b/my_file
23Verify /b/my_file
24create c/y/my_mount_point/my_dir/d
25Verify c/y/my_mount_point/my_dir/d
26Attempting to mount IMFS file system at /c/z/my_mount_point
272nd file system successfully mounted at /c/z/my_mount_point
28
29chdir to /c/z/my_mount_point.
30chdir() status : 0
31
32
33Creating a series of directories under /c/z/my_mount_point
34Creating:                                              a   0 0    Success
35Creating:                                              b   0 0    Success
36Creating:                                              c   0 0    Success
37Creating:                                              d   0 0    Success
38Creating:                                              e   0 0    Success
39Creating:                                              f   0 0    Success
40Creating:                                            c/y   0 0    Success
41Creating:                                            c/z   0 0    Success
42Creating:                                            c/x   0 0    Success
43Creating:                                      c/y/a3333   0 0    Success
44Creating:                                       c/y/j123   0 0    Success
45Creating:                             c/y/my_mount_point   0 0    Success
46Creating:                      c/y/my_mount_point/my_dir   0 0    Success
47Creating:                    c/y/my_mount_point/my_dir/d   0 0    Success
48Creating:                             c/z/my_mount_point   0 0    Success
49Creating: /c/z/my_mount_point/a/../../my_mount_point/a/g   0 0    Success
50
51chdir to /
52chdir() status : 0
53
54Unmount status: 0
55Mount a NULL file system and verify EINVAL
56mount with option of -62 should fail with EINVAL
57Mount a Read Only filesystem at /c/y/my_mount_point
58Read only file system successfully mounted at /c/y/my_mount_point
59create c/y/my_mount_point/../../y/new_dir
60Verify a mount point returns EROFS for another mount
61Unmount /c/y/my_mount_point
62Mount a read-write file system at /c/y/my_mount_point
63Verify a mount point returns EBUSY for another mount
64Mount on a file should fail with ENOTDIR
65Create and chdir to /c/y/my_mount_point/mydir
66unmount of /c/y/my_mount_point should fail with EBUSY
67chroot to /c/y/my_mount_point
68unmount of . should fail with EBUSY
69chroot to / and verify we can unmount /c/y/my_mount_point
70unmount of /c/y/my_mount_point
71chdir to /c/y/my_mount_point/my_dir should fail with ENOENT
72unmount /b/mount_point should fail with EINVAL
73Mount /c/y/my_mount_point
74Create and open /c/y/my_mount_point/my_file
75
76mkdir /c/y/my_mount_point/my_sub_fs_dir
77open /c/y/my_mount_point/my_sub_fs_dir
78close /c/y/my_mount_point/my_sub_fs_dir
79mkdir /c/y/my_mount_point/my_sub_fs_dir should fail with EEXIST
80unmount /c/y/my_mount_point
81mkdir /c/y/my_mount_point/my_sub_fs_dir
82rmdir /c/y/my_mount_point/my_sub_fs_dir
83Unmount /c/y/my_mount_point/my_dir should fail with EACCES
84Mount a file system at /c/y/my_mount_point
85Verify a hard link across filesystems fails with EXDEV
86Verify a symbolic link across file systems works
87unmount /c/y/my_mount_point
88Verify the symbolic link now fails
89
90
91*** END OF MOUNT/UNMOUNT TEST ***
Note: See TracBrowser for help on using the repository browser.