yaffs2.git
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>
8 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>
8 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>
8 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>
8 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>
8 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

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

8 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>
8 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>
8 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>
8 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>
8 years agoMerge branch 'fix-yaffsfs'
Charles Manning [Mon, 15 Nov 2010 22:54:35 +0000 (11:54 +1300)]
Merge branch 'fix-yaffsfs'

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