summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Kconfig66
-rw-r--r--Makefile13
-rw-r--r--devextras.h11
-rw-r--r--moduleconfig.h15
-rwxr-xr-xpatch-ker.sh4
-rw-r--r--utils/mkyaffs2image.c25
-rw-r--r--utils/mkyaffsimage.c20
-rw-r--r--yaffs_checkptrw.c7
-rw-r--r--yaffs_checkptrw.h15
-rw-r--r--yaffs_ecc.c15
-rw-r--r--yaffs_ecc.h10
-rw-r--r--yaffs_fs.c26
-rw-r--r--yaffs_guts.c6
-rw-r--r--yaffs_guts.h8
-rw-r--r--yaffs_mtdif.c7
-rw-r--r--yaffs_mtdif.h8
-rw-r--r--yaffs_mtdif2.c7
-rw-r--r--yaffs_mtdif2.h8
-rw-r--r--yaffs_nand.c6
-rw-r--r--yaffs_nand.h7
-rw-r--r--yaffs_nandemul2k.h11
-rw-r--r--yaffs_packedtags1.c14
-rw-r--r--yaffs_packedtags1.h17
-rw-r--r--yaffs_packedtags2.c13
-rw-r--r--yaffs_packedtags2.h15
-rw-r--r--yaffs_qsort.h8
-rw-r--r--yaffs_tagscompat.c7
-rw-r--r--yaffs_tagscompat.h14
-rw-r--r--yaffs_tagsvalidity.c6
-rw-r--r--yaffs_tagsvalidity.h11
-rw-r--r--yaffsinterface.h6
-rw-r--r--yportenv.h11
32 files changed, 240 insertions, 177 deletions
diff --git a/Kconfig b/Kconfig
index dd33079..6bd1a6b 100644
--- a/Kconfig
+++ b/Kconfig
@@ -12,8 +12,8 @@ config YAFFS_FS
YAFFS2, or Yet Another Flash Filing System, is a filing system
optimised for NAND Flash chips.
- To compile the YAFFS2 file system support as a module, choose M here:
- the module will be called yaffs2.
+ To compile the YAFFS2 file system support as a module, choose M
+ here: the module will be called yaffs2.
If unsure, say N.
@@ -26,6 +26,8 @@ config YAFFS_YAFFS1
default y
help
Enable YAFFS1 support -- yaffs for 512 byte / page devices
+
+ Not needed for 2K-page devices.
If unsure, say Y.
@@ -44,9 +46,9 @@ config YAFFS_ECC_WRONG_ORDER
depends on YAFFS_FS && YAFFS_DOES_ECC
default n
help
- This makes yaffs_ecc.c use the same ecc byte order as
- Steven Hill's nand_ecc.c. If not set, then you get the
- same ecc byte order as SmartMedia.
+ This makes yaffs_ecc.c use the same ecc byte order as Steven
+ Hill's nand_ecc.c. If not set, then you get the same ecc byte
+ order as SmartMedia.
If unsure, say N.
@@ -55,7 +57,7 @@ config YAFFS_YAFFS2
depends on YAFFS_FS
default y
help
- Enable YAFFS2 support -- yaffs for >= 2048 byte / page larger devices
+ Enable YAFFS2 support -- yaffs for >= 2K bytes per page devices
If unsure, say Y.
@@ -66,7 +68,8 @@ config YAFFS_AUTO_YAFFS2
help
Without this, you need to explicitely use yaffs2 as the file
system type. With this, you can say "yaffs" and yaffs or yaffs2
- will be used depending on the device page size.
+ will be used depending on the device page size (yaffs on
+ 512-byte page devices, yaffs2 on 2K page devices).
If unsure, say Y.
@@ -95,31 +98,34 @@ config YAFFS_CHECKPOINT_RESERVED_BLOCKS
depends on YAFFS_YAFFS2
default 10
help
- Give the number of Blocks to reserve for checkpointing. These Blocks
- are reserved per partition, so if you have very small partitions the
- default (10) may be a mess for you.
- You can set this value to 0, but that does not mean checkpointing is
- disabled at all. There only won't be any specially reserved blocks for
- checkpointing, so if there is enough free space on the filesystem,
- it will be used for checkpointing.
-
- If unsure, leave at default (10), but don't wonder if there are always
- 2MB used on your large page device partition (10 x 2k pagesize). When
- using small partitions or when being very small on space, you probably
- want to set this to zero.
+ Give the number of Blocks to reserve for checkpointing.
+ Checkpointing saves the state at unmount so that mounting is
+ much faster as a scan of all the flash to regenerate this state
+ is not needed. These Blocks are reserved per partition, so if
+ you have very small partitions the default (10) may be a mess
+ for you. You can set this value to 0, but that does not mean
+ checkpointing is disabled at all. There only won't be any
+ specially reserved blocks for checkpointing, so if there is
+ enough free space on the filesystem, it will be used for
+ checkpointing.
+
+ If unsure, leave at default (10), but don't wonder if there are
+ always 2MB used on your large page device partition (10 x 2k
+ pagesize). When using small partitions or when being very small
+ on space, you probably want to set this to zero.
config YAFFS_DISABLE_WIDE_TNODES
bool "Turn off wide tnodes"
depends on YAFFS_FS
default n
help
- Wide tnodes are only used for large NAND arrays (>=32MB for
- 512-byte page devices and >=128MB for 2k page devices). They use
- slightly more RAM but are faster since they eliminate chunk group
+ Wide tnodes are only used for NAND arrays >=32MB for 512-byte
+ page devices and >=128MB for 2k page devices. They use slightly
+ more RAM but are faster since they eliminate chunk group
searching.
- Setting this to 'y' will force tnode width to 16 bits and make
- large arrays slower.
+ Setting this to 'y' will force tnode width to 16 bits and save
+ memory but make large arrays slower.
If unsure, say N.
@@ -129,15 +135,15 @@ config YAFFS_ALWAYS_CHECK_CHUNK_ERASED
default n
help
Normally YAFFS only checks chunks before writing until an erased
- chunk is found. This helps to detect any partially written chunks
- that might have happened due to power loss.
+ chunk is found. This helps to detect any partially written
+ chunks that might have happened due to power loss.
Enabling this forces on the test that chunks are erased in flash
- before writing to them. This takes more time but is potentially a
- bit more secure.
+ before writing to them. This takes more time but is potentially
+ a bit more secure.
- Suggest setting Y during development and ironing out driver issues
- etc. Suggest setting to N if you want faster writing.
+ Suggest setting Y during development and ironing out driver
+ issues etc. Suggest setting to N if you want faster writing.
If unsure, say Y.
diff --git a/Makefile b/Makefile
index 72796a6..1155a67 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,16 @@
+
+# YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
+#
+# Copyright (C) 2002-2007 Aleph One Ltd.
+# for Toby Churchill Ltd and Brightstar Engineering
+#
+# Created by Charles Manning <charles@aleph1.co.uk>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+
+
ifneq ($(KERNELRELEASE),)
EXTRA_CFLAGS += -DYAFFS_OUT_OF_TREE
diff --git a/devextras.h b/devextras.h
index c858ba6..9635c7a 100644
--- a/devextras.h
+++ b/devextras.h
@@ -1,8 +1,7 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * devextras.h
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -12,13 +11,13 @@
* published by the Free Software Foundation.
*
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
- *
+ */
+
+/*
* This file is just holds extra declarations used during development.
* Most of these are from kernel includes placed here so we can use them in
* applications.
*
- * $Id: devextras.h,v 1.2 2005-08-11 02:37:49 marty Exp $
- *
*/
#ifndef __EXTRAS_H__
diff --git a/moduleconfig.h b/moduleconfig.h
index 41fb3c5..b51a150 100644
--- a/moduleconfig.h
+++ b/moduleconfig.h
@@ -1,3 +1,18 @@
+/*
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
+ *
+ * Copyright (C) 2002-2007 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
+ *
+ * Created by Martin Fouts <Martin.Fouts@palmsource.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 2.1 as
+ * published by the Free Software Foundation.
+ *
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
+ */
+
#ifndef __YAFFS_CONFIG_H__
#define __YAFFS_CONFIG_H__
diff --git a/patch-ker.sh b/patch-ker.sh
index 5c67f25..9323388 100755
--- a/patch-ker.sh
+++ b/patch-ker.sh
@@ -2,7 +2,7 @@
#
# YAFFS: Yet another FFS. A NAND-flash specific file system.
#
-# Copyright (C) 2002 Aleph One Ltd.
+# Copyright (C) 2002-2006 Aleph One Ltd.
#
# Created by Charles Manning <charles@aleph1.co.uk>
#
@@ -16,7 +16,7 @@
#
# Somewhat "inspired by" the mtd patchin script
#
-# $Id: patch-ker.sh,v 1.1 2005-07-31 09:04:13 marty Exp $
+# $Id: patch-ker.sh,v 1.2 2007-02-12 16:55:25 wookey Exp $
VERSION=0
PATCHLEVEL=0
diff --git a/utils/mkyaffs2image.c b/utils/mkyaffs2image.c
index fba4cd3..31d4190 100644
--- a/utils/mkyaffs2image.c
+++ b/utils/mkyaffs2image.c
@@ -1,26 +1,25 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * makeyaffsimage.c
- *
- * Makes a YAFFS file system image that can be used to load up a file system.
- *
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
+ * Nick Bane modifications flagged NCB
+ * Endian handling patches by James Ng.
+ * mkyaffs2image hacks by NCB
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
+ */
+
+/*
+ * makeyaffs2image.c
*
- * Nick Bane modifications flagged NCB
- *
- * Endian handling patches by James Ng.
- *
- * mkyaffs2image hacks by NCB
- *
+ * Makes a YAFFS2 file system image that can be used to load up a file system.
+ * Uses default Linux MTD layout - change if you need something different.
*/
#include <stdlib.h>
@@ -44,7 +43,7 @@ unsigned yaffs_traceMask=0;
#define chunkSize 2048
#define spareSize 64
-const char * mkyaffsimage_c_version = "$Id: mkyaffs2image.c,v 1.2 2005-12-13 00:34:58 tpoynor Exp $";
+const char * mkyaffsimage_c_version = "$Id: mkyaffs2image.c,v 1.3 2007-02-12 16:55:27 wookey Exp $";
typedef struct
diff --git a/utils/mkyaffsimage.c b/utils/mkyaffsimage.c
index fa9479a..e4c8fc6 100644
--- a/utils/mkyaffsimage.c
+++ b/utils/mkyaffsimage.c
@@ -1,25 +1,23 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * makeyaffsimage.c
- *
- * Makes a YAFFS file system image that can be used to load up a file system.
- *
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
+ * Nick Bane modifications flagged NCB
+ * Endian handling patches by James Ng
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
+ */
+
+/*
+ * makeyaffsimage.c
*
- * Nick Bane modifications flagged NCB
- *
- * Endian handling patches by James Ng.
- *
- *
+ * Makes a YAFFS file system image that can be used to load up a file system.
*/
#include <stdlib.h>
diff --git a/yaffs_checkptrw.c b/yaffs_checkptrw.c
index c61eaa3..0e6f7e1 100644
--- a/yaffs_checkptrw.c
+++ b/yaffs_checkptrw.c
@@ -1,6 +1,7 @@
-/* YAFFS: Yet another FFS. A NAND-flash specific file system.
+/*
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -12,7 +13,7 @@
*/
const char *yaffs_checkptrw_c_version =
- "$Id: yaffs_checkptrw.c,v 1.11 2006-11-11 23:27:04 charles Exp $";
+ "$Id: yaffs_checkptrw.c,v 1.12 2007-02-12 16:55:25 wookey Exp $";
#include "yaffs_checkptrw.h"
diff --git a/yaffs_checkptrw.h b/yaffs_checkptrw.h
index 9e58572..da78a06 100644
--- a/yaffs_checkptrw.h
+++ b/yaffs_checkptrw.h
@@ -1,3 +1,18 @@
+/*
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
+ *
+ * Copyright (C) 2002-2007 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
+ *
+ * Created by Charles Manning <charles@aleph1.co.uk>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 2.1 as
+ * published by the Free Software Foundation.
+ *
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
+ */
+
#ifndef __YAFFS_CHECKPTRW_H__
#define __YAFFS_CHECKPTRW_H__
diff --git a/yaffs_ecc.c b/yaffs_ecc.c
index 813ce6d..2eb69ba 100644
--- a/yaffs_ecc.c
+++ b/yaffs_ecc.c
@@ -1,16 +1,15 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * yaffs_ecc.c: ECC generation/correction algorithms.
- *
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
*/
/*
@@ -31,7 +30,7 @@
*/
const char *yaffs_ecc_c_version =
- "$Id: yaffs_ecc.c,v 1.7 2006-09-14 22:02:46 charles Exp $";
+ "$Id: yaffs_ecc.c,v 1.8 2007-02-12 16:55:25 wookey Exp $";
#include "yportenv.h"
diff --git a/yaffs_ecc.h b/yaffs_ecc.h
index 5f026a0..40fd02b 100644
--- a/yaffs_ecc.h
+++ b/yaffs_ecc.h
@@ -1,16 +1,16 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * yaffs_ecc.c: ECC generation/correction algorithms.
- *
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
* This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
+ * it under the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*/
/*
diff --git a/yaffs_fs.c b/yaffs_fs.c
index df0870d..57a8c10 100644
--- a/yaffs_fs.c
+++ b/yaffs_fs.c
@@ -1,16 +1,26 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yaffs_fs.c
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
+ * Acknowledgements:
+ * Luc van OostenRyck for numerous patches.
+ * Nick Bane for numerous patches.
+ * Nick Bane for 2.5/2.6 integration.
+ * Andras Toth for mknod rdev issue.
+ * Michael Fischer for finding the problem with inode inconsistency.
+ * Some code bodily lifted from JFFS
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
+ */
+
+/*
+ *
* This is the file system front-end to YAFFS that hooks it up to
* the VFS.
*
@@ -20,18 +30,10 @@
* >> 2.6: sb->s_fs_info points to the yaffs_Device associated with this
* superblock
* >> inode->u.generic_ip points to the associated yaffs_Object.
- *
- * Acknowledgements:
- * * Luc van OostenRyck for numerous patches.
- * * Nick Bane for numerous patches.
- * * Nick Bane for 2.5/2.6 integration.
- * * Andras Toth for mknod rdev issue.
- * * Michael Fischer for finding the problem with inode inconsistency.
- * * Some code bodily lifted from JFFS2.
*/
const char *yaffs_fs_c_version =
- "$Id: yaffs_fs.c,v 1.56 2007-01-19 04:07:48 charles Exp $";
+ "$Id: yaffs_fs.c,v 1.57 2007-02-12 16:55:25 wookey Exp $";
extern const char *yaffs_guts_c_version;
#include <linux/version.h>
diff --git a/yaffs_guts.c b/yaffs_guts.c
index f88851e..ab22c85 100644
--- a/yaffs_guts.c
+++ b/yaffs_guts.c
@@ -1,7 +1,7 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -13,7 +13,7 @@
*/
const char *yaffs_guts_c_version =
- "$Id: yaffs_guts.c,v 1.45 2006-11-14 03:07:17 charles Exp $";
+ "$Id: yaffs_guts.c,v 1.46 2007-02-12 16:55:26 wookey Exp $";
#include "yportenv.h"
diff --git a/yaffs_guts.h b/yaffs_guts.h
index 543bf62..9ef651d 100644
--- a/yaffs_guts.h
+++ b/yaffs_guts.h
@@ -1,8 +1,7 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yaffs_guts.h: Configuration etc for yaffs_guts
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -11,10 +10,7 @@
* it under the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*
- *
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
- *
- * $Id: yaffs_guts.h,v 1.25 2006-10-13 08:52:49 charles Exp $
*/
#ifndef __YAFFS_GUTS_H__
diff --git a/yaffs_mtdif.c b/yaffs_mtdif.c
index 04c4918..582563a 100644
--- a/yaffs_mtdif.c
+++ b/yaffs_mtdif.c
@@ -1,8 +1,7 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yaffs_mtdif.c NAND mtd wrapper functions.
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -14,7 +13,7 @@
*/
const char *yaffs_mtdif_c_version =
- "$Id: yaffs_mtdif.c,v 1.17 2006-11-29 20:21:12 charles Exp $";
+ "$Id: yaffs_mtdif.c,v 1.18 2007-02-12 16:55:26 wookey Exp $";
#include "yportenv.h"
diff --git a/yaffs_mtdif.h b/yaffs_mtdif.h
index b273664..f75e08c 100644
--- a/yaffs_mtdif.h
+++ b/yaffs_mtdif.h
@@ -1,8 +1,7 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yaffs_mtdif.h NAND mtd interface wrappers
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -11,10 +10,7 @@
* it under the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*
- *
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
- *
- * $Id: yaffs_mtdif.h,v 1.3 2005-08-11 01:07:43 marty Exp $
*/
#ifndef __YAFFS_MTDIF_H__
diff --git a/yaffs_mtdif2.c b/yaffs_mtdif2.c
index 4e8c335..7985f1e 100644
--- a/yaffs_mtdif2.c
+++ b/yaffs_mtdif2.c
@@ -1,8 +1,7 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yaffs_mtdif.c NAND mtd wrapper functions.
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -16,7 +15,7 @@
/* mtd interface for YAFFS2 */
const char *yaffs_mtdif2_c_version =
- "$Id: yaffs_mtdif2.c,v 1.15 2006-11-08 06:24:34 charles Exp $";
+ "$Id: yaffs_mtdif2.c,v 1.16 2007-02-12 16:55:26 wookey Exp $";
#include "yportenv.h"
diff --git a/yaffs_mtdif2.h b/yaffs_mtdif2.h
index 06ad542..e70d751 100644
--- a/yaffs_mtdif2.h
+++ b/yaffs_mtdif2.h
@@ -1,16 +1,16 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yaffs_mtdif.c NAND mtd wrapper functions.
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
* This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
+ * it under the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*/
#ifndef __YAFFS_MTDIF2_H__
diff --git a/yaffs_nand.c b/yaffs_nand.c
index 14ae330..b919da0 100644
--- a/yaffs_nand.c
+++ b/yaffs_nand.c
@@ -1,7 +1,7 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -13,7 +13,7 @@
*/
const char *yaffs_nand_c_version =
- "$Id: yaffs_nand.c,v 1.5 2006-11-08 09:52:12 charles Exp $";
+ "$Id: yaffs_nand.c,v 1.6 2007-02-12 16:55:26 wookey Exp $";
#include "yaffs_nand.h"
#include "yaffs_tagscompat.h"
diff --git a/yaffs_nand.h b/yaffs_nand.h
index 21e85c4..8ed1a2d 100644
--- a/yaffs_nand.h
+++ b/yaffs_nand.h
@@ -1,15 +1,16 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
* This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
+ * it under the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*/
#ifndef __YAFFS_NAND_H__
diff --git a/yaffs_nandemul2k.h b/yaffs_nandemul2k.h
index 483f140..13520e1 100644
--- a/yaffs_nandemul2k.h
+++ b/yaffs_nandemul2k.h
@@ -1,7 +1,7 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -10,14 +10,11 @@
* it under the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*
- *
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
- *
- * yaffs_nandemul2k.h: Interface to emulated NAND functions (2k page size)
- *
- * $Id: yaffs_nandemul2k.h,v 1.2 2005-08-11 02:37:49 marty Exp $
*/
+/* Interface to emulated NAND functions (2k page size) */
+
#ifndef __YAFFS_NANDEMUL2K_H__
#define __YAFFS_NANDEMUL2K_H__
diff --git a/yaffs_packedtags1.c b/yaffs_packedtags1.c
index 920fed2..43f5873 100644
--- a/yaffs_packedtags1.c
+++ b/yaffs_packedtags1.c
@@ -1,3 +1,17 @@
+/*
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
+ *
+ * Copyright (C) 2002-2007 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
+ *
+ * Created by Charles Manning <charles@aleph1.co.uk>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
#include "yaffs_packedtags1.h"
#include "yportenv.h"
diff --git a/yaffs_packedtags1.h b/yaffs_packedtags1.h
index ea43ad6..627b2f8 100644
--- a/yaffs_packedtags1.h
+++ b/yaffs_packedtags1.h
@@ -1,4 +1,19 @@
-// This is used to pack YAFFS1 tags, not YAFFS2 tags.
+/*
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
+ *
+ * Copyright (C) 2002-2007 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
+ *
+ * Created by Charles Manning <charles@aleph1.co.uk>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 2.1 as
+ * published by the Free Software Foundation.
+ *
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
+ */
+
+/* This is used to pack YAFFS1 tags, not YAFFS2 tags. */
#ifndef __YAFFS_PACKEDTAGS1_H__
#define __YAFFS_PACKEDTAGS1_H__
diff --git a/yaffs_packedtags2.c b/yaffs_packedtags2.c
index 69d78b2..624f8ac 100644
--- a/yaffs_packedtags2.c
+++ b/yaffs_packedtags2.c
@@ -1,16 +1,15 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * yaffs_packedtags2.c: Tags packing for YAFFS2
- *
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
*/
#include "yaffs_packedtags2.h"
diff --git a/yaffs_packedtags2.h b/yaffs_packedtags2.h
index 4eb1416..7c4a72c 100644
--- a/yaffs_packedtags2.h
+++ b/yaffs_packedtags2.h
@@ -1,3 +1,18 @@
+/*
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
+ *
+ * Copyright (C) 2002-2007 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
+ *
+ * Created by Charles Manning <charles@aleph1.co.uk>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 2.1 as
+ * published by the Free Software Foundation.
+ *
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
+ */
+
/* This is used to pack YAFFS2 tags, not YAFFS1tags. */
#ifndef __YAFFS_PACKEDTAGS2_H__
diff --git a/yaffs_qsort.h b/yaffs_qsort.h
index 3a415b0..6d3f554 100644
--- a/yaffs_qsort.h
+++ b/yaffs_qsort.h
@@ -1,8 +1,7 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yaffs_qsort.h: Interface to BSD-licensed qsort routine.
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -11,9 +10,10 @@
* it under the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*
- * $Id: yaffs_qsort.h,v 1.2 2006-11-07 23:20:09 charles Exp $
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*/
+
#ifndef __YAFFS_QSORT_H__
#define __YAFFS_QSORT_H__
diff --git a/yaffs_tagscompat.c b/yaffs_tagscompat.c
index b51bccd..7f8442c 100644
--- a/yaffs_tagscompat.c
+++ b/yaffs_tagscompat.c
@@ -1,8 +1,8 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yaffs_tagscompat.h: Tags compatability layer to use YAFFS1 formatted NAND.
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
@@ -10,7 +10,6 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
- * $Id: yaffs_tagscompat.c,v 1.8 2005-11-29 20:54:32 marty Exp $
*/
#include "yaffs_guts.h"
diff --git a/yaffs_tagscompat.h b/yaffs_tagscompat.h
index 7922ab3..c746ad9 100644
--- a/yaffs_tagscompat.h
+++ b/yaffs_tagscompat.h
@@ -1,22 +1,18 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yaffs_ramdisk.h: yaffs ram disk component
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
+ * for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
* This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
+ * it under the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*
- * $Id: yaffs_tagscompat.h,v 1.2 2005-08-11 02:33:03 marty Exp $
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*/
-/* This provides a ram disk under yaffs.
- * NB this is not intended for NAND emulation.
- * Use this with dev->useNANDECC enabled, then ECC overheads are not required.
- */
#ifndef __YAFFS_TAGSCOMPAT_H__
#define __YAFFS_TAGSCOMPAT_H__
diff --git a/yaffs_tagsvalidity.c b/yaffs_tagsvalidity.c
index 101ad03..c2ab2b0 100644
--- a/yaffs_tagsvalidity.c
+++ b/yaffs_tagsvalidity.c
@@ -1,8 +1,7 @@
-
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -11,7 +10,6 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
- * $Id: yaffs_tagsvalidity.c,v 1.2 2005-08-11 02:33:03 marty Exp $
*/
#include "yaffs_tagsvalidity.h"
diff --git a/yaffs_tagsvalidity.h b/yaffs_tagsvalidity.h
index 371445e..ba56727 100644
--- a/yaffs_tagsvalidity.h
+++ b/yaffs_tagsvalidity.h
@@ -1,19 +1,18 @@
-
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
* This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
+ * it under the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*
- * $Id: yaffs_tagsvalidity.h,v 1.2 2005-08-11 02:33:03 marty Exp $
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*/
-//yaffs_tagsvalidity.h
+
#ifndef __YAFFS_TAGS_VALIDITY_H__
#define __YAFFS_TAGS_VALIDITY_H__
diff --git a/yaffsinterface.h b/yaffsinterface.h
index d6ec50c..0cfdfcf 100644
--- a/yaffsinterface.h
+++ b/yaffsinterface.h
@@ -1,8 +1,7 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yaffsinterface.h: Interface to the guts of yaffs.
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -12,7 +11,6 @@
* published by the Free Software Foundation.
*
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
- *
*/
#ifndef __YAFFSINTERFACE_H__
diff --git a/yportenv.h b/yportenv.h
index 3e6caae..b46b9a9 100644
--- a/yportenv.h
+++ b/yportenv.h
@@ -1,9 +1,7 @@
/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- * yportenv.h: Portable services used by yaffs. This is done to allow
- * simple migration from kernel space into app space for testing.
+ * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
*
- * Copyright (C) 2002 Aleph One Ltd.
+ * Copyright (C) 2002-2007 Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@ -12,13 +10,10 @@
* it under the terms of the GNU Lesser General Public License version 2.1 as
* published by the Free Software Foundation.
*
- *
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
- *
- * $Id: yportenv.h,v 1.12 2007-01-19 04:07:48 charles Exp $
- *
*/
+
#ifndef __YPORTENV_H__
#define __YPORTENV_H__