yaffs2.git
13 years agoyaffs direct: Fix EROFS handling for yaffs_access
Charles Manning [Fri, 26 Nov 2010 01:40:20 +0000 (14:40 +1300)]
yaffs direct: Fix EROFS handling for yaffs_access

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Added more tests to direct/timothy_tests/quick_tests
Timothy Manning [Fri, 26 Nov 2010 01:24:45 +0000 (14:24 +1300)]
yaffs Added more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoMerge branch 'quick_tests'
Timothy Manning [Fri, 26 Nov 2010 00:50:43 +0000 (13:50 +1300)]
Merge branch 'quick_tests'

13 years agoyaffs Adding more tests to direct/timothy_tests/quick_tests
Timothy Manning [Fri, 26 Nov 2010 00:49:25 +0000 (13:49 +1300)]
yaffs Adding more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Improve ELOOP handling
Charles Manning [Fri, 26 Nov 2010 00:48:18 +0000 (13:48 +1300)]
yaffs direct: Improve ELOOP handling

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Some changes to direct/timothy_tests/quick_tests
Timothy Manning [Fri, 26 Nov 2010 00:09:09 +0000 (13:09 +1300)]
yaffs Some changes to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Fixed an error in direct/timothy_tests/quick_tests
Timothy Manning [Fri, 26 Nov 2010 00:06:18 +0000 (13:06 +1300)]
yaffs Fixed an error in direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs fixed some merge issues in direct/timothy_tests/quick_tests
Timothy Manning [Thu, 25 Nov 2010 23:38:46 +0000 (12:38 +1300)]
yaffs fixed some merge issues in direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoMerge branch 'quick_tests'
Timothy Manning [Thu, 25 Nov 2010 23:34:49 +0000 (12:34 +1300)]
Merge branch 'quick_tests'

Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs More tests added to direct/timothy_tests/quick_tests
Timothy Manning [Thu, 25 Nov 2010 23:28:21 +0000 (12:28 +1300)]
yaffs More tests added to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Thu, 25 Nov 2010 23:27:46 +0000 (12:27 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 years agoyaffs direct: Add ELOOP definition
Charles Manning [Thu, 25 Nov 2010 23:26:00 +0000 (12:26 +1300)]
yaffs direct: Add ELOOP definition

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Added more tests to direct/timothy_tests/quick_tests
Timothy Manning [Wed, 24 Nov 2010 04:13:22 +0000 (17:13 +1300)]
yaffs Added more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Added more tests to direct/timothy_tests/quick_tests
Timothy Manning [Wed, 24 Nov 2010 03:03:27 +0000 (16:03 +1300)]
yaffs Added more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Added more tests to direct/timothy_tests/quick_tests
Timothy Manning [Wed, 24 Nov 2010 00:57:51 +0000 (13:57 +1300)]
yaffs Added more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Fix error for attempting to rename over a non-empty directory
Charles Manning [Wed, 24 Nov 2010 00:50:04 +0000 (13:50 +1300)]
yaffs direct: Fix error for attempting to rename over a non-empty directory

Now produces -ENOTEMPTY.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Added more tests to direct/timothy_tests/quick_tests
Timothy Manning [Tue, 23 Nov 2010 23:52:07 +0000 (12:52 +1300)]
yaffs Added more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Added more tests to direct/timothy_tests/quick_tests
Timothy Manning [Tue, 23 Nov 2010 23:01:00 +0000 (12:01 +1300)]
yaffs Added more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Fix some more error handling and directory name handling
Charles Manning [Tue, 23 Nov 2010 21:04:20 +0000 (10:04 +1300)]
yaffs direct: Fix some more error handling and directory name handling

All Timothy's tests passing.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Adding more tests to direct/timothy_tests/quick_tests
Timothy Manning [Tue, 23 Nov 2010 20:48:36 +0000 (09:48 +1300)]
yaffs Adding more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Added more tests to direct/timothy_tests/quick_tests
Timothy Manning [Tue, 23 Nov 2010 02:36:31 +0000 (15:36 +1300)]
yaffs Added more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs More tests for direct/timothy_tests/quick_tests
Timothy Manning [Tue, 23 Nov 2010 01:53:54 +0000 (14:53 +1300)]
yaffs More tests for direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Adding new tests to direct/timothy_tests/quicktests/
Timothy Manning [Mon, 22 Nov 2010 22:19:58 +0000 (11:19 +1300)]
yaffs Adding new tests to direct/timothy_tests/quicktests/
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs More tests added to direct/timothy_tests/quick_tests/
Timothy Manning [Mon, 22 Nov 2010 04:40:52 +0000 (17:40 +1300)]
yaffs More tests added to direct/timothy_tests/quick_tests/
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs More tests added to direct/timothy_tests/quick_tests/
Timothy Manning [Sun, 21 Nov 2010 21:33:48 +0000 (10:33 +1300)]
yaffs More tests added to direct/timothy_tests/quick_tests/
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Fix yaffs_access to follow symbolic links.
Charles Manning [Mon, 22 Nov 2010 20:55:42 +0000 (09:55 +1300)]
yaffs direct: Fix yaffs_access to follow symbolic links.

yaffs_access should follow symlinks but did not.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs direct: Fix ENOTDIR/ENOTENT misunderstanding
Charles Manning [Mon, 22 Nov 2010 04:40:21 +0000 (17:40 +1300)]
yaffs direct: Fix ENOTDIR/ENOTENT misunderstanding

ENOTDIR was being returned if a  directory part of the path was not found.
This should return ENOENT.

ENOTDIR should be returned if an item in a path that should be a directory is
actually something else (eg. a file).

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs direct tests: Fix directory and error handling in a few functions
Charles Manning [Sun, 21 Nov 2010 21:10:23 +0000 (10:10 +1300)]
yaffs direct tests: Fix directory and error handling in a few functions

Most notably, yaffs_link was not doing proper directory verification.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Sun, 21 Nov 2010 21:08:38 +0000 (10:08 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 years agoyaffs More tests for quick test
Timothy Manning [Thu, 18 Nov 2010 03:26:47 +0000 (16:26 +1300)]
yaffs More tests for quick test
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Fixed some bugs in quick tests and added some more tests.
Timothy Manning [Thu, 18 Nov 2010 01:00:57 +0000 (14:00 +1300)]
yaffs Fixed some bugs in quick tests and added some more tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direst tests: Clean up error to string converter
Charles Manning [Thu, 18 Nov 2010 00:47:47 +0000 (13:47 +1300)]
yaffs direst tests: Clean up error to string converter

Compilation and comment clean ups.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs direct: Modify lseek value checking
Charles Manning [Wed, 17 Nov 2010 03:19:51 +0000 (16:19 +1300)]
yaffs direct: Modify lseek value checking

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Fixed some more bugs in quick tests.
Timothy Manning [Wed, 17 Nov 2010 03:12:03 +0000 (16:12 +1300)]
yaffs Fixed some more bugs in quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Change handle breaking mechanism
Charles Manning [Wed, 17 Nov 2010 01:33:22 +0000 (14:33 +1300)]
yaffs direct: Change handle breaking mechanism

Wehn we force an unmount we have to break the handles. This
mechanism does it better.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs direct: Change read/write to handle too large files
Charles Manning [Tue, 16 Nov 2010 22:41:05 +0000 (11:41 +1300)]
yaffs direct: Change read/write to handle too large files

Before now yaffsfs was not handling out of bound offsets and nbytes
values.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Found the bug.
Timothy Manning [Wed, 17 Nov 2010 02:31:12 +0000 (15:31 +1300)]
yaffs Found the bug.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Still trying to find the bug.
Timothy Manning [Wed, 17 Nov 2010 02:10:17 +0000 (15:10 +1300)]
yaffs Still trying to find the bug.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Still hunting the bug.
Timothy Manning [Wed, 17 Nov 2010 00:45:53 +0000 (13:45 +1300)]
yaffs Still hunting the bug.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Chasing a bug in yaffsfs.
Timothy Manning [Wed, 17 Nov 2010 00:09:36 +0000 (13:09 +1300)]
yaffs Chasing a bug in yaffsfs.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Fixed more bugs in quick tests.
Timothy Manning [Tue, 16 Nov 2010 03:52:12 +0000 (16:52 +1300)]
yaffs Fixed more bugs in quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Fix yaffs_symlink error reporting for EEXIST
Charles Manning [Tue, 16 Nov 2010 03:49:34 +0000 (16:49 +1300)]
yaffs direct: Fix yaffs_symlink error reporting for EEXIST

Do a check if an object already exists.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Fixed a bug in quick tests.
Timothy Manning [Tue, 16 Nov 2010 03:35:37 +0000 (16:35 +1300)]
yaffs Fixed a bug in quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs More tests
Timothy Manning [Tue, 16 Nov 2010 03:21:42 +0000 (16:21 +1300)]
yaffs More tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Check paths for length
Charles Manning [Tue, 16 Nov 2010 03:11:25 +0000 (16:11 +1300)]
yaffs direct: Check paths for length

Add error handling for path names too long.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs direct: Fix yaffs_mkdir error paths
Charles Manning [Tue, 16 Nov 2010 02:25:58 +0000 (15:25 +1300)]
yaffs direct: Fix yaffs_mkdir error paths

Fix error hndling for yaffs_mkdir.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs More tests.
Timothy Manning [Tue, 16 Nov 2010 03:12:31 +0000 (16:12 +1300)]
yaffs More tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs More quick tests.
Timothy Manning [Tue, 16 Nov 2010 02:49:09 +0000 (15:49 +1300)]
yaffs More quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Improve some error paths
Charles Manning [Tue, 16 Nov 2010 02:08:31 +0000 (15:08 +1300)]
yaffs direct: Improve some error paths

Change mkdir and rmdir to both use common code for handling paths that
end in / . eg /fwerf/foo/ is treated as /fwerf/foo

Also fix error paths for symlink.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Tue, 16 Nov 2010 02:04:56 +0000 (15:04 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 years agoyaffs More tests for quick tests.
Timothy Manning [Tue, 16 Nov 2010 02:02:51 +0000 (15:02 +1300)]
yaffs More tests for quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Tue, 16 Nov 2010 00:53:27 +0000 (13:53 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 years agoyaffs direct: Fix error handling in yaffs_access
Charles Manning [Tue, 16 Nov 2010 00:51:56 +0000 (13:51 +1300)]
yaffs direct: Fix error handling in yaffs_access

yaffs_access was not returning the correct result.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Fixed a bug in quick tests.
Timothy Manning [Tue, 16 Nov 2010 00:48:18 +0000 (13:48 +1300)]
yaffs Fixed a bug in quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Added some more tests to quick tests.
Timothy Manning [Mon, 15 Nov 2010 22:55:35 +0000 (11:55 +1300)]
yaffs Added some more tests to quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs More quick tests.
Timothy Manning [Tue, 16 Nov 2010 00:40:50 +0000 (13:40 +1300)]
yaffs More quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoMerge branch 'fix-yaffsfs'
Charles Manning [Mon, 15 Nov 2010 22:54:35 +0000 (11:54 +1300)]
Merge branch 'fix-yaffsfs'

13 years agoyaffs direct : Handle ENOENT/ENODIR better
Charles Manning [Mon, 15 Nov 2010 22:28:29 +0000 (11:28 +1300)]
yaffs direct : Handle ENOENT/ENODIR better

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Updated the list of quick test files that need to be made.
Timothy Manning [Mon, 15 Nov 2010 22:32:48 +0000 (11:32 +1300)]
yaffs Updated the list of quick test files that need to be made.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Fixed some bigs in quick tests.
Timothy Manning [Mon, 15 Nov 2010 03:04:24 +0000 (16:04 +1300)]
yaffs Fixed some bigs in quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs A few changes to quick tests.
Timothy Manning [Mon, 15 Nov 2010 02:17:49 +0000 (15:17 +1300)]
yaffs A few changes to quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Merging changes made to quick tests.
Timothy Manning [Mon, 15 Nov 2010 02:11:37 +0000 (15:11 +1300)]
yaffs Merging changes made to quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct tests: Modify some tests to check properly
Charles Manning [Mon, 15 Nov 2010 02:03:43 +0000 (15:03 +1300)]
yaffs direct tests: Modify some tests to check properly

These tests are modified to reflect desired behaviour.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs direct: Add EROFS error for hundling chmod on a read-only fs
Charles Manning [Mon, 15 Nov 2010 02:02:03 +0000 (15:02 +1300)]
yaffs direct: Add EROFS error for hundling chmod on a read-only fs

Was EINVAL. EROFS is more meaningful.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Added command line arguments to quick tests.
Timothy Manning [Mon, 15 Nov 2010 01:17:30 +0000 (14:17 +1300)]
yaffs Added command line arguments to quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Break handles when unmounting, normalise handling of mount point names
Charles Manning [Mon, 15 Nov 2010 01:16:34 +0000 (14:16 +1300)]
yaffs direct: Break handles when unmounting, normalise handling of mount point names

We now invalidate any open handles when an unmount is forced.

We also introduce a new function to check that mounting and unmounting is performed
on a mount point.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoMerge branch 'quick_tests'
Timothy Manning [Sun, 14 Nov 2010 23:20:53 +0000 (12:20 +1300)]
Merge branch 'quick_tests'

13 years agoyaffs Have revised and checked each test in quick tests.
Timothy Manning [Sun, 14 Nov 2010 23:18:23 +0000 (12:18 +1300)]
yaffs Have revised and checked each test in quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Handle forced unmount
Charles Manning [Sun, 14 Nov 2010 23:16:21 +0000 (12:16 +1300)]
yaffs direct: Handle forced unmount

Reading and writing need to check whether the device has been remounted
read-only or unmounted in a different thread.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs more tests for quick tests.
Timothy Manning [Wed, 10 Nov 2010 03:15:33 +0000 (16:15 +1300)]
yaffs more tests for quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs More tests for quick tests.
Timothy Manning [Wed, 10 Nov 2010 01:44:07 +0000 (14:44 +1300)]
yaffs More tests for quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Yet more tests for quick tests.
Timothy Manning [Tue, 9 Nov 2010 03:32:03 +0000 (16:32 +1300)]
yaffs Yet more tests for quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs More quick tests and have also fixed a bugin yaffs_mount function.
Timothy Manning [Tue, 9 Nov 2010 01:00:32 +0000 (14:00 +1300)]
yaffs More quick tests and have also fixed a bugin yaffs_mount function.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs More quick tests added.
Timothy Manning [Mon, 8 Nov 2010 23:06:54 +0000 (12:06 +1300)]
yaffs More quick tests added.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Yet more tests for quick tests.
Timothy Manning [Mon, 8 Nov 2010 22:47:15 +0000 (11:47 +1300)]
yaffs Yet more tests for quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs: Clean up some tracing.
Charles Manning [Tue, 9 Nov 2010 00:50:51 +0000 (13:50 +1300)]
yaffs: Clean up some tracing.

Make some checkpt messages conditional.

Fix up trace table screwed up by lindent.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Mon, 8 Nov 2010 23:06:41 +0000 (12:06 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 years agoyaffs: Remove SHORT_NAMES_IN_RAM and WIDE_TNODE_DISABLE configs
Charles Manning [Mon, 8 Nov 2010 23:01:50 +0000 (12:01 +1300)]
yaffs: Remove SHORT_NAMES_IN_RAM and WIDE_TNODE_DISABLE configs

These have been removed from Linux as their use is discouraged except
for debugging purposes.

The logic has also changed for SHORT_NAMES_IN_RAM. This is now negative
logic. Set  CONFIG_YAFFS_NO_SHORT_NAMES to **disable** short names.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs More tests added to quick tests.
Timothy Manning [Mon, 8 Nov 2010 21:03:00 +0000 (10:03 +1300)]
yaffs More tests added to quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Some changes to the quick tests README.
Timothy Manning [Mon, 8 Nov 2010 04:19:57 +0000 (17:19 +1300)]
yaffs Some changes to the quick tests README.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Clean ups fixing stuff caught by Timthy's tests
Charles Manning [Mon, 8 Nov 2010 04:15:52 +0000 (17:15 +1300)]
yaffs direct: Clean ups fixing stuff caught by Timthy's tests

Some error codes were not being set correctly. Fixed them.

More to follow...

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs direct: Remove redundant fsx test
Charles Manning [Mon, 8 Nov 2010 01:49:50 +0000 (14:49 +1300)]
yaffs direct: Remove redundant fsx test

There is already fsx testing in the direct/tests directory.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs direct: Clean up and handle names that are to long
Charles Manning [Mon, 8 Nov 2010 00:43:02 +0000 (13:43 +1300)]
yaffs direct: Clean up and handle  names that are to long

Clean up some obsolete code.

Start handling file names that are too long.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs More tests for quick tests.
Timothy Manning [Mon, 8 Nov 2010 03:50:06 +0000 (16:50 +1300)]
yaffs More tests for quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Yet more tests for quick tests.
Timothy Manning [Mon, 8 Nov 2010 03:08:59 +0000 (16:08 +1300)]
yaffs Yet more tests for quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Pulled the bugs section out of the README.txt and put it into current_bugs.txt
Timothy Manning [Mon, 8 Nov 2010 01:07:58 +0000 (14:07 +1300)]
yaffs Pulled the bugs section out of the README.txt and put it into current_bugs.txt
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Added some new tests to quick tests.
Timothy Manning [Mon, 8 Nov 2010 00:05:40 +0000 (13:05 +1300)]
yaffs Added some new tests to quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs More updates on quick tests
Timothy Manning [Sun, 7 Nov 2010 23:41:12 +0000 (12:41 +1300)]
yaffs More updates on quick tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Updated quick tests' README.
Timothy Manning [Sun, 7 Nov 2010 22:39:31 +0000 (11:39 +1300)]
yaffs Updated quick tests' README.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Found and fixed the bugs in quick tests.
Timothy Manning [Sun, 7 Nov 2010 21:12:35 +0000 (10:12 +1300)]
yaffs Found and fixed the bugs in quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Trying to find a bug in timothy quick tests.
Timothy Manning [Sun, 7 Nov 2010 21:04:02 +0000 (10:04 +1300)]
yaffs Trying to find a bug in timothy quick tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs direct: Change tracing flag for mount message
Charles Manning [Sun, 7 Nov 2010 23:05:55 +0000 (12:05 +1300)]
yaffs direct: Change tracing flag for mount message

Was TRACE_ALWAYS, is now TRACE_MOUNT.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Clean up conditional bracing
Charles Manning [Sun, 7 Nov 2010 22:09:07 +0000 (11:09 +1300)]
yaffs Clean up conditional bracing

If a conditional has braces then all paths have braces even if they only
have one statement.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs All of the quick_tests programs are now working.
Timothy Manning [Thu, 4 Nov 2010 20:50:42 +0000 (09:50 +1300)]
yaffs All of the quick_tests programs are now working.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Changed the logical error handling paths in yaffsfs.c
Timothy Manning [Thu, 4 Nov 2010 20:44:05 +0000 (09:44 +1300)]
yaffs Changed the logical error handling paths in yaffsfs.c

Restructed the yaffs_open() function to handle errors caused by not using O_CREATE.
Also added  a new yaffs_set_error() function to yaffsfs.c and yaffsfs.h.
An annoying printf in yaffs_fileem2k.c was commented out.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Added a README file and some more tests.
Timothy Manning [Thu, 4 Nov 2010 01:17:27 +0000 (14:17 +1300)]
yaffs Added a README file and some more tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Adding more error code test programs to quick tests. note the bugs are still...
Timothy Manning [Wed, 3 Nov 2010 22:08:52 +0000 (11:08 +1300)]
yaffs Adding more error code test programs to quick tests. note the bugs are still present.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Found another bug.
Timothy Manning [Wed, 3 Nov 2010 03:46:33 +0000 (16:46 +1300)]
yaffs Found another bug.

In test_yaffs_open_file_ENOENT the error code ENOSPC is been returned but the emfile in not full.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Modified the make file to work with new name changes.
Timothy Manning [Wed, 3 Nov 2010 03:36:04 +0000 (16:36 +1300)]
yaffs Modified the make file to work with new name changes.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Forgot to remove some files from last commit.
Timothy Manning [Wed, 3 Nov 2010 03:23:13 +0000 (16:23 +1300)]
yaffs Forgot to remove some files from last commit.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>