Skip to content

Commit

Permalink
[JFFS2] Correct cleanmarker checks -- we should use only 8 bytes
Browse files Browse the repository at this point in the history
Commit a7a6ace revamped the OOB
handling but accidentally switched to 12-byte cleanmarkers, which is
incompatible with what 'flash_eraseall -j' will do. So using
flash_eraseall -j and then trying to mount the 'empty' flash will fail,
because the cleanmarkers aren't recognised.

Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
dwmw2 committed Aug 9, 2007
1 parent 471f717 commit 09b3fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/jffs2/wbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,8 +1008,8 @@ int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *re

#define NR_OOB_SCAN_PAGES 4

/* For historical reasons we use only 12 bytes for OOB clean marker */
#define OOB_CM_SIZE 12
/* For historical reasons we use only 8 bytes for OOB clean marker */
#define OOB_CM_SIZE 8

static const struct jffs2_unknown_node oob_cleanmarker =
{
Expand Down

0 comments on commit 09b3fba

Please sign in to comment.