From: Ladislav Michl <ladis@linux-mips.org>
To: Grant Erickson <gerickson@nuovations.com>
Cc: Tommi Airikka <tommi.airikka@ericsson.com>,
linux-mtd@lists.infradead.org,
Richard Titmuss <titmuss@slimdevices.com>
Subject: Re: [PATCH 6/6] [MTD-UTILS] nandwrite: Add Support for Reading from Standard Input
Date: Mon, 8 Sep 2008 18:14:18 +0200 [thread overview]
Message-ID: <20080908161418.GA7185@michl.2n.cz> (raw)
In-Reply-To: <1220848159-22407-1-git-send-email-gerickson@nuovations.com>
On Sun, Sep 07, 2008 at 09:29:19PM -0700, Grant Erickson wrote:
> Added suppport for reading in band data from standard input based on a
> patch originally generated by Richard Titmuss <titmuss@slimdevices.com>
> at <http://lists.slimdevices.com/pipermail/jive-checkins/2008-May/001918.html>.
>
> Signed-off-by: Grant Erickson <gerickson@nuovations.com>
> ---
>
> In addition to the above patch, further discussion of this feature was
> raised by Tommi Airikka <tommi.airikka@ericsson.com> at
> <http://lists.infradead.org/pipermail/linux-mtd/2008-September/022913.html>.
Hmm, so long I was defered with implementing this feature, that someone
else did it :-)
Anyway, let me raise few objections:
- code uses lseek. Obviously, you cannot seek on pipe.
- there is no need to use "invariant placeholder". What about simply
read till file ends?
- there is no need to use special case for reading from stdin...
So what about:
while (not eof)
read page (and oob if selected) data into buffer
next:
if (write buffer fails)
mark bad, select next page, goto next
Reading from stdin would imply padding. Care to implement that?
Best regards,
ladis
PS: It is remotely possible that one day I do it myself, but I'm
notoriously slow on doing things I do not urgently need.
next prev parent reply other threads:[~2008-09-08 16:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-08 4:29 [PATCH 6/6] [MTD-UTILS] nandwrite: Add Support for Reading from Standard Input Grant Erickson
2008-09-08 16:14 ` Ladislav Michl [this message]
2008-09-08 16:36 ` Grant Erickson
2008-09-08 21:02 ` Ladislav Michl
2008-11-20 22:50 ` Ladislav Michl
2008-11-28 22:40 ` Schlaegl Manfred jun.
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=20080908161418.GA7185@michl.2n.cz \
--to=ladis@linux-mips.org \
--cc=gerickson@nuovations.com \
--cc=linux-mtd@lists.infradead.org \
--cc=titmuss@slimdevices.com \
--cc=tommi.airikka@ericsson.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox