yaffs2.git
12 years agoyaffs: Fix patch-ker.sh to handle Kconfigs properly.
Charles Manning [Thu, 12 May 2011 22:12:55 +0000 (10:12 +1200)]
yaffs: Fix patch-ker.sh to handle Kconfigs properly.

Thanks to submitters for this.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoMerge branch 'block-summary' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Thu, 28 Apr 2011 04:11:30 +0000 (16:11 +1200)]
Merge branch 'block-summary' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

12 years agoyaffs: Change disable-summary option to be consistent with others
Charles Manning [Tue, 5 Apr 2011 04:38:11 +0000 (16:38 +1200)]
yaffs: Change disable-summary option to be consistent with others

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs: Add summary code to kernel Makefile
Charles Manning [Tue, 5 Apr 2011 04:35:20 +0000 (16:35 +1200)]
yaffs: Add summary code to kernel Makefile

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs: Discard partially written summary data
Charles Manning [Sun, 3 Apr 2011 19:57:39 +0000 (07:57 +1200)]
yaffs: Discard partially written summary data

A power failure during the write of a multi-chunk summary can leave stuff
lying around that  looks like part of a file. If this is detected then delete it.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs: Fix incorrect incrementing in summary writing.
Charles Manning [Sun, 3 Apr 2011 19:13:28 +0000 (07:13 +1200)]
yaffs: Fix incorrect incrementing in summary writing.

Should only be incremented once.

12 years agoMerge branch 'block-summary'
Charles Manning [Thu, 28 Apr 2011 03:57:52 +0000 (15:57 +1200)]
Merge branch 'block-summary'

Conflicts:
yaffs_vfs_multi.c

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Handle attribute size query correctly. pre-block-summary
Charles Manning [Tue, 12 Apr 2011 22:20:06 +0000 (10:20 +1200)]
yaffs: Handle attribute size query correctly.

If getxattr() is passed a buffer size of zero then this is a size query.
Return the size of the attribute without copying it out.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Change disable-summary option to be consistent with others block-summary
Charles Manning [Tue, 5 Apr 2011 04:38:11 +0000 (16:38 +1200)]
yaffs: Change disable-summary option to be consistent with others

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Add summary code to kernel Makefile
Charles Manning [Tue, 5 Apr 2011 04:35:20 +0000 (16:35 +1200)]
yaffs: Add summary code to kernel Makefile

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Discard partially written summary data
Charles Manning [Sun, 3 Apr 2011 19:57:39 +0000 (07:57 +1200)]
yaffs: Discard partially written summary data

A power failure during the write of a multi-chunk summary can leave stuff
lying around that  looks like part of a file. If this is detected then delete it.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Fix incorrect incrementing in summary writing.
Charles Manning [Sun, 3 Apr 2011 19:13:28 +0000 (07:13 +1200)]
yaffs: Fix incorrect incrementing in summary writing.

Should only be incremented once.

13 years agoyaffs: Clean ups on summary code
Charles Manning [Thu, 31 Mar 2011 05:39:19 +0000 (18:39 +1300)]
yaffs: Clean ups on summary code

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Fix free space tracking of summary during gc.
Charles Manning [Thu, 31 Mar 2011 04:04:09 +0000 (17:04 +1300)]
yaffs: Fix free space tracking of summary during gc.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: More mainlining cleanup
Charles Manning [Thu, 31 Mar 2011 02:13:03 +0000 (15:13 +1300)]
yaffs: More mainlining cleanup

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Tweaks to summary code
Charles Manning [Thu, 31 Mar 2011 01:42:56 +0000 (14:42 +1300)]
yaffs: Tweaks to summary code

Trying some different ideas for handling free space cleaner.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Add first cut of block summary code
Charles Manning [Mon, 28 Mar 2011 17:57:02 +0000 (06:57 +1300)]
yaffs: Add first cut of block summary code

Some issues still need to be checked. In particular:
* Is free space handling correct?
* Is gc doing The Right Thing?

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Remove debugging argument from temp buffer handling
Charles Manning [Mon, 7 Mar 2011 03:25:28 +0000 (16:25 +1300)]
yaffs: Remove debugging argument from temp buffer handling

No longer track the line number used for allocation.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Remove tags validity checking code.
Charles Manning [Thu, 24 Feb 2011 22:25:07 +0000 (11:25 +1300)]
yaffs: Remove tags validity checking code.

It was only really useful during development and no longer serves
any purpose.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Handle ENOSPC properly during object creation linux-mainline-patchset-5
Charles Manning [Wed, 9 Feb 2011 02:41:02 +0000 (15:41 +1300)]
yaffs Handle ENOSPC properly during object creation

Was returning ENOMEM.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Change NEEDS_SCANNING to NEEDS_SCAN
Charles Manning [Sun, 6 Feb 2011 21:07:25 +0000 (10:07 +1300)]
yaffs: Change NEEDS_SCANNING to NEEDS_SCAN

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, 6 Feb 2011 20:56:58 +0000 (09:56 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 years agoyaffs: Change return value when xattrib delete not found
Charles Manning [Thu, 3 Feb 2011 20:06:11 +0000 (09:06 +1300)]
yaffs: Change return value when xattrib delete not found

This does not modify the functioning of yaffs, just makes a better internal
error message.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Change all hex values to lower case
Charles Manning [Thu, 3 Feb 2011 19:46:25 +0000 (08:46 +1300)]
yaffs: Change all hex values to lower case

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Fix directory unlinking in yaffs1 mode
Charles Manning [Wed, 2 Feb 2011 16:55:30 +0000 (05:55 +1300)]
yaffs: Fix directory unlinking in yaffs1 mode

Treat both yaffs2 and yaffs1 paths the same.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Update year to 2011 in copyrights etc.
Charles Manning [Mon, 31 Jan 2011 23:37:50 +0000 (12:37 +1300)]
yaffs: Update year to 2011 in copyrights etc.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Clean up as per Ryan's comments
Charles Manning [Mon, 31 Jan 2011 21:57:18 +0000 (10:57 +1300)]
yaffs: Clean up as per Ryan's comments

Clean up a whole lot of code issues raised by Ryan.

Some further reformatting etc to be mor kernel friendly.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Change all yaffs, YAFFS and Yaffs in Kconfig to yaffs
Charles Manning [Mon, 31 Jan 2011 03:13:04 +0000 (16:13 +1300)]
yaffs: Change all yaffs, YAFFS and Yaffs in Kconfig to yaffs

Some people prefer consistency.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Replace YBUG() with BUG()
Charles Manning [Wed, 26 Jan 2011 00:51:16 +0000 (13:51 +1300)]
yaffs: Replace YBUG() with BUG()

Also clean a few other things in yportenv_xxxx.h

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Remove malloc allocator
Charles Manning [Wed, 26 Jan 2011 00:25:49 +0000 (13:25 +1300)]
yaffs: Remove malloc allocator

Unused test code.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Fix NULL check sequence.
Charles Manning [Wed, 19 Jan 2011 22:35:08 +0000 (11:35 +1300)]
yaffs: Fix NULL check sequence.

Potential NULL dreference before check.
Picked up by Coverity check.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs testing: Change plotting to check for null data linux-mainline-patchset-4
Charles Manning [Fri, 14 Jan 2011 02:24:53 +0000 (15:24 +1300)]
yaffs testing: Change plotting to check for null data

/proc/yaffs reads can get mangled. These changes repeat the reads
until stable valid values are read.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Clean up some Coverity checks
Charles Manning [Fri, 14 Jan 2011 00:37:46 +0000 (13:37 +1300)]
yaffs: Clean up some Coverity checks

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Fix compilation errors introduced by cleanup.
Charles Manning [Thu, 13 Jan 2011 02:26:16 +0000 (15:26 +1300)]
yaffs: Fix compilation errors introduced by cleanup.

Minor types.

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 [Thu, 13 Jan 2011 00:23:15 +0000 (13:23 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 years agoyaffs: Reformatting to be kernel friendly.
Charles Manning [Thu, 13 Jan 2011 00:21:47 +0000 (13:21 +1300)]
yaffs: Reformatting to be kernel friendly.

Passes checkpatch.pl

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

13 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Mon, 10 Jan 2011 22:58:02 +0000 (11:58 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 years agoyaffs: Fix compilation issue
Charles Manning [Mon, 10 Jan 2011 00:57:39 +0000 (13:57 +1300)]
yaffs: Fix compilation issue

FALSE-> YAFFS_FAIL

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Sort out issues raised by Coverity
Charles Manning [Sun, 9 Jan 2011 22:58:11 +0000 (11:58 +1300)]
yaffs: Sort out issues raised by Coverity

Coverity checks raised some issues, particularly with NULL checks.

Fix them.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs direct: Fix trace ALWAYS issue
Charles Manning [Fri, 7 Jan 2011 01:26:01 +0000 (14:26 +1300)]
yaffs direct: Fix trace ALWAYS issue

Trace ALWAYS was done wrong in the macro. Just make it another bitmap.
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 [Fri, 7 Jan 2011 01:22:56 +0000 (14:22 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 years agoyaffs direct: Clean up braces
Charles Manning [Fri, 7 Jan 2011 01:21:00 +0000 (14:21 +1300)]
yaffs direct: Clean up braces

Change bracing style.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoMerge branch 'mainlining'
Charles Manning [Fri, 7 Jan 2011 01:19:08 +0000 (14:19 +1300)]
Merge branch 'mainlining'

13 years agoyaffs: Fix trace ALWAYS problem and moduleconfig.h dependency
Charles Manning [Fri, 7 Jan 2011 01:13:13 +0000 (14:13 +1300)]
yaffs: Fix trace ALWAYS problem and moduleconfig.h dependency

The yaffs trace macro was always tracing. Fixed by no longer forcing
ALWAYS on.

Only include moduleconfig.h if compiling out of tree.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Strip pointless macro wrapping
Charles Manning [Fri, 7 Jan 2011 01:08:21 +0000 (14:08 +1300)]
yaffs: Strip pointless macro wrapping

These wrapping helped nothing. Out... out!

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs: Fix compile error in multi-version Linux glue
Charles Manning [Fri, 7 Jan 2011 01:07:14 +0000 (14:07 +1300)]
yaffs: Fix compile error in multi-version Linux glue

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Added somemore tests to direct/timothy_tests/threading
Timothy Manning [Fri, 7 Jan 2011 00:16:31 +0000 (13:16 +1300)]
yaffs Added somemore tests to direct/timothy_tests/threading
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Expanding the the test direct/timothy_tests/threading
Timothy Manning [Thu, 6 Jan 2011 23:58:38 +0000 (12:58 +1300)]
yaffs Expanding the the test direct/timothy_tests/threading
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Finsing up direct/timothy_tests/threading
Timothy Manning [Thu, 6 Jan 2011 22:56:34 +0000 (11:56 +1300)]
yaffs Finsing up direct/timothy_tests/threading
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Added another test to direct/timothy_tests/threading
Timothy Manning [Thu, 6 Jan 2011 22:43:00 +0000 (11:43 +1300)]
yaffs Added another test to direct/timothy_tests/threading
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Added a README to direct/timothy_tests/mirror_tests
Timothy Manning [Thu, 23 Dec 2010 21:17:16 +0000 (10:17 +1300)]
yaffs Added a README to direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs updated direct/timothy_tests/quick_tests
Timothy Manning [Thu, 23 Dec 2010 00:31:37 +0000 (13:31 +1300)]
yaffs updated direct/timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Added some stuff to direct/python/yaffs_browser.py
Timothy Manning [Thu, 23 Dec 2010 00:17:29 +0000 (13:17 +1300)]
yaffs Added some stuff to direct/python/yaffs_browser.py

Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Made some updates to direct/timothy_tests/mirror_tests
Timothy Manning [Thu, 23 Dec 2010 00:15:24 +0000 (13:15 +1300)]
yaffs Made some updates to direct/timothy_tests/mirror_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 [Wed, 22 Dec 2010 21:47:36 +0000 (10:47 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 years agoyaffs direct: Change yaffs_malloc to yaffsfs_malloc etc
Charles Manning [Wed, 22 Dec 2010 21:46:38 +0000 (10:46 +1300)]
yaffs direct: Change yaffs_malloc to yaffsfs_malloc etc

Keep names consistent.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 years agoyaffs Fixed all of the bugs in direct/timothy_tests/mirror_tests
Timothy Manning [Wed, 22 Dec 2010 02:56:30 +0000 (15:56 +1300)]
yaffs Fixed all of the bugs in direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Wed, 15 Dec 2010 02:19:48 +0000 (15:19 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 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>
13 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Wed, 15 Dec 2010 02:04:38 +0000 (15:04 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 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>
13 years agoyaffs: Change renaming count_bits to hweight8
Charles Manning [Tue, 14 Dec 2010 23:41:45 +0000 (12:41 +1300)]
yaffs: Change renaming count_bits to hweight8

Some conditional compilations missed in the first round...

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, 14 Dec 2010 22:45:30 +0000 (11:45 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

13 years agoyaffs: Remove obsolete tracing
Charles Manning [Tue, 14 Dec 2010 22:44:28 +0000 (11:44 +1300)]
yaffs: Remove obsolete tracing

Commented out obsolete tracing. No need to keep this.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
13 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>
13 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>
13 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>
13 years agoMerge branch 'mainlining'
Charles Manning [Fri, 10 Dec 2010 02:58:57 +0000 (15:58 +1300)]
Merge branch 'mainlining'

13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 years agoMerge branch 'direct-fix'
Charles Manning [Tue, 30 Nov 2010 03:04:28 +0000 (16:04 +1300)]
Merge branch 'direct-fix'

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

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

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