[U-Boot] [PATCH 5/7] JFFS2: Change DEFAULT_EMPTY_SCAN_SIZE to 256 Bytes
Detlev Zundel
dzu at denx.de
Fri Apr 29 15:27:21 CEST 2011
Hi Baidu,
> 1/ Syncs up with jffs2 in the linux kernel:
> If the first 256 Bytes is 0xff,we get the conclusion
> that the sector is empty.
>
> Signed-off-by: Baidu Liu <liucai.lfn at gmail.com>
> ---
> fs/jffs2/jffs2_1pass.c | 11 ++++++-----
> fs/jffs2/jffs2_nand_1pass.c | 13 ++++++-------
> include/jffs2/jffs2.h | 2 ++
> 3 files changed, 14 insertions(+), 12 deletions(-)
>
> diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c
> index b3d94af..62ba250 100644
> --- a/fs/jffs2/jffs2_1pass.c
> +++ b/fs/jffs2/jffs2_1pass.c
> @@ -801,7 +801,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 inode, char *dest)
> #endif
> default:
> /* unknown */
> - putLabeledWord("UNKOWN COMPRESSION METHOD = ", jNode->compr);
> + putLabeledWord("UNKNOWN COMPRESSION METHOD = ", jNode->compr);
> put_fl_mem(jNode, pL->readbuf);
> return -1;
> break;
This typo change is not mentioned in the change log and really does not
belong here. Please put it into a separate changeset.
[...]
> diff --git a/fs/jffs2/jffs2_nand_1pass.c b/fs/jffs2/jffs2_nand_1pass.c
> index 885fa3c..5afe779 100644
> --- a/fs/jffs2/jffs2_nand_1pass.c
> +++ b/fs/jffs2/jffs2_nand_1pass.c
> @@ -351,7 +351,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 ino, char *dest,
> #endif
> default:
> /* unknown */
> - putLabeledWord("UNKOWN COMPRESSION METHOD = ", inode->compr);
> + putLabeledWord("UNKNOWN COMPRESSION METHOD = ", inode->compr);
> return -1;
> }
> }
Dito.
Cheers
Detlev
--
Ftpd never switches uid and euid, it uses setfsuid(2) instead. The
main reason is that uid switching has been exploited in several
breakins, but the sheer ugliness of uid switching counts too.
-- pure-ftpd(8)
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
More information about the U-Boot
mailing list