yaffs2.git
8 years agoyaffs Fixed some bugs in direct/timothy_tests/mirror_tests
Timothy Manning [Wed, 22 Dec 2010 02:50:00 +0000 (15:50 +1300)]
yaffs Fixed some bugs in direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Fixed some more bugs in direct/timothy_tests/mirror_tests
Timothy Manning [Wed, 22 Dec 2010 01:30:21 +0000 (14:30 +1300)]
yaffs Fixed some more bugs in direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Fixing bugs in direct/timothy_tests/mirror_tests
Timothy Manning [Wed, 22 Dec 2010 00:40:35 +0000 (13:40 +1300)]
yaffs Fixing bugs in direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Trying to find a bug in direct/timothy_tests/mirror_tests
Timothy Manning [Tue, 21 Dec 2010 21:55:46 +0000 (10:55 +1300)]
yaffs Trying to find a bug in direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Added some more tests to direct/timothy_tests/mirror_tests
Timothy Manning [Thu, 16 Dec 2010 20:21:32 +0000 (09:21 +1300)]
yaffs Added some more tests to direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Fixed some more bugs in direct/timothy_tests/mirror_tests
Timothy Manning [Wed, 15 Dec 2010 22:22:32 +0000 (11:22 +1300)]
yaffs Fixed some more bugs in direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Fixed some more bugs in direct/timothy_tests/mirror_tests
Timothy Manning [Wed, 15 Dec 2010 02:31:57 +0000 (15:31 +1300)]
yaffs Fixed some more bugs in direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Fixed a bug in direct/timothy_tests/mirror_tests
Timothy Manning [Wed, 15 Dec 2010 02:17:13 +0000 (15:17 +1300)]
yaffs Fixed a bug in direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Added more tests to direct/timothy_tests/mirror_tests
Timothy Manning [Wed, 15 Dec 2010 01:43:54 +0000 (14:43 +1300)]
yaffs Added more tests to direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Added more tests to direct/timothy_tests/mirror_tests
Timothy Manning [Tue, 14 Dec 2010 22:30:10 +0000 (11:30 +1300)]
yaffs Added more tests to direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Working on mirror_tests
Timothy Manning [Mon, 13 Dec 2010 02:23:16 +0000 (15:23 +1300)]
yaffs Working on mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Added some more tests to timothy_tests.
Timothy Manning [Sun, 12 Dec 2010 23:21:56 +0000 (12:21 +1300)]
yaffs Added some more tests to timothy_tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoMerge branch 'mainlining'
Charles Manning [Fri, 10 Dec 2010 02:58:57 +0000 (15:58 +1300)]
Merge branch 'mainlining'

8 years agoyaffs: More cleanup of tracing, inlines and general formatting
Charles Manning [Fri, 10 Dec 2010 02:56:48 +0000 (15:56 +1300)]
yaffs: More cleanup of tracing, inlines and general formatting

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs Change tracing to yaffs_trace
Charles Manning [Fri, 10 Dec 2010 02:15:30 +0000 (15:15 +1300)]
yaffs Change tracing to yaffs_trace

Make the tracing a whole lot easier on the eye.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs: Remove a whole lot of function wrappers and forward declarations
Charles Manning [Tue, 7 Dec 2010 00:45:55 +0000 (13:45 +1300)]
yaffs: Remove a whole lot of function wrappers and forward declarations

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs : Change bitmap counting function to use hweight8()
Charles Manning [Sun, 5 Dec 2010 21:45:02 +0000 (10:45 +1300)]
yaffs : Change bitmap counting function to use hweight8()

Better than shift counting.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs direct: Move yaffs error string function to diferent directory
Charles Manning [Fri, 3 Dec 2010 01:50:57 +0000 (14:50 +1300)]
yaffs direct: Move yaffs error string function to diferent directory

This was in the python directory but is generally handy so move it into
the yaffs direct direcotory.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs direct: Add file descriptor layer in handle management
Charles Manning [Thu, 2 Dec 2010 22:32:48 +0000 (11:32 +1300)]
yaffs direct: Add file descriptor layer in handle management

This is needed to support dup().

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs: Fix current time setting
Charles Manning [Thu, 2 Dec 2010 19:24:45 +0000 (08:24 +1300)]
yaffs: Fix current time setting

As pointed out by Marcin Slusarz, the current time was not being
set correctly.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs Added some more tests to direct/timothy_tests/quick_tests
Timothy Manning [Wed, 1 Dec 2010 00:51:27 +0000 (13:51 +1300)]
yaffs Added some more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs direct: Add more tests for valid paths.
Charles Manning [Tue, 30 Nov 2010 23:37:16 +0000 (12:37 +1300)]
yaffs direct: Add more tests for valid paths.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs Updated the README for direct/timothy_tests/quick_tests
Timothy Manning [Tue, 30 Nov 2010 21:40:20 +0000 (10:40 +1300)]
yaffs Updated the README for direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Added more tests to direct/timothy_tests/quick_tests
Timothy Manning [Tue, 30 Nov 2010 21:22:30 +0000 (10:22 +1300)]
yaffs Added more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs: Clean up yaffs VFS glue code.
Charles Manning [Tue, 30 Nov 2010 20:56:30 +0000 (09:56 +1300)]
yaffs: Clean up yaffs VFS glue code.

Taking onboard some comments from LKML.

Since the /proc/yaffs-stats has been removed, we now suck stats from
/proc/yaffs for running the erased space plotting  script.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoMerge branch 'direct-fix'
Charles Manning [Tue, 30 Nov 2010 03:04:28 +0000 (16:04 +1300)]
Merge branch 'direct-fix'

8 years agoMerge branch 'mainlining'
Charles Manning [Tue, 30 Nov 2010 03:03:41 +0000 (16:03 +1300)]
Merge branch 'mainlining'

8 years agoyaffs: Replace yaffs_dir_llseek with Linux generic llseek
Charles Manning [Tue, 30 Nov 2010 03:01:28 +0000 (16:01 +1300)]
yaffs: Replace yaffs_dir_llseek with Linux generic llseek

There was not much point in having the yaffs version as it is
functionally equivalent to the kernel one.

This also gets rid of using BKL in yaffs2.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs: Refactor bit counting code
Charles Manning [Tue, 30 Nov 2010 01:00:00 +0000 (14:00 +1300)]
yaffs: Refactor bit counting code

For Linux kernel we use hweight8() and hweight32(). This allows
use of special bit-counting code instructions in processors that
do this.

The yaffs direct we now only use one set of code. There were two.

NB On x86 the yaffs hweight8 code is actually a lot faster
than the sofwtare implementation in Linux kernel.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs direct: Add some NULL pointer handling
Charles Manning [Tue, 30 Nov 2010 00:16:13 +0000 (13:16 +1300)]
yaffs direct: Add some NULL pointer handling

Passing in NULL arguments causes -EFAULT.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs More tests added to direct/timothy_tests/quick_tests
Timothy Manning [Mon, 29 Nov 2010 20:23:31 +0000 (09:23 +1300)]
yaffs More tests added to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Mon, 29 Nov 2010 03:41:14 +0000 (16:41 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

8 years agoyaffs testing: Don't want ramdisk created if it is already there
Charles Manning [Mon, 29 Nov 2010 03:39:17 +0000 (16:39 +1300)]
yaffs testing: Don't want ramdisk created if it is already there

Check if the ramdisk exists before creating it.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs Added some more tests to direct/timothy_tests/quick_tests
Timothy Manning [Mon, 29 Nov 2010 02:54:12 +0000 (15:54 +1300)]
yaffs Added some more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs direct tests: Fix ftruncate EROFS test
Charles Manning [Mon, 29 Nov 2010 02:24:52 +0000 (15:24 +1300)]
yaffs direct tests: Fix ftruncate EROFS test

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs direct: Fix more error handling
Charles Manning [Mon, 29 Nov 2010 02:09:11 +0000 (15:09 +1300)]
yaffs direct: Fix more error handling

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs direct: Fix more EROFS handling
Charles Manning [Mon, 29 Nov 2010 01:55:36 +0000 (14:55 +1300)]
yaffs direct: Fix more EROFS handling

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs Fixed some tests in direct/timothy_tests/quick_tests
Timothy Manning [Mon, 29 Nov 2010 01:45:31 +0000 (14:45 +1300)]
yaffs Fixed some tests in direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Added more tests to direct/timothy_tests/quick_tests
Timothy Manning [Mon, 29 Nov 2010 00:55:50 +0000 (13:55 +1300)]
yaffs Added more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs direct: Fix pthread compilation issue.
Charles Manning [Mon, 29 Nov 2010 00:16:54 +0000 (13:16 +1300)]
yaffs direct: Fix pthread compilation issue.

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

8 years agoyaffs direct: Change EROFS error handling in yaffs_open
Charles Manning [Sun, 28 Nov 2010 23:30:24 +0000 (12:30 +1300)]
yaffs direct: Change EROFS error handling in yaffs_open

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs Added another test to direct/timothy_tests/quick_tests
Timothy Manning [Sun, 28 Nov 2010 23:13:51 +0000 (12:13 +1300)]
yaffs Added another test to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs direct: Fix EROFS handling in some functions.
Charles Manning [Sun, 28 Nov 2010 22:44:49 +0000 (11:44 +1300)]
yaffs direct: Fix EROFS handling in some functions.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs Added more tests to direct/timothy_tests/quicktests
Timothy Manning [Sun, 28 Nov 2010 22:42:41 +0000 (11:42 +1300)]
yaffs Added more tests to direct/timothy_tests/quicktests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Sun, 28 Nov 2010 21:57:40 +0000 (10:57 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

8 years agoyaffs direct: Partition off os glue code
Charles Manning [Sun, 28 Nov 2010 21:56:27 +0000 (10:56 +1300)]
yaffs direct: Partition off os glue code

This makes the porting process a bit cleaner.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs Added morew tests to direct/timothy_tests/quick_tests
Timothy Manning [Sun, 28 Nov 2010 21:45:17 +0000 (10:45 +1300)]
yaffs Added morew tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Added a test to direct/timothy_tests/quick_test
Timothy Manning [Fri, 26 Nov 2010 04:17:38 +0000 (17:17 +1300)]
yaffs Added a test to direct/timothy_tests/quick_test
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Fixed a bug in direct/timothy_tests/quick_tests
Timothy Manning [Fri, 26 Nov 2010 03:47:08 +0000 (16:47 +1300)]
yaffs Fixed a bug in direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs Added more tests to direct/timothy_tests/quick_tests
Timothy Manning [Fri, 26 Nov 2010 03:25:16 +0000 (16:25 +1300)]
yaffs Added more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoMerge branch 'quick_tests'
Timothy Manning [Fri, 26 Nov 2010 02:13:37 +0000 (15:13 +1300)]
Merge branch 'quick_tests'

8 years agoyaffs Added more tests to direct/timothy_tests/quick_tests
Timothy Manning [Fri, 26 Nov 2010 02:12:04 +0000 (15:12 +1300)]
yaffs Added more tests to direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 years agoyaffs direct: Dereference symlinks in chmod
Charles Manning [Fri, 26 Nov 2010 02:09:30 +0000 (15:09 +1300)]
yaffs direct: Dereference symlinks in chmod

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
8 years agoyaffs Fixed some problems with direct/timothy_tests/quick_tests
Timothy Manning [Fri, 26 Nov 2010 01:41:55 +0000 (14:41 +1300)]
yaffs Fixed some problems with direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
8 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>
8 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>
8 years agoMerge branch 'quick_tests'
Timothy Manning [Fri, 26 Nov 2010 00:50:43 +0000 (13:50 +1300)]
Merge branch 'quick_tests'

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>