Richard Weinberger
972228d874
ubi: Make recover_peb power cut aware
...
recover_peb() was never power cut aware,
if a power cut happened right after writing the VID header
upon next attach UBI would blindly use the new partial written
PEB and all data from the old PEB is lost.
In order to make recover_peb() power cut aware, write the new
VID with a proper crc and copy_flag set such that the UBI attach
process will detect whether the new PEB is completely written
or not.
We cannot directly use ubi_eba_atomic_leb_change() since we'd
have to unlock the LEB which is facing a write error.
Cc: stable@vger.kernel.org
Reported-by: Jörg Pfähler <pfaehler@isse.de>
Reviewed-by: Jörg Pfähler <pfaehler@isse.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
2016-06-23 00:29:32 +02:00
..
chips
mtd: avoid stack overflow in MTD CFI code
2016-04-03 16:46:24 -07:00
devices
MTD updates for v4.7:
2016-05-24 11:00:20 -07:00
lpddr
mtd: lpddr: show parent device in sysfs
2015-10-13 09:21:17 -07:00
maps
MTD updates for v4.7:
2016-05-24 11:00:20 -07:00
nand
MTD fixes for v4.7-rc1
2016-05-27 14:17:15 -07:00
onenand
mtd: onenand: switch to mtd_ooblayout_ops
2016-05-05 23:51:49 +02:00
spi-nor
mtd: spi-nor: support GigaDevice gd25lq64c
2016-05-10 15:44:18 -07:00
tests
MTD updates for v4.6
2016-03-24 19:57:15 -07:00
ubi
ubi: Make recover_peb power cut aware
2016-06-23 00:29:32 +02:00
afs.c
mtd: partitions: make parsers return 'const' partition arrays
2015-12-09 10:21:57 -08:00
ar7part.c
mtd: partitions: make parsers return 'const' partition arrays
2015-12-09 10:21:57 -08:00
bcm47xxpart.c
mtd: bcm47xxpart: don't fail because of bit-flips
2016-01-23 14:40:47 -08:00
bcm63xxpart.c
mtd: bcm63xxpart: give width specifier an 'int', not 'size_t'
2016-03-07 13:13:58 -08:00
cmdlinepart.c
mtd: partitions: make parsers return 'const' partition arrays
2015-12-09 10:21:57 -08:00
ftl.c
mtd: ftl: use swap() in copy_erase_unit()
2015-12-18 16:56:07 -08:00
inftlcore.c
inftlmount.c
Kconfig
mtd: bcm63xxpart: Remove dependency on mach-bcm63xx
2016-02-12 10:27:48 -08:00
Makefile
mtd_blkdevs.c
mtd: switch to using blk_queue_write_cache()
2016-04-12 16:00:39 -06:00
mtdblock.c
mtdblock_ro.c
mtdchar.c
mtd: kill the nand_ecclayout struct
2016-05-05 23:51:51 +02:00
mtdconcat.c
mtd: create an mtd_ooblayout_ops struct to ease ECC layout definition
2016-04-19 22:05:55 +02:00
mtdcore.c
mtd: kill the nand_ecclayout struct
2016-05-05 23:51:51 +02:00
mtdcore.h
mtd: partitions: support a cleanup callback for parsers
2015-12-09 14:57:44 -08:00
mtdoops.c
mtdpart.c
mtd: create an mtd_ooblayout_ops struct to ease ECC layout definition
2016-04-19 22:05:55 +02:00
mtdsuper.c
mtdswap.c
mtd: mtdswap: remove useless if (!mtd->ecclayout) test
2016-03-07 16:23:09 -08:00
nftlcore.c
nftlmount.c
ofpart.c
mtd: partitions: make parsers return 'const' partition arrays
2015-12-09 10:21:57 -08:00
redboot.c
mtd: partitions: make parsers return 'const' partition arrays
2015-12-09 10:21:57 -08:00
rfd_ftl.c
sm_ftl.c
treewide: Fix typos in printk
2016-04-18 11:23:24 +02:00
sm_ftl.h
ssfdc.c