diff options
author | Richard Weinberger <[email protected]> | 2019-09-01 22:32:05 +0200 |
---|---|---|
committer | Richard Weinberger <[email protected]> | 2019-09-15 22:12:49 +0200 |
commit | e46131b9fd31155a552dea598e7d915b64c5c04c (patch) | |
tree | 5b9b964a17799f43fc8d9c257432a2fdd6d433ed /lib/test_overflow.c | |
parent | 9163e0184bd7d5f779934d34581843f699ad2ffd (diff) |
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 <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions