From: Thomas Gleixner <tglx@linutronix.de>
To: Todd Poynor <tpoynor@mvista.com>
Cc: linux-mtd@lists.infradead.org, Vitaly Wool <vwool@ru.mvista.com>
Subject: Re: [PATCH] mtd/utils: sync with MTD ioctl interface rework to get rid of MEMGETOOBSEL/MEMSETOOBSEL
Date: Tue, 13 Dec 2005 01:20:04 +0100 [thread overview]
Message-ID: <1134433204.4205.261.camel@tglx.tec.linutronix.de> (raw)
In-Reply-To: <439E0F99.8090008@mvista.com>
On Mon, 2005-12-12 at 16:02 -0800, Todd Poynor wrote:
> >
> > Well, padding doesn't work in nandwrite if the image to be written
> > contains OOB data. The idea as I see it is if you are trying to write
> > the image with OOB data, you should know what you're doing, and that
> > implies knowledge of the oobavail size.
> > On the other hand, it might be useful to implement an option for
> > nandwrite which specifies what OOB data length user supposes (default
> > will be the oobavail).
>
> In order to make it work as above, we'd need a way for users to find out
> what oobavail their mtd driver uses (in dmesg and/or a util)
Definitely not by consulting dmesg. There is no guarantee that dmesg
contains the information you need at the time you are asking for it.
> , and an
> option on all the fs utils to write that number of bytes. A file format
> that specifies what data and OOB size have been generated would do the
> trick, if we want to get that fancy about it. Just filling out all 16
> or 64 bytes in the input file and truncating to oobavail at nandwrite
> time seems a lower-cost workaround.
Find a way to give access to raw data and to the "translated" data is
the goal. Everything else is just an ivory tower experiment.
tglx
next prev parent reply other threads:[~2005-12-13 0:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-02 7:05 [PATCH] mtd/utils: sync with MTD ioctl interface rework to get rid of MEMGETOOBSEL/MEMSETOOBSEL Vitaly Wool
2005-12-02 22:06 ` Todd Poynor
2005-12-05 5:46 ` Vitaly Wool
2005-12-13 0:02 ` Todd Poynor
2005-12-13 0:20 ` Thomas Gleixner [this message]
2005-12-06 10:30 ` Thomas Gleixner
2005-12-06 10:36 ` Vitaly Wool
2005-12-06 10:51 ` Thomas Gleixner
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=1134433204.4205.261.camel@tglx.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=linux-mtd@lists.infradead.org \
--cc=tpoynor@mvista.com \
--cc=vwool@ru.mvista.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