yaffs2.git
18 years agoPatch from Todd Poyner (tpoynor@mvista.com)
marty [Thu, 27 Oct 2005 07:22:49 +0000 (07:22 +0000)]
Patch from Todd Poyner (tpoynor@mvista.com)

Return zero, not number of bytes written, for success (and non-zero for
error) in the commit_write method.  Some callers, notably the loopback
mount driver, treat non-zero return as an error.

18 years agoThrow out obsolete code
charles [Thu, 13 Oct 2005 02:17:00 +0000 (02:17 +0000)]
Throw out obsolete code

18 years agoUse vmalloc for large memory allocations
charles [Sun, 9 Oct 2005 07:55:00 +0000 (07:55 +0000)]
Use vmalloc for large memory allocations

18 years agoImprove YDI lookup and device prefic handling
charles [Fri, 7 Oct 2005 03:48:50 +0000 (03:48 +0000)]
Improve YDI lookup and device prefic handling

18 years agoAdd support for vmallocing large blockInfos
charles [Fri, 7 Oct 2005 02:46:49 +0000 (02:46 +0000)]
Add support for vmallocing large blockInfos

18 years agoAdded some documentation to moduleconfig.h and set it to match the
marty [Wed, 21 Sep 2005 15:16:59 +0000 (15:16 +0000)]
Added some documentation to moduleconfig.h and set it to match the
Kconfig defaults.

Updated Kconfig to force selection of YAFFS1 and YAFFS2 for now, until
we straighten out the ifdefs so that one can be built when the other
isn't.

18 years agoFix problem introduced my mv over fix
charles [Wed, 21 Sep 2005 01:14:03 +0000 (01:14 +0000)]
Fix problem introduced my mv over fix

18 years agoMove comment
charles [Tue, 20 Sep 2005 23:14:14 +0000 (23:14 +0000)]
Move comment

18 years agoImprove ecc warnings
charles [Tue, 20 Sep 2005 23:12:38 +0000 (23:12 +0000)]
Improve ecc warnings

18 years agoSilly Marty, picked wrong guard for moduleconfig.h
marty [Tue, 20 Sep 2005 22:46:17 +0000 (22:46 +0000)]
Silly Marty, picked wrong guard for moduleconfig.h

18 years agoTake out CONFIG_YAFFS_YAFFS1s for easier build
charles [Tue, 20 Sep 2005 05:23:41 +0000 (05:23 +0000)]
Take out CONFIG_YAFFS_YAFFS1s for easier build

18 years agoFix rename over problem
charles [Tue, 20 Sep 2005 05:22:43 +0000 (05:22 +0000)]
Fix rename over problem

18 years agoAdd support for faster yaffs direct look-ups. Fix rename over problem
charles [Tue, 20 Sep 2005 05:08:50 +0000 (05:08 +0000)]
Add support for faster yaffs direct look-ups. Fix rename over problem

18 years agoAdd support for faster yaffs direct look-ups.
charles [Tue, 20 Sep 2005 05:05:40 +0000 (05:05 +0000)]
Add support for faster yaffs direct look-ups.

18 years agoModified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty [Sun, 18 Sep 2005 05:31:26 +0000 (05:31 +0000)]
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
kernels.  (See Documentation/kbuild for details on how to do this).

Modified yportenv.h to include moduleconfig.h

Added new file moduleconfig.h.  This is the compromise that makes it
possible to build yaffs in any of three ways:

1) in-kernel, in the kernel source tree.  You put yaffs into the
   kernel source tree using patch-ker.sh
2) as-module, in the kernel source tree.
3) as-module, out of the kernel source tree.

Because modules built outside of the kernel source tree can't use the
kconfig tool to add their CONFIG_ variable to <linux/config.h>,
moduleconfig.h is a compromise that gathers all of the CONFIG_
variables in one place.

The CONFIG_ variables in moduleconfig.h are protected by
KBUILD_MODNAME, a variable that is only set when a module is built
outside of the kernel source tree.

The CONFIG_ variables are all on by default -- this is probably not
what you want.  Comment out the ones that you don't want enabled.

NOTE: Not all of the CONFIG_ variables used in yaffs2 are in
moduleconfig.h.  Those that are not relevant to Linux are missing.

18 years agolindent
charles [Tue, 16 Aug 2005 02:28:04 +0000 (02:28 +0000)]
lindent

18 years ago*** empty log message ***
charles [Thu, 11 Aug 2005 02:51:49 +0000 (02:51 +0000)]
*** empty log message ***

18 years agolindent
marty [Thu, 11 Aug 2005 02:33:02 +0000 (02:33 +0000)]
lindent

18 years agolindent
marty [Thu, 11 Aug 2005 01:07:43 +0000 (01:07 +0000)]
lindent

18 years agoLindent
charles [Thu, 11 Aug 2005 00:34:14 +0000 (00:34 +0000)]
Lindent

18 years ago*** empty log message ***
charles [Wed, 10 Aug 2005 23:47:31 +0000 (23:47 +0000)]
*** empty log message ***

18 years agoChange bad block marker to Y to identify YAFFS-marked bad blocks
charles [Wed, 10 Aug 2005 20:34:40 +0000 (20:34 +0000)]
Change bad block marker to Y to identify YAFFS-marked bad blocks

18 years agoStrip obsolete code
charles [Tue, 9 Aug 2005 04:22:30 +0000 (04:22 +0000)]
Strip obsolete code

18 years agoStrip obsolete code
charles [Tue, 9 Aug 2005 04:17:30 +0000 (04:17 +0000)]
Strip obsolete code

18 years agoComplete shadowing
charles [Tue, 9 Aug 2005 03:52:23 +0000 (03:52 +0000)]
Complete shadowing

18 years agoyaffs_ramem2k.c moved to direct
charles [Tue, 9 Aug 2005 01:02:04 +0000 (01:02 +0000)]
yaffs_ramem2k.c moved to direct

18 years ago*** empty log message ***
charles [Tue, 9 Aug 2005 01:00:37 +0000 (01:00 +0000)]
*** empty log message ***

18 years agoFix an error in writepage when a file is extended.
luc [Thu, 4 Aug 2005 22:47:36 +0000 (22:47 +0000)]
Fix an error in writepage when a file is extended.

When a file is extended with truncate(), the call to inode_setattr() in yaffs_setattr()
call vmtruncate() which itself call a bunches of yaffs_writepage().
There we must NOT fill page whit index greater that the one given by the inode
'cos these pages refers to parts of the file which doesn't physically exists.

18 years agoCheck the return value of mtd->write_ecc() calls.
luc [Tue, 2 Aug 2005 19:18:44 +0000 (19:18 +0000)]
Check the return value of mtd->write_ecc() calls.

If not done, write failures will not be detected.

Thanks to Artis Kugevics.

18 years agoInitialize the field eccbytes in nand_oobinfo.
luc [Tue, 2 Aug 2005 19:17:55 +0000 (19:17 +0000)]
Initialize the field eccbytes in nand_oobinfo.

Required to specify eccbytes for current MTD version, otherwise ECC will fail.

Thanks to Artis Kugevics.

18 years agoMore stuff to fix shrinkHeader handling problem
charles [Tue, 2 Aug 2005 04:24:22 +0000 (04:24 +0000)]
More stuff to fix shrinkHeader handling problem

18 years agoDuring scanning, only adjust shrinkSize if if is a shrink header
charles [Mon, 1 Aug 2005 23:36:56 +0000 (23:36 +0000)]
During scanning, only adjust shrinkSize if if is a shrink header

18 years agoMove around the option in Kconfig so that depending stuff are nicely indented.
luc [Mon, 1 Aug 2005 21:03:06 +0000 (21:03 +0000)]
Move around the option in Kconfig so that depending stuff are nicely indented.

18 years agonewconfig: use YAFFS_DOES_ECC instead of USE_NANDECC
luc [Mon, 1 Aug 2005 21:02:22 +0000 (21:02 +0000)]
newconfig: use YAFFS_DOES_ECC instead of USE_NANDECC

18 years agoRemove the support for yaffsram.
luc [Mon, 1 Aug 2005 21:01:02 +0000 (21:01 +0000)]
Remove the support for yaffsram.

18 years agoAdapt the code structure after removing of the yaffsram support.
luc [Mon, 1 Aug 2005 20:55:24 +0000 (20:55 +0000)]
Adapt the code structure after removing of the yaffsram support.

18 years agoRemove the support for yaffsram.
luc [Mon, 1 Aug 2005 20:54:45 +0000 (20:54 +0000)]
Remove the support for yaffsram.

18 years agoRemove the support for the old MTD.
luc [Mon, 1 Aug 2005 20:52:35 +0000 (20:52 +0000)]
Remove the support for the old MTD.

18 years agoRemove old code/tests that are in commented out.
luc [Mon, 1 Aug 2005 20:50:24 +0000 (20:50 +0000)]
Remove old code/tests that are in commented out.

18 years agoRemove never used functions and declarations.
luc [Mon, 1 Aug 2005 20:49:38 +0000 (20:49 +0000)]
Remove never used functions and declarations.

18 years agoCorrect the calculation of the block number to erase.
luc [Mon, 1 Aug 2005 20:48:41 +0000 (20:48 +0000)]
Correct the calculation of the block number to erase.

The use of ">> 5" to calculate the block number from the chunk number
was incorrect for the actual value of PAGES_PER_BLOCK (64).

At the same time, make this less error prone.

18 years agoAdd missing default value for some Kconfig's entries.
luc [Mon, 1 Aug 2005 20:46:44 +0000 (20:46 +0000)]
Add missing default value for some Kconfig's entries.

18 years agoFix handling of NULL calls to FindObjectByName
charles [Mon, 1 Aug 2005 04:53:01 +0000 (04:53 +0000)]
Fix handling of NULL calls to FindObjectByName

18 years agoOoops. missed this one: Needed to change MTD_ defines to match changes
marty [Sun, 31 Jul 2005 09:26:35 +0000 (09:26 +0000)]
Ooops.  missed this one: Needed to change MTD_ defines to match changes
in the source code.

18 years agoAdded files that support the ability to "patchin" yaffs2 into the 2.6
marty [Sun, 31 Jul 2005 09:04:13 +0000 (09:04 +0000)]
Added files that support the ability to "patchin" yaffs2 into the 2.6
kernel tree so that it can be compiled there.  Makefile.kernel and
patch-ker.sh will need to be edited when the source tree is reorganized.

18 years agoRemove CONFIG_YAFFS_USE_CHUNK_SIZE
marty [Sun, 31 Jul 2005 08:38:41 +0000 (08:38 +0000)]
Remove CONFIG_YAFFS_USE_CHUNK_SIZE
convert CONFIG_YAFFS_MTD_ENABLED to CONFIG_YAFFS_YAFFS1
convert CONFIG_YAFFS2_MTD_ENABLED to CONFIG_YAFFS_YAFFS2

18 years agoAdd flag for object shadowing
charles [Sun, 31 Jul 2005 06:56:57 +0000 (06:56 +0000)]
Add flag for object shadowing

18 years agoAdd stuff for object shadowing (more to come) and clean up some declarations
charles [Sun, 31 Jul 2005 06:54:19 +0000 (06:54 +0000)]
Add stuff for object shadowing (more to come) and clean up some declarations

18 years agoAdd stuff for object shadowing and fix a constness
charles [Sun, 31 Jul 2005 06:52:40 +0000 (06:52 +0000)]
Add stuff for object shadowing and fix a constness

18 years agoIf kernel/config.h is included in yportenv.h, then yportenv.h must be
marty [Sun, 31 Jul 2005 06:47:12 +0000 (06:47 +0000)]
If kernel/config.h is included in yportenv.h, then yportenv.h must be
always included.  Move it outside of ifdef CONFIG_YAFFS_MTD_ENABLED.

added in additional configuration conditionals to shut up gcc about
defined but not used functions in yaffs_fs.c

added in NOTYET around functions that aren't currently used in
yaffs_tagscompat.c to shut up gcc about defined but not used function.

18 years agoapplied patch 14-sparse-fix--remove-unused.diff
marty [Sun, 31 Jul 2005 04:09:26 +0000 (04:09 +0000)]
applied patch 14-sparse-fix--remove-unused.diff

18 years agoapplied patch 13-sparse-fix--make-some-symbol-static.diff
marty [Sun, 31 Jul 2005 04:08:08 +0000 (04:08 +0000)]
applied patch 13-sparse-fix--make-some-symbol-static.diff

18 years agoapplied patch 11-sparse-fix--use-C99-struct-initializer.diff
marty [Sun, 31 Jul 2005 04:05:14 +0000 (04:05 +0000)]
applied patch 11-sparse-fix--use-C99-struct-initializer.diff

18 years agoApplied patch 03-read-super-MTD-if-CONFIG_YAFFS-or-YAFFS2_MTD_ENABLED.diff
marty [Sun, 31 Jul 2005 03:58:17 +0000 (03:58 +0000)]
Applied patch 03-read-super-MTD-if-CONFIG_YAFFS-or-YAFFS2_MTD_ENABLED.diff

18 years agoReplace linux/config.h with yportenv.h and remove some dead code
charles [Sun, 31 Jul 2005 00:28:04 +0000 (00:28 +0000)]
Replace linux/config.h with yportenv.h and remove some dead code

18 years agoAdd linux/config.h here and change include markers
charles [Sun, 31 Jul 2005 00:26:57 +0000 (00:26 +0000)]
Add linux/config.h here and change include markers

18 years agoGive a name to the nandemul2k MTD device.
luc [Fri, 29 Jul 2005 23:51:44 +0000 (23:51 +0000)]
Give a name to the nandemul2k MTD device.

18 years agoFix devname which was faked by always using "(unavailable)".
luc [Fri, 29 Jul 2005 23:51:18 +0000 (23:51 +0000)]
Fix devname which was faked by always using "(unavailable)".

Make proper use of bdevname() and sb->s_bdev,
but maybe it is better to simply use sb->s_id?

18 years agoSet the correct uid/gid of newly created files when: use fsuid & fsgid and take care...
luc [Fri, 29 Jul 2005 20:25:43 +0000 (20:25 +0000)]
Set the correct uid/gid of newly created files when: use fsuid & fsgid and take care when the SGID bit is set on the parent directory.

This  should solve the problem reported by Frank Lehmann (http://lists.aleph1.co.uk/pipermail/yaffs/2005q2/001178.html).

18 years agoMake private the nand_scan() function defined in nandemul2k.c.
luc [Fri, 29 Jul 2005 20:21:28 +0000 (20:21 +0000)]
Make private the nand_scan() function defined in nandemul2k.c.

It clash with the one from MTD and make it impossible to statically compile this code in the kernel together with MTD (and will also make problems with modules).

18 years agoFix some declarations mismatch between the MTD interface and the implementation in...
luc [Fri, 29 Jul 2005 20:19:06 +0000 (20:19 +0000)]
Fix some declarations mismatch between the MTD interface and the implementation in nandemul2k.c: constness problems, iovec vs. kvec and int vs. loff_t

18 years agoAdd missing #include file: yaffs_nandemul2k.h and removing a macro which is now redef...
luc [Fri, 29 Jul 2005 20:16:23 +0000 (20:16 +0000)]
Add missing #include file: yaffs_nandemul2k.h and removing a macro which is now redefined.

18 years agoMove the internals read_super() functions near the declaration of
luc [Fri, 29 Jul 2005 20:13:23 +0000 (20:13 +0000)]
Move the internals read_super() functions near the declaration of
    they corresponding fs_type declaration so that their compilation are properly conditionalized.

18 years agoRemove #include file obsoleted in Linux-2.6
luc [Fri, 29 Jul 2005 20:00:53 +0000 (20:00 +0000)]
Remove #include file obsoleted in Linux-2.6

18 years agoAdd missing #include <linux/config.h>
luc [Fri, 29 Jul 2005 19:57:38 +0000 (19:57 +0000)]
Add missing #include <linux/config.h>

Needed to compile the code with a Makefile from the Linux tree.

18 years agoClean up field assignments
charles [Wed, 27 Jul 2005 20:23:15 +0000 (20:23 +0000)]
Clean up field assignments

18 years agoFix compiler warnings
charles [Wed, 27 Jul 2005 02:00:48 +0000 (02:00 +0000)]
Fix compiler warnings

18 years agoAllow /proc/yaffs to handle multiple fs
charles [Tue, 26 Jul 2005 23:04:34 +0000 (23:04 +0000)]
Allow /proc/yaffs to handle multiple fs

18 years agoFix structure field assignments
charles [Tue, 26 Jul 2005 20:23:30 +0000 (20:23 +0000)]
Fix structure field assignments

18 years agoPrevent recursive gc
charles [Tue, 26 Jul 2005 03:05:28 +0000 (03:05 +0000)]
Prevent recursive gc

18 years agoFix bad block offsets
charles [Wed, 20 Jul 2005 18:57:05 +0000 (18:57 +0000)]
Fix bad block offsets

18 years agoApply Luc's patches
charles [Tue, 19 Jul 2005 20:41:59 +0000 (20:41 +0000)]
Apply Luc's patches

18 years agoSome improvements to garbage collection and st_xxx to yst_xxx changes
charles [Mon, 18 Jul 2005 23:16:04 +0000 (23:16 +0000)]
Some improvements to garbage collection and st_xxx to yst_xxx changes

18 years agoSome tinkering on test harness and st_xxx to yst_xxx changes
charles [Mon, 18 Jul 2005 23:12:00 +0000 (23:12 +0000)]
Some tinkering on test harness and st_xxx to yst_xxx changes

18 years agoFix issue with zero page
charles [Wed, 6 Jul 2005 00:36:32 +0000 (00:36 +0000)]
Fix issue with zero page

18 years agoAllow use of page zero
charles [Tue, 5 Jul 2005 23:54:59 +0000 (23:54 +0000)]
Allow use of page zero

18 years agoAdd cache write through and some benign fixes
charles [Sun, 3 Jul 2005 10:32:40 +0000 (10:32 +0000)]
Add cache write through and some benign fixes

18 years ago*** empty log message ***
charles [Sun, 3 Jul 2005 05:48:11 +0000 (05:48 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
charles [Fri, 29 Apr 2005 18:09:16 +0000 (18:09 +0000)]
*** empty log message ***

18 years agoFix df size problem
charles [Fri, 29 Apr 2005 07:01:18 +0000 (07:01 +0000)]
Fix df size problem

18 years agoAdd scanning speedups
charles [Sun, 24 Apr 2005 09:57:06 +0000 (09:57 +0000)]
Add scanning speedups

18 years agoMake bigger RAM emulation
charles [Sun, 24 Apr 2005 09:26:08 +0000 (09:26 +0000)]
Make bigger RAM emulation

18 years agoFix 2.6 special inodes
charles [Sun, 24 Apr 2005 09:20:24 +0000 (09:20 +0000)]
Fix 2.6 special inodes

18 years agoFix problem when accessing unmounted fs
charles [Sun, 24 Apr 2005 09:18:52 +0000 (09:18 +0000)]
Fix problem when accessing unmounted fs

18 years agoChange to kill_block_super
charles [Sun, 24 Apr 2005 08:05:16 +0000 (08:05 +0000)]
Change to kill_block_super

19 years agoAdd patches from Nick Banes for compatability
charles [Wed, 16 Mar 2005 04:00:36 +0000 (04:00 +0000)]
Add patches from Nick Banes for compatability

19 years ago*** empty log message ***
charles [Fri, 17 Dec 2004 23:14:51 +0000 (23:14 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
charles [Fri, 17 Dec 2004 04:39:04 +0000 (04:39 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
charles [Mon, 22 Nov 2004 03:22:25 +0000 (03:22 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
charles [Sun, 21 Nov 2004 21:39:57 +0000 (21:39 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
charles [Tue, 16 Nov 2004 02:36:15 +0000 (02:36 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
charles [Wed, 3 Nov 2004 09:16:47 +0000 (09:16 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
charles [Wed, 3 Nov 2004 08:35:48 +0000 (08:35 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
charles [Wed, 3 Nov 2004 08:29:28 +0000 (08:29 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
charles [Wed, 3 Nov 2004 08:14:07 +0000 (08:14 +0000)]
*** empty log message ***