npiggin | 14 May 08:06
Picon
Favicon

[patch 36/41] jffs2 convert to new aops.

Cc: dwmw2 <at> infradead.org
Cc: jffs-dev <at> axis.com
Cc: Linux Filesystems <linux-fsdevel <at> vger.kernel.org>
Signed-off-by: Nick Piggin <npiggin <at> suse.de>

 fs/jffs2/file.c |  105 +++++++++++++++++++++++++++++++++++---------------------
 1 file changed, 66 insertions(+), 39 deletions(-)

Index: linux-2.6/fs/jffs2/file.c
===================================================================
--- linux-2.6.orig/fs/jffs2/file.c
+++ linux-2.6/fs/jffs2/file.c
@@ -19,10 +19,12 @@
 #include <linux/jffs2.h>
 #include "nodelist.h"

-static int jffs2_commit_write (struct file *filp, struct page *pg,
-			       unsigned start, unsigned end);
-static int jffs2_prepare_write (struct file *filp, struct page *pg,
-				unsigned start, unsigned end);
+static int jffs2_write_end(struct file *filp, struct address_space *mapping,
+			loff_t pos, unsigned len, unsigned copied,
+			struct page *pg, void *fsdata);
+static int jffs2_write_begin(struct file *filp, struct address_space *mapping,
+			loff_t pos, unsigned len, unsigned flags,
+			struct page **pagep, void **fsdata);
 static int jffs2_readpage (struct file *filp, struct page *pg);

 int jffs2_fsync(struct file *filp, struct dentry *dentry, int datasync)
@@ -65,8 +67,8 @@ const struct inode_operations jffs2_file
(Continue reading)

Ram | 18 May 13:53
Picon

JFFS2 bad block managment scheme

Hi,
 I am using linux 2.6.19 and have a few queries regarding linux mtd.
 Im using a JFFS2 filesystem.

 Regarding bad block management - What kind of bad block management does
 mtd and jffs2 use?.

 What happens when the filesystem detects that a block is bad?.

 how does it work?.

 What it does when it detects a block is bad?. How does JFFS2
determine a block is bad?.

 A failed ECC?

 Suppose i give a write and a block is bad inbetween what does it
do?. Just stores it in the next good block?.

How does read happen in the same case?

Are there any utils to test the robustness of a jffs2 filesystem?

Im doing hundreds of writes in a shell script.

Regards,
sriram

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo <at> axis.com
(Continue reading)

jameesh | 22 May 11:46

SPI Serial Flash

Hi,

Please help me.
I would like to Know whether JFFS2 can be used on serial SPI Flash(NOR) or 
not.
I may be using SPI flash from ATMEL(m25p128) or ST 
Microelectronics(AT45DB642D).

Thanks & Regards
Jameesh KT
Embedded Software Engineer,
Firmware Group,
Moschip Semiconductor Technology LTD,
India.

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo <at> axis.com

npiggin | 25 May 14:22
Picon
Favicon

[patch 36/41] jffs2 convert to new aops.

Cc: dwmw2 <at> infradead.org
Cc: jffs-dev <at> axis.com
Cc: Linux Filesystems <linux-fsdevel <at> vger.kernel.org>
Signed-off-by: Nick Piggin <npiggin <at> suse.de>

 fs/jffs2/file.c |  105 +++++++++++++++++++++++++++++++++++---------------------
 1 file changed, 66 insertions(+), 39 deletions(-)

Index: linux-2.6/fs/jffs2/file.c
===================================================================
--- linux-2.6.orig/fs/jffs2/file.c
+++ linux-2.6/fs/jffs2/file.c
@@ -19,10 +19,12 @@
 #include <linux/jffs2.h>
 #include "nodelist.h"

-static int jffs2_commit_write (struct file *filp, struct page *pg,
-			       unsigned start, unsigned end);
-static int jffs2_prepare_write (struct file *filp, struct page *pg,
-				unsigned start, unsigned end);
+static int jffs2_write_end(struct file *filp, struct address_space *mapping,
+			loff_t pos, unsigned len, unsigned copied,
+			struct page *pg, void *fsdata);
+static int jffs2_write_begin(struct file *filp, struct address_space *mapping,
+			loff_t pos, unsigned len, unsigned flags,
+			struct page **pagep, void **fsdata);
 static int jffs2_readpage (struct file *filp, struct page *pg);

 int jffs2_fsync(struct file *filp, struct dentry *dentry, int datasync)
@@ -65,8 +67,8 @@ const struct inode_operations jffs2_file
(Continue reading)


Gmane