Skip to content

UBIFS: last changes

Artem Bityutskiy linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20UBIFS: improve debugging lprops scanning a littlefs/ubifs/lprops.c+18 -240 replies
2/20UBIFS: simplify error path in lprops debugging checkfs/ubifs/lprops.c+10 -150 replies
3/20UBIFS: simplify lprops debugging checkfs/ubifs/lprops.c+15 -330 replies
4/20UBIFS: dump more in the lprops debugging checkfs/ubifs/lprops.c+4 -00 replies
5/20UBIFS: improve debugging messagesfs/ubifs/recovery.c fs/ubifs/replay.c+5 -50 replies
6/20UBIFS: improve commentaryfs/ubifs/replay.c+5 -40 replies
7/20UBIFS: make 2 functions staticfs/ubifs/gc.c+3 -20 replies
8/20UBIFS: double check that buds are replied in orderfs/ubifs/replay.c+4 -00 replies
9/20UBIFS: remove unnecessary stack variablefs/ubifs/io.c+8 -90 replies
10/20UBIFS: store free and dirty space in the bud replay entryfs/ubifs/replay.c+6 -20 replies
11/20UBIFS: simplify replayfs/ubifs/replay.c+59 -1080 replies
12/20UBIFS: substitute the replay tree with a replay listfs/ubifs/replay.c fs/ubifs/ubifs.h+74 -1000 replies
13/20UBIFS: change bud replay function conventionsfs/ubifs/replay.c+12 -160 replies
14/20UBIFS: remove BUG statementfs/ubifs/replay.c+1 -50 replies
15/20UBIFS: synchronize write-buffer before switching to the next budfs/ubifs/gc.c fs/ubifs/io.c fs/ubifs/journal.c+22 -190 replies
16/20UBIFS: expect corruption only in last journal head LEBsfs/ubifs/replay.c+62 -41 reply
17/20UBIFS: share the next_log_lnum helperfs/ubifs/log.c fs/ubifs/misc.h+24 -210 replies
18/20UBIFS: add a superblock flag for free space fix-upfs/ubifs/debug.c fs/ubifs/sb.c fs/ubifs/ubifs-media.h +1 more+7 -00 replies
19/20UBIFS: add the fixup functionfs/ubifs/sb.c fs/ubifs/ubifs.h+150 -00 replies
20/20UBIFS: fix-up free space on mount if flag is setfs/ubifs/super.c+13 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/20] UBIFS: last changes

Hi,

here are the last UBIFS changes which I have not sent to the mailing list yet. The 20-patch series is _not_ a one improvement or fix, it is just a set of last 20 patches in the ubifs-2.6.git tree, dumped to the mailing list for review. Since no one usually comments on patches, I'm saving time and do not split the 20 patches on several independent series. But if you want this, please, let me know.

So, in these series:

1. Various fixes and improvements in the debugging code, to make sure that UBIFS extra debugging checks work fine in case of power cuts. I've made the changes when testing with 'integck' in power cut emulation mode with all the extra checks enabled.

2. Just random simplifications and clean-ups spotted while reading the code.

3. A lot of replay code simplifications, also spotted while reading the code and trying to figure out how it works.

4. A recovery improvement - now we recover only the last bud LEBs, not all of them, because power cuts can cause corruptions only in the last bud.

5. The free space fix-up code from Matthew - it deals with the situation when UBIFS is flashed with a dumb flasher and free space is unusable. So one can ask mkfs.ubifs to put a special flag to the UBIFS super-block and UBIFS will fix-up all the free space on the first mount. I will take time, though, so using a smarter flasher is more preferable. However, I'm still waiting for mkfs.ubifs changes from Matthew, as well as a piece of documentation for this space fix-up thing.

I'm going to send these changes upstream the next merge window.

Artem.