From: Richard Weinberger <richard@nod.at>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: Brian Norris <computersforpeace@gmail.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH mtd-utils] nanddump: check write function result for errors
Date: Mon, 18 Jul 2016 16:10:57 +0200 [thread overview]
Message-ID: <578CE371.9090604@nod.at> (raw)
In-Reply-To: <CACna6ry-AdRH9Yk02piJoc0N4VSWom=_N4dE9_-NDjV4gQQi4g@mail.gmail.com>
Rafał,
Am 18.07.2016 um 13:59 schrieb Rafał Miłecki:
> On 18 July 2016 at 13:33, Richard Weinberger
> <richard.weinberger@gmail.com> wrote:
>> On Mon, Jul 18, 2016 at 11:18 AM, Rafał Miłecki <zajec5@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.
>
> I wasn't aware of your patch, having it accepted would save me some
> time for sure.
>
> Two minor advantages I see in my version:
> 1) It handles partial writes, just retries if only some part of buffer
> has been written
That's a plus point. :-)
> 2) It displays error number and string which may provide some extra
> hint to the user
My patch too since it uses mtd-util's logging functions.
sys_errmsg(...)
Could you please merge both patches and resend?
Thanks,
//richard
next prev parent reply other threads:[~2016-07-18 14:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-18 9:18 [PATCH mtd-utils] nanddump: check write function result for errors Rafał Miłecki
2016-07-18 11:33 ` Richard Weinberger
2016-07-18 11:59 ` Rafał Miłecki
2016-07-18 14:10 ` Richard Weinberger [this message]
2016-07-18 14:51 ` Rafał Miłecki
2016-07-18 18:31 ` Richard Weinberger
2016-07-18 15:09 ` [PATCH V2] " Rafał Miłecki
2016-09-06 19:42 ` Rafał Miłecki
2016-09-07 14:38 ` David Oberhollenzer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=578CE371.9090604@nod.at \
--to=richard@nod.at \
--cc=computersforpeace@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=zajec5@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.