yaffs More tests
[yaffs2.git] / direct / timothy_tests / quick_tests / current_bugs.txt
1
2 Made by Timothy Manning <timothy@yaffs.net> on 08/11/2010
3
4
5 Current BUGS 
6
7         
8
9         Bug with truncating to a very large size. The yaffs_truncate function truncates the file to a massive size without any errors.
10         The function should return the error EINVAL. 
11
12         Bug with lseeking to a very large size (size =100000000000000000000000000000000000000) without causing an error.
13         Should cause the error EINVAL.
14
15
16         Bug when writing a file. The writing to the file causes the file size to exceed the size of yaffs file system memory.
17         Output of test:
18                 test_yaffs_write_big_file 
19                 AddrToChunk of offset -2147483648 gives chunk -1048576 start 0
20                 AddrToChunk of offset -2147481600 gives chunk -1048575 start 0
21                 AddrToChunk of offset -2147479552 gives chunk -1048574 start 0  
22                 AddrToChunk of offset -2147477504 gives chunk -1048573 start 0
23                 AddrToChunk of offset -2147475456 gives chunk -1048572 start 0
24                 AddrToChunk of offset -2147473408 gives chunk -1048571 start 0
25                 AddrToChunk of offset -2147471360 gives chunk -1048570 start 0
26                 AddrToChunk of offset -2147469312 gives chunk -1048569 start 0  
27                 AddrToChunk of offset -2147467264 gives chunk -1048568 start 0
28                 AddrToChunk of offset -2147465216 gives chunk -1048567 start 0
29                 wrote a large amount of text to a file.(which is a bad thing)
30                 test: test_yaffs_write_big_file failed
31                 yaffs_error code 0
32                 error is : Unknown error code
33
34
35 Current WARNINGS
36         
37         WARNING- If yaffs is unmounted then most of yaffs' functions return ENODIR. 
38         But some function return EBADF instead.
39         Functions which return ENOTDIR: open, close, access, unlink, lseek, write, read
40
41         Functions which return ENOENT: access, stat
42         
43
44
45         WARNING-the function yaffs_open does not check the mode passed to it. 
46         This means that yaffs open does not return EINVAL if a bad mode is passed to it.
47         However this causes the error EEXIST to happen instead, because both O_CREAT and O_EXCL  flags are set.
48
49         WARNING- yaffs_open will work with either of the two mode set to 255.
50         However there are only 4 or 5 flags that can be set for each of the modes.
51         This means that the programmer may not be setting the flags properly.  
52
53         WARNING- When mounting a non-existing mount point the error ENODEV is returned.
54         The quick tests have been altered to accommodate this error code.    
55         With standard access function in linux the error returned is ENOENT.