Back to home page

LXR

 
 

    


Warning, /testsuites/psxtests/psxmount/psxmount.scn is written in an unsupported language. File is not indexed.

0001 *** MOUNT/UNMOUNT TEST ***
0002 
0003 chdir to the root directory
0004 chdir() status : 0
0005 
0006 
0007 Creating a series of directories under /
0008 Creating :                         a  0 0    Success
0009 Creating :                         b  0 0    Success
0010 Creating :                         c  0 0    Success
0011 Creating :                         d  0 0    Success
0012 Creating :                         e  0 0    Success
0013 Creating :                         f  0 0    Success
0014 Creating :                       c/y  0 0    Success
0015 Creating :                       c/z  0 0    Success
0016 Creating :                       c/x  0 0    Success
0017 Creating :                 c/y/a3333  0 0    Success
0018 Creating :                  c/y/j123  0 0    Success
0019 Creating :        c/y/my_mount_point  0 0    Success
0020 Creating : c/y/my_mount_point/my_dir  0 0    Success
0021 Creating :        c/z/my_mount_point  0 0    Success
0022 create /b/my_file
0023 Verify /b/my_file
0024 create c/y/my_mount_point/my_dir/d
0025 Verify c/y/my_mount_point/my_dir/d
0026 Attempting to mount IMFS file system at /c/z/my_mount_point 
0027 2nd file system successfully mounted at /c/z/my_mount_point 
0028 
0029 chdir to /c/z/my_mount_point.
0030 chdir() status : 0
0031 
0032 
0033 Creating a series of directories under /c/z/my_mount_point
0034 Creating:                                              a   0 0    Success
0035 Creating:                                              b   0 0    Success
0036 Creating:                                              c   0 0    Success
0037 Creating:                                              d   0 0    Success
0038 Creating:                                              e   0 0    Success
0039 Creating:                                              f   0 0    Success
0040 Creating:                                            c/y   0 0    Success
0041 Creating:                                            c/z   0 0    Success
0042 Creating:                                            c/x   0 0    Success
0043 Creating:                                      c/y/a3333   0 0    Success
0044 Creating:                                       c/y/j123   0 0    Success
0045 Creating:                             c/y/my_mount_point   0 0    Success
0046 Creating:                      c/y/my_mount_point/my_dir   0 0    Success
0047 Creating:                    c/y/my_mount_point/my_dir/d   0 0    Success
0048 Creating:                             c/z/my_mount_point   0 0    Success
0049 Creating: /c/z/my_mount_point/a/../../my_mount_point/a/g   0 0    Success
0050 
0051 chdir to /
0052 chdir() status : 0
0053 
0054 Unmount status: 0
0055 Mount a NULL file system and verify EINVAL
0056 mount with option of -62 should fail with EINVAL
0057 Mount a Read Only filesystem at /c/y/my_mount_point 
0058 Read only file system successfully mounted at /c/y/my_mount_point 
0059 create c/y/my_mount_point/../../y/new_dir
0060 Verify a mount point returns EROFS for another mount
0061 Unmount /c/y/my_mount_point
0062 Mount a read-write file system at /c/y/my_mount_point
0063 Verify a mount point returns EBUSY for another mount
0064 Mount on a file should fail with ENOTDIR
0065 Create and chdir to /c/y/my_mount_point/mydir
0066 unmount of /c/y/my_mount_point should fail with EBUSY
0067 chroot to /c/y/my_mount_point
0068 unmount of . should fail with EBUSY
0069 chroot to / and verify we can unmount /c/y/my_mount_point
0070 unmount of /c/y/my_mount_point
0071 chdir to /c/y/my_mount_point/my_dir should fail with ENOENT
0072 unmount /b/mount_point should fail with EINVAL
0073 Mount /c/y/my_mount_point
0074 Create and open /c/y/my_mount_point/my_file
0075 
0076 mkdir /c/y/my_mount_point/my_sub_fs_dir
0077 open /c/y/my_mount_point/my_sub_fs_dir
0078 close /c/y/my_mount_point/my_sub_fs_dir
0079 mkdir /c/y/my_mount_point/my_sub_fs_dir should fail with EEXIST
0080 unmount /c/y/my_mount_point
0081 mkdir /c/y/my_mount_point/my_sub_fs_dir
0082 rmdir /c/y/my_mount_point/my_sub_fs_dir
0083 Unmount /c/y/my_mount_point/my_dir should fail with EACCES
0084 Mount a file system at /c/y/my_mount_point
0085 Verify a hard link across filesystems fails with EXDEV
0086 Verify a symbolic link across file systems works
0087 unmount /c/y/my_mount_point
0088 Verify the symbolic link now fails
0089 
0090 
0091 *** END OF MOUNT/UNMOUNT TEST ***