Skip to content

UBIFS: Free space fixup on first mount

Matthew L. Creech linux-mtd lkml 1 version Applied

Status from this message: Pushed to l2-mtd-2.6.git, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesApplied

Changes since v3 (Artem) from the cover letter

- Free buffer used for reading superblock
- Remove unnecessary buffer-length alignment
- Fixup the log area

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2UBIFS: add the fixup functionfs/ubifs/sb.c fs/ubifs/ubifs.h+153 -08 replies
2/2UBIFS: fix-up free space on mount if flag is setfs/ubifs/super.c+12 -09 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] UBIFS: Free space fixup on first mount

Hi,

The following changes add a superblock option to UBIFS indicating that it needs to be scanned for LEBs with empty pages the first time it's mounted. This is needed because images programmed using "nandwrite" may contain empty pages, which UBIFS intends to be erased but which may be programmed as real data. This causes problems on some NAND flashes, as described here:

http://www.linux-mtd.infradead.org/faq/ubifs.html#L_why_ubiformat

When this flag is set, the FS is scanned for any in-use LEBs with one or more free pages, and these LEBs are remapped (which erases the blank pages).

Changes since v3 (Artem):
- Free buffer used for reading superblock
- Remove unnecessary buffer-length alignment
- Fixup the log area