[PATCH mtd-utils] nanddump: check write function result for errors

Richard Weinberger richard.weinberger at gmail.com
Mon Jul 18 04:33:17 PDT 2016


On Mon, Jul 18, 2016 at 11:18 AM, Rafał Miłecki <zajec5 at gmail.com> wrote:
> Errors may happen, it's e.g. easy on embedded devices to run out of space
> when dumping big partitions. This patch adds a helper function for
> writing. It deals with partial writes and just returns 0 on success or
> error number.
>
> The old code didn't check for errors at all which could result in
> incomplete dumps without exiting with an error.

Is this patch different from my version, does it fix more?
http://lists.infradead.org/pipermail/linux-mtd/2016-April/067234.html

Brian, if this is fine with you I'd apply one of these patches.

-- 
Thanks,
//richard



More information about the linux-mtd mailing list