]> git.baikalelectronics.ru Git - kernel.git/commit
ubi: block: Warn if volume size is not multiple of 512
authorRichard Weinberger <richard@nod.at>
Sun, 1 Sep 2019 20:32:05 +0000 (22:32 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 15 Sep 2019 20:12:49 +0000 (22:12 +0200)
commitb445f809dc08c6802dd9008bf5561784cfc8eb41
tree5b9b964a17799f43fc8d9c257432a2fdd6d433ed
parenta11e1192537126a2bd05b668b465179a31045e5e
ubi: block: Warn if volume size is not multiple of 512

If volume size is not a multiple of 512, ubi block cuts
off the last bytes of an volume since the block layer works
on 512 byte sectors.
This can happen especially on NOR flash with minimal io
size of 1.

To avoid unpleasant surprises, print a warning.

Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/block.c