yaffs2.git
11 years agoyaffs2 checkpointing: Add further checkpoint data sanity checking
Charles Manning [Mon, 21 May 2012 22:28:11 +0000 (10:28 +1200)]
yaffs2 checkpointing: Add further checkpoint data sanity checking

Add a header to each chunk of checkpoint data to verify that the
checkpoint data is correct.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs2: Make checkpoint block scanning skip bad blocks.
Charles Manning [Mon, 21 May 2012 00:34:47 +0000 (12:34 +1200)]
yaffs2: Make checkpoint block scanning skip bad blocks.

Bad blocks were being used by checkpointing which would screw up
the checkpoint scanning.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoRemove trace that should not be in mounting.
Charles Manning [Mon, 14 May 2012 00:10:33 +0000 (12:10 +1200)]
Remove trace that should not be in mounting.

This was erroneously added as part of the large file size changes.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs for u-boot: Cleanups to make patches acceptable for u-boot
Charles Manning [Wed, 2 May 2012 02:37:19 +0000 (14:37 +1200)]
yaffs for u-boot: Cleanups to make patches acceptable for u-boot

The u-boot patches were not acceptable to the u-booters. Hopefully yhey will be happy now.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoMerge remote branch 'origin/master'
Charles Manning [Tue, 1 May 2012 08:19:58 +0000 (20:19 +1200)]
Merge remote branch 'origin/master'

11 years agoClean up checkin. Do not use
Charles Manning [Tue, 1 May 2012 03:57:53 +0000 (15:57 +1200)]
Clean up checkin. Do not use

This is a clean-up checkin that should have been on a branch.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoUpdate timothy test Makefile
Charles Manning [Tue, 24 Apr 2012 22:52:28 +0000 (10:52 +1200)]
Update timothy test Makefile

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffsfs: Allocate directory searches from a table rather than via malloc.
Charles Manning [Sun, 22 Apr 2012 23:45:32 +0000 (11:45 +1200)]
yaffsfs: Allocate directory searches from a table rather than via malloc.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoFix compilation of python tests.
Charles Manning [Sun, 22 Apr 2012 23:37:06 +0000 (11:37 +1200)]
Fix compilation of python tests.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs u-boot: Fix problem if an illegal nand chip number is entered.
Charles Manning [Tue, 17 Apr 2012 02:48:18 +0000 (14:48 +1200)]
yaffs u-boot: Fix problem if an illegal nand chip number is entered.

The bad flash part was being seen as bad but then the function did not bail out.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoSet up u-boot glue code and patching scripts.
Charles Manning [Mon, 16 Apr 2012 04:11:29 +0000 (16:11 +1200)]
Set up u-boot glue code and patching scripts.

This should patch yaffs2 into a u-boot system.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoAdd more descriptive comment for using the yaffs commands.
Charles Manning [Tue, 3 Apr 2012 02:33:14 +0000 (14:33 +1200)]
Add more descriptive comment for using the yaffs commands.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoAdd files to hook up yaffs direct to u-boot
Charles Manning [Tue, 3 Apr 2012 01:06:16 +0000 (13:06 +1200)]
Add files to hook up yaffs direct to u-boot

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Mon, 26 Mar 2012 02:37:25 +0000 (15:37 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

12 years agoPut both the summary and checkpoint version stamps together, update checkpoint version
Charles Manning [Mon, 26 Mar 2012 02:32:55 +0000 (15:32 +1300)]
Put both the summary and checkpoint version stamps together, update checkpoint version

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoFix compilation of mkyaffsimage and mkyaffs2image
Charles Manning [Mon, 26 Mar 2012 00:26:44 +0000 (13:26 +1300)]
Fix compilation of mkyaffsimage and mkyaffs2image

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoFix resizing of large files.
Charles Manning [Sun, 25 Mar 2012 06:22:27 +0000 (19:22 +1300)]
Fix resizing of large files.

Chunk prunign was using an integer argument. That could damage
a large file being resized down.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoFix summary header validation
Charles Manning [Tue, 20 Mar 2012 07:47:37 +0000 (20:47 +1300)]
Fix summary header validation

Was not checking the byte count correctly.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoAdd a summary header
Charles Manning [Tue, 20 Mar 2012 06:36:44 +0000 (19:36 +1300)]
Add a summary header

This helps to verify the summary data in a few ways:
* Checks that it is in the right block etc (eg.
was not copied there by an old version of yaffs.
* Checks it is same.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoRemove extra line from banner.
Charles Manning [Mon, 27 Feb 2012 03:11:36 +0000 (16:11 +1300)]
Remove extra line from banner.

Make this file the same as others.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoAdd script to handle common Linux and direct files
Charles Manning [Mon, 27 Feb 2012 00:30:17 +0000 (13:30 +1300)]
Add script to handle common Linux and direct files

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoChange Makefiles to support new way to structure yaffs_strxxx renaming for yaffs...
Charles Manning [Mon, 27 Feb 2012 00:09:58 +0000 (13:09 +1300)]
Change Makefiles to support new way to structure yaffs_strxxx renaming for yaffs direct

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoUpdate README about linux patching
Charles Manning [Sun, 26 Feb 2012 22:01:42 +0000 (11:01 +1300)]
Update README about linux patching

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoUpdate Makefiles for new sed-based way case-insensitive handling
Charles Manning [Tue, 14 Feb 2012 01:06:28 +0000 (14:06 +1300)]
Update Makefiles for new sed-based way case-insensitive handling

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoSet up new version of case insensitive code using sed
Charles Manning [Mon, 13 Feb 2012 04:40:39 +0000 (17:40 +1300)]
Set up new version of case insensitive code using sed

This version uses sed to change strncmp->yaffs_strncmp etc.
This emnables us to keep the core code free of yaffs_strxxx macros.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoAdd large file support changes to yaffs_vfs_single.c
Charles Manning [Mon, 13 Feb 2012 03:11:09 +0000 (16:11 +1300)]
Add large file support changes to yaffs_vfs_single.c

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoMerge branch 'big-files': Merge in large file support
Charles Manning [Mon, 13 Feb 2012 02:47:12 +0000 (15:47 +1300)]
Merge branch 'big-files':  Merge in large file support

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoAdd Waldemar's patches for Linux 3.2
Charles Manning [Mon, 13 Feb 2012 02:30:01 +0000 (15:30 +1300)]
Add Waldemar's patches for Linux 3.2

Also rolled in some suggestions for the multi-version code.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs direct: Remove unused dependency in yaffs_list.h on yportenv.h
Charles Manning [Tue, 24 Jan 2012 22:17:08 +0000 (11:17 +1300)]
yaffs direct: Remove unused dependency in yaffs_list.h on yportenv.h

Don't need it, then don't include it!

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs direct: Prevent yaffs_start_up being called twice.
Charles Manning [Wed, 18 Jan 2012 01:43:13 +0000 (14:43 +1300)]
yaffs direct: Prevent yaffs_start_up being called twice.

It is OK to add more devices on the fly, but the yaffs_start_up function
memsets the device back to 0 which nukes the list head and breaks the list.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs Direct: Add feature to limit the number of files that may be created on a singl...
Charles Manning [Tue, 17 Jan 2012 22:49:27 +0000 (11:49 +1300)]
yaffs Direct: Add feature to limit the number of files that may be created on a single file system.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs direct: Fix bounds issue in handle to pointer function
Charles Manning [Thu, 5 Jan 2012 01:47:02 +0000 (14:47 +1300)]
yaffs direct: Fix bounds issue in handle to pointer function

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs large file support: Fix max file size issue that prevented the scanning working. big-files
Charles Manning [Wed, 4 Jan 2012 21:39:45 +0000 (10:39 +1300)]
yaffs large file support: Fix max file size issue that prevented the scanning working.

Right now, yaffs2 large file support seems to be doing everything needed to support
large files. Large files are faithfully restored over cache dropping, remounting and
rescanning (remount without checkpoint).

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoWIP Changes to tests
Charles Manning [Tue, 3 Jan 2012 00:08:11 +0000 (13:08 +1300)]
WIP Changes to tests

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs large file support: Add more tests
Charles Manning [Wed, 21 Dec 2011 03:41:57 +0000 (16:41 +1300)]
yaffs large file support: Add more tests

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs large file support: Saves and restores large files fine under yaffs direct.
Charles Manning [Wed, 21 Dec 2011 03:14:58 +0000 (16:14 +1300)]
yaffs large file support: Saves and restores large files fine under yaffs direct.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agolarge file storage WIP. Can save and verify a large file under yaffs direct.
Charles Manning [Wed, 21 Dec 2011 02:23:19 +0000 (15:23 +1300)]
large file storage WIP. Can save and verify a large file under yaffs direct.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoWIP large file support
Charles Manning [Tue, 20 Dec 2011 02:58:11 +0000 (15:58 +1300)]
WIP large file support

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoHave updated yaffs direct tests and added README files to the tests.
Timothy Manning [Fri, 16 Dec 2011 00:28:52 +0000 (13:28 +1300)]
Have updated yaffs direct tests and added README files to the tests.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
12 years agoFirst cut of changes to support large files.
Charles Manning [Thu, 15 Dec 2011 21:57:05 +0000 (10:57 +1300)]
First cut of changes to support large files.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Timothy Manning [Wed, 7 Dec 2011 22:01:43 +0000 (11:01 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

12 years agoRemove dependencies on sys/stat.h when yaffs provides values.
Charles Manning [Wed, 21 Sep 2011 05:00:00 +0000 (17:00 +1200)]
Remove dependencies on sys/stat.h when yaffs provides values.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoFix python wrapper pointer types
Charles Manning [Mon, 15 Aug 2011 03:48:01 +0000 (15:48 +1200)]
Fix python wrapper pointer types

c_int instead of pointers and returning c_int instead of void
caused problems on 64 bits.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoMods for Linux 3.0 and fix a typo
Charles Manning [Sun, 14 Aug 2011 23:40:30 +0000 (11:40 +1200)]
Mods for Linux 3.0 and fix a typo

Roll in NCB's patch and some other changes for Linux 3.0.
Also fix a dumb type retired_writes->retried_writes

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoAdd yaffs_utime and related code
Charles Manning [Fri, 5 Aug 2011 01:06:49 +0000 (13:06 +1200)]
Add yaffs_utime and related code

Some changes to white spaces came along for the ride...

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoAdd summary code to python tester Makefile
Charles Manning [Fri, 5 Aug 2011 01:05:02 +0000 (13:05 +1200)]
Add summary code to python tester Makefile

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs: Fix typo in mkyaffsimage
Charles Manning [Tue, 28 Jun 2011 01:46:33 +0000 (13:46 +1200)]
yaffs: Fix typo in mkyaffsimage

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoFix type cacl -> calc
Charles Manning [Fri, 10 Jun 2011 04:14:17 +0000 (16:14 +1200)]
Fix type cacl -> calc

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs: Add utils header file
Charles Manning [Thu, 19 May 2011 01:23:08 +0000 (13:23 +1200)]
yaffs: Add utils header file

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
12 years agoyaffs: Fix compilation of utils
Charles Manning [Fri, 29 Apr 2011 05:08:07 +0000 (17:08 +1200)]
yaffs: Fix compilation of utils

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
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 Fixing some minor warnings in direct/timothy_tests/linux_tests
Timothy Manning [Thu, 27 Jan 2011 23:56:51 +0000 (12:56 +1300)]
yaffs Fixing some minor warnings in direct/timothy_tests/linux_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
13 years agoyaffs Finshed direct/timothy_tests/linux_test.
Timothy Manning [Thu, 27 Jan 2011 23:14:38 +0000 (12:14 +1300)]
yaffs Finshed direct/timothy_tests/linux_test.
Signed-off-by: Timothy Manning <tfhmanning@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 Added a new test for yaffs functions via linux command calls.
Timothy Manning [Tue, 25 Jan 2011 22:28:00 +0000 (11:28 +1300)]
yaffs Added a new test for yaffs functions via linux command calls.
Signed-off-by: Timothy Manning <tfhmanning@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>