[PATCH V2] nanddump: check write function result for errors

David Oberhollenzer david.oberhollenzer at sigma-star.at
Wed Sep 7 07:38:26 PDT 2016


On 09/06/2016 09:42 PM, Rafał Miłecki wrote:
> On 18 July 2016 at 17:09, 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.
>>
>> Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
> 
> Can this finally be pushed, please?

Unfortunately the mtd-utils appear to be currently not very well maintained and
a number of patches submitted to the mailing list got more or less neglected.

However there _is_ currently an effort on the way to do a major overhaul/cleanup of
the mtd-utils that also incorporates a bunch of fixes that accumulated on the mailing
list, also including this patch.

You can take a look at the current progress here:

https://github.com/sigma-star/mtd-utils/commits/wip_v2-rc1


David




More information about the linux-mtd mailing list