yaffs trying to recreate timothy_tests after I deleated them.
[yaffs2.git] / direct / timothy_tests / found_bugs.txt
1 Found bugs in yaffs
2
3 Error code 0 bug (run out of handles)
4         By opening lots of files and not closing them yaffs can run out of handles. 
5         The error code given by yaffs_get_error() returns 0. this error is not defined in yportenv.h
6
7
8 ENOENT error is generated when opening a new file with O_CREATE.
9         This should not be happening and has been logged as an error.
10         To regenerate this error remove the emfile and use the seed 1288064149
11
12 EACCES error
13         This program tries to open a new file in yaffs. The yaffs_open() function returns a -1 handle and gives an error of EACCES.
14         This bug only seems to happen when the emfile has a lot of files in it.
15
16 Mkdir with slash error
17         Yaffs' mkdir function will not work if the path ends in a slash.
18         i.e. /yaffs2/new_dir/
19         This is a known bug and is not likely to be fixed. 
20         To get around this bug remove the slash on the end.
21         i.e. /yaffs2/new_dir
22
23
24
25 BUG in yaffs caused by the program yaffs_importer.py in /direct/python/
26         when the emfile is full yaffs gives these errors when trying to open a file:
27
28 ('adding path ', '/yaffs2/', ' to ', 'yaffs2/direct/basic-test/yaffs_tagscompat.o', ' resulting path: ', '/yaffs2/yaffs2/direct/basic-test/yaffs_tagscompat.o')
29 ('creating file:', '/yaffs2/yaffs2/direct/basic-test/yaffs_tagscompat.o')
30 ('mode', 33188)
31 opening file
32 erase block 248
33 ('current_handle', -1)
34 yaffs free space: 0
35 yaffs is out of space exiting program
36 error with yaffs lseeking
37 error######################################
38 ('error code', -9)
39 error message EBADF
40 ('length of data to be written', 25944)
41 ('error writing file:', -1)
42 error######################################
43 ('error code', -9)
44 error message EBADF
45 ('error truncating file:', -1)
46 error######################################
47 ('error code', -9)
48 error message EBADF
49 ('error closing file:', -1)
50 error######################################
51 ('error code', -9)
52 error message EBADF
53 ('error chmoding file:', -1)
54 error######################################
55 ('error code', -2)
56 error message ENOENT
57
58         yaffs should be giving a no memory error insted of a EBADF.