The ENODEV is the error which yaffs gives instead of ENOENT.
BBut the mount function should just return ENAMETOOLONG.
- Bug when mounting a non-existing mount point. The error code returned is
- ENODEV.
-
Bug when trying to use yaffs_access on an existing file with mode 255
the error returned is EACCES it should be EINVAL(note there is no quick test file yet).
Bug truncating a file to a size of -1 does not cause an error.
+
+ Bug with opening a file with bad mode. yaffs_open has two modes which
+ are passed into it. if the modes are set to 255 the open function
+ does not report any errors. (Also need to try this with modes set to -1.)
+
+ Bug with lseeking to a very large size (size =100000000000000000000000000000000000000) without causing an error.
+ Should cause the error EINVAL.
+
Current WARNINGS
+
+ WARNING- truncating a file to a size greater than the maximum file size returns
+ EINVAL. In standard linux system the error EFBIG is returned.
+
WARNING- If yaffs is unmounted then most of yaffs' functions return ENODIR.
some function return EBADF instead.