From: Artem Bityutskiy <dedekind1@gmail.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH 4/4] flash_info: display MEMGETINFO and MEMISLOCKED
Date: Tue, 07 Jun 2011 08:01:26 +0300 [thread overview]
Message-ID: <1307422886.11104.21.camel@localhost> (raw)
In-Reply-To: <1307384537-9607-4-git-send-email-vapier@gentoo.org>
On Mon, 2011-06-06 at 14:22 -0400, Mike Frysinger wrote:
> I found the existing flash_info output to be a little lacking, so
> add decoders for MEMGETINFO and MEMISLOCKED.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> flash_info.c | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++------
> 1 files changed, 87 insertions(+), 11 deletions(-)
Pushed patches 1-3.
WRT this patch - I think the sector map should be a separate option,
because it outputs too much for a default option.
> + for (i = 0; i < reginfo->numblocks; ++i) {
> + einfo.start = reginfo->offset + i * reginfo->erasesize;
> + printf(" %*i: %08x ", width, i, einfo.start);
> + if (ioctl(fd, MEMISLOCKED, &einfo))
> + printf("RO ");
> + else
> + printf(" ");
MEMISLOCKED is quite new ioctl, so you should check for ENOTTY. E.g.,
with my stock Fedora 14 + nandsim I see all sectors as RO, which is
obviously not true.
Otherwise the patch looks very good.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
next prev parent reply other threads:[~2011-06-07 5:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 18:22 [PATCH 1/4] flash_info: convert to common.h Mike Frysinger
2011-06-06 18:22 ` [PATCH 2/4] flash_info: allow people to get info on multiple devices Mike Frysinger
2011-06-06 18:22 ` [PATCH 3/4] include/mtd: sync with kernel Mike Frysinger
2011-06-06 18:47 ` Brian Norris
2011-06-06 18:22 ` [PATCH 4/4] flash_info: display MEMGETINFO and MEMISLOCKED Mike Frysinger
2011-06-07 5:01 ` Artem Bityutskiy [this message]
2011-06-07 5:05 ` Artem Bityutskiy
2011-06-07 5:14 ` Mike Frysinger
2011-06-07 5:11 ` Artem Bityutskiy
2011-06-07 5:18 ` Artem Bityutskiy
2011-06-07 4:31 ` [PATCH 1/4] flash_info: convert to common.h Artem Bityutskiy
2011-06-07 4:41 ` Mike Frysinger
2011-06-07 4:42 ` Artem Bityutskiy
2011-06-07 4:45 ` Artem Bityutskiy
2011-06-07 4:51 ` Mike Frysinger
2011-06-07 5:01 ` Artem Bityutskiy
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=1307422886.11104.21.camel@localhost \
--to=dedekind1@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=vapier@gentoo.org \
/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