[PATCH v2 for v3.15 0/3] UBI: block: Support very large volumes
ezequiel.garcia at free-electrons.com
Mon May 5 03:11:51 PDT 2014
Changes from v1:
* Fixed ubiblock_resize so it returns something. I've kept a ubi_warn
message in ubiblock_resize, because otherwise the failure is not reported
to the user in any way.
Thanks for the kbuild-robot for reporting this!
Here's the v1 cover letter:
This is a re-spin of Richard's work . I've added a patch for some minor
clean-up, so the large volume fix is a less intrusive one.
The proposed returned value E2BIG has been changed for EFBIG, which results
in a slightly more accurate error. Also, the user messages have been removed
entirely; returning an error seems enough.
This bug was reported on #mtd IRC. I don't have to reporter name to give proper
credit. It should be applied as a fix for v3.15.
Richard: Thanks a lot for hunting this down, and feel free to disagree about
Ezequiel Garcia (2):
UBI: block: Make ubiblock_resize return something
UBI: block: Set disk_capacity out of the mutex
Richard Weinberger (1):
UBI: block: Avoid disk size integer overflow
drivers/mtd/ubi/block.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
More information about the linux-mtd