yaffs2.git
10 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Tue, 7 May 2013 04:06:57 +0000 (16:06 +1200)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

10 years agoSome clean ups.
Charles Manning [Tue, 7 May 2013 04:06:00 +0000 (16:06 +1200)]
Some clean ups.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
10 years agoAdd nand driver that works with a nand simulator
Charles Manning [Tue, 7 May 2013 04:04:57 +0000 (16:04 +1200)]
Add nand driver that works with a nand simulator

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs linux: Fix chunk alignment for inband tags
Charles Manning [Fri, 18 Jan 2013 02:46:43 +0000 (15:46 +1300)]
yaffs linux: Fix chunk alignment for inband tags

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Fri, 18 Jan 2013 02:17:53 +0000 (15:17 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

11 years agoyaffs linux: Fix compilation for Linux 3.6, 3.7, 3.8
Charles Manning [Fri, 18 Jan 2013 02:11:02 +0000 (15:11 +1300)]
yaffs linux: Fix compilation for Linux 3.6, 3.7, 3.8

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs linux: Rationalise and fix compilation for Linux 3.4 and 3.5
Charles Manning [Fri, 18 Jan 2013 01:54:36 +0000 (14:54 +1300)]
yaffs linux: Rationalise and fix compilation for Linux 3.4 and 3.5

Some major clean up to get rid of as many prototypes as possible.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agohave added the new rename tests to quick_tests
Timothy Manning [Thu, 17 Jan 2013 23:45:40 +0000 (12:45 +1300)]
have added the new rename tests to quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
11 years agohave added some of the new tests
Timothy Manning [Thu, 17 Jan 2013 04:25:55 +0000 (17:25 +1300)]
have added some of the new tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
11 years agofixed up all the quick tests
Timothy Manning [Thu, 17 Jan 2013 01:57:42 +0000 (14:57 +1300)]
fixed up all the quick tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
11 years agoworking on the quick tests
Timothy Manning [Wed, 16 Jan 2013 22:54:46 +0000 (11:54 +1300)]
working on the quick tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
11 years agodirect: Fix definition of yaffs_get_file_size function
Charles Manning [Wed, 12 Dec 2012 21:26:28 +0000 (10:26 +1300)]
direct: Fix definition of yaffs_get_file_size function

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs direct: Fix renaming file over directory or directory over file
Charles Manning [Thu, 6 Dec 2012 00:47:55 +0000 (13:47 +1300)]
yaffs direct: Fix renaming file over directory or directory over file

It was possible to rename a directory over a file or a file over a
directory. This is no longer allowed.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs fixed the headers of the timothy_tests makefiles and checked that the other...
Timothy Manning [Wed, 14 Nov 2012 21:30:54 +0000 (10:30 +1300)]
yaffs fixed the headers of the timothy_tests makefiles and checked that the other tests were still working.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
11 years agoyaffs all timothy_tests makefiles are working. threading test is broken.
Timothy Manning [Wed, 14 Nov 2012 21:21:02 +0000 (10:21 +1300)]
yaffs all timothy_tests makefiles are working. threading test is broken.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
11 years agoyaffs got the make files to work for timothy_tests/quick_tests
Timothy Manning [Tue, 13 Nov 2012 20:30:25 +0000 (09:30 +1300)]
yaffs got the make files to work for timothy_tests/quick_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
11 years agoyaffs Moving timothy_tests and updating the makefiles to work with the new test-framework
Timothy Manning [Mon, 12 Nov 2012 20:35:55 +0000 (09:35 +1300)]
yaffs Moving timothy_tests and updating the makefiles to work with the new test-framework
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
11 years agoMerge branch 'master' of ssh://www.aleph1.co.uk/home/aleph1/git/yaffs2
Charles Manning [Tue, 13 Nov 2012 18:16:47 +0000 (07:16 +1300)]
Merge branch 'master' of ssh://aleph1.co.uk/home/aleph1/git/yaffs2

11 years agoFix broken comment
Charles Manning [Tue, 13 Nov 2012 18:15:01 +0000 (07:15 +1300)]
Fix broken comment

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoSort out Linux kernel building with new driver model.
Charles Manning [Wed, 7 Nov 2012 01:15:20 +0000 (14:15 +1300)]
Sort out Linux kernel building with new driver model.

TODO yaffs_mtdif_single is just a copy of yaffs_mtdif_multi.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs direct: Fix bug where handle reinitialisation was damaging dsc lists
Charles Manning [Wed, 24 Oct 2012 19:57:27 +0000 (08:57 +1300)]
yaffs direct: Fix bug where handle reinitialisation was damaging dsc lists

This was a pretty obscure bug that only shows up if mounting a second mount
point while a directory search context was in use (ie a directory open for reading).

Thanks to Ed for finding this.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoAdd a brief README describing how to import core code into Yaffs Direct
Charles Manning [Sun, 14 Oct 2012 22:27:15 +0000 (11:27 +1300)]
Add a brief README describing how to import core code into Yaffs Direct

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoRemove misnamed test
Charles Manning [Fri, 12 Oct 2012 03:41:48 +0000 (16:41 +1300)]
Remove misnamed test

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoFix M18 driver for 64-bit systems
Charles Manning [Fri, 12 Oct 2012 03:41:25 +0000 (16:41 +1300)]
Fix M18 driver for 64-bit systems

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoAdd both regular nor and m18 tests to test harness
Charles Manning [Fri, 12 Oct 2012 03:40:00 +0000 (16:40 +1300)]
Add both regular nor and m18 tests to test harness

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoAdd more test scripts
Charles Manning [Fri, 12 Oct 2012 03:12:00 +0000 (16:12 +1300)]
Add more test scripts

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoAdd yaffs driver for regular NOR on simulator
Charles Manning [Fri, 12 Oct 2012 02:23:30 +0000 (15:23 +1300)]
Add yaffs driver for regular NOR on simulator

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoMerge branch 'driver-refactoring' into new-driver-refactoring
Charles Manning [Tue, 2 Oct 2012 02:41:32 +0000 (15:41 +1300)]
Merge branch 'driver-refactoring' into new-driver-refactoring

11 years agoyaffs u-boot: Fix erase for inband tags. fix-uboot pre-driver-refactoring
Charles Manning [Wed, 29 Aug 2012 19:28:39 +0000 (07:28 +1200)]
yaffs u-boot: Fix erase for inband tags.

Yaffs u-boot with inband tags was not working properly. Fixed.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs u-boot: Add new ycheck command, fix return types and modify filesize
Charles Manning [Wed, 29 Aug 2012 19:23:15 +0000 (07:23 +1200)]
yaffs u-boot:  Add new ycheck command, fix return types and modify filesize

ycheck filename [DIR|REG] checks if the file exists and is of the correct type
All functions now return a value that can be tested by $?
filesize env vaiable is now set by a read

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs: Fix issue with look-up off null names
Charles Manning [Thu, 26 Jul 2012 00:15:16 +0000 (12:15 +1200)]
yaffs: Fix issue with look-up off null names

Null names can happen if object headers are lost. The object gets named
"objnnn" where nnn is the object id.

We could therefore get the names, but the look-up was not working properly.

This fixes the issue so long as short names are enabled.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffsfs: Add yaffs_format function
Charles Manning [Wed, 25 Jul 2012 01:04:11 +0000 (13:04 +1200)]
yaffsfs: Add yaffs_format function

Allows the formatting of a yaffs device

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoSet up a test framework. driver-refactoring
Charles Manning [Mon, 25 Jun 2012 03:28:26 +0000 (15:28 +1200)]
Set up a test framework.

This lays out a common test framework structure that should make it simpler to extend tests in the
future.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoMore driver cleanup
Charles Manning [Mon, 25 Jun 2012 00:01:42 +0000 (12:01 +1200)]
More driver cleanup

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoSeperate drivers and tags handlers into their own interface structures
Charles Manning [Thu, 21 Jun 2012 04:33:35 +0000 (16:33 +1200)]
Seperate drivers and tags handlers into their own interface structures

These were in yaffs_params, but that was getting a bit cluttered.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoClean ups
Charles Manning [Thu, 21 Jun 2012 02:29:02 +0000 (14:29 +1200)]
Clean ups

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoClean up obsolete CVS version stamps and some other messiness.
Charles Manning [Wed, 20 Jun 2012 22:32:50 +0000 (10:32 +1200)]
Clean up obsolete CVS version stamps and some other messiness.

Just obsolete and benign messiness being cleaned up.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs refactoring: Fix tags compatability bad block marker check
Charles Manning [Wed, 20 Jun 2012 22:30:52 +0000 (10:30 +1200)]
yaffs refactoring: Fix tags compatability bad block marker check

Was looking at the wrong chunks.

11 years agoyaffs driver refactoring: Change to Linux driver interface
Charles Manning [Wed, 20 Jun 2012 04:27:03 +0000 (16:27 +1200)]
yaffs driver refactoring: Change to Linux driver interface

This needed to be changed again after various tags compatability
tweaking.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs: Refactor drivers WIP - stress tests passing
Charles Manning [Wed, 20 Jun 2012 04:15:11 +0000 (16:15 +1200)]
yaffs: Refactor drivers WIP - stress tests passing

Both yaffs1 and yaffs2 modes seem to be doing the right thing under
stress testing.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoRefactor nand driver layer. WIP: yaffs2 working on Linux
Charles Manning [Tue, 19 Jun 2012 02:32:23 +0000 (14:32 +1200)]
Refactor nand driver layer. WIP: yaffs2 working on Linux

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs: By default route all writes into the yaffs cache
Charles Manning [Thu, 14 Jun 2012 22:16:42 +0000 (10:16 +1200)]
yaffs: By default route all writes into the yaffs cache

In the past only non-aligned or inband-tags writes were written
into the internal cache. However the cache has some benefits
with certain write patterns, so the default has been changed to
always write into the cache.

A control parameter has been added to bypass the cache for aligned writes.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs direct: Fix up some code formatting.
Charles Manning [Thu, 14 Jun 2012 22:14:27 +0000 (10:14 +1200)]
yaffs direct: Fix up some code formatting.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoMerge in yaffsfs.c changes
Charles Manning [Thu, 14 Jun 2012 04:04:23 +0000 (16:04 +1200)]
Merge in yaffsfs.c changes

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoRefactor checkpoint chunk and block offsetting.
Charles Manning [Mon, 18 Jun 2012 23:52:36 +0000 (11:52 +1200)]
Refactor checkpoint chunk and block offsetting.

This makes the offsetting a lot cleaner and fixes a couple of mistakes.

This should perhaps be refactored to not use the offsets.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoyaffs direct cleanups: C++ header wrapping and u32 type change
Charles Manning [Thu, 14 Jun 2012 03:01:36 +0000 (15:01 +1200)]
yaffs direct cleanups: C++ header wrapping and u32 type change

Some of the clean-ups proposed by Stéphane Lesage.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoMerge branch '32-bit-loff_t'
Charles Manning [Thu, 14 Jun 2012 01:22:40 +0000 (13:22 +1200)]
Merge branch '32-bit-loff_t'

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoChange loff_t to Y_LOFF_T in Yaffs Direct
Charles Manning [Thu, 14 Jun 2012 01:17:33 +0000 (13:17 +1200)]
Change loff_t to Y_LOFF_T in Yaffs Direct

This allows easy porting to 32-bit loff_t.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoChanges to support 32-bit loff_t
Charles Manning [Fri, 8 Jun 2012 00:19:38 +0000 (12:19 +1200)]
Changes to support 32-bit loff_t

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoChange how unused arguments are handled
Charles Manning [Thu, 7 Jun 2012 21:49:15 +0000 (09:49 +1200)]
Change how unused arguments are handled

Changed form from
  a = a
  (void) a

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoFix some statics and remove unused function
Charles Manning [Thu, 7 Jun 2012 02:54:30 +0000 (14:54 +1200)]
Fix some statics and remove unused function

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
11 years agoTurn off soft deletion in tests
Charles Manning [Fri, 1 Jun 2012 00:03:08 +0000 (12:03 +1200)]
Turn off soft deletion in tests

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
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>