| Submitter | Brian Norris |
|---|---|
| Date | Oct. 19, 2011, 5:22 p.m. |
| Message ID | <1319044961-26745-1-git-send-email-computersforpeace@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/120676/ |
| State | New |
| Headers | show |
Comments
Hello Domingos, On Wed, Oct 19, 2011 at 10:22 AM, Brian Norris <computersforpeace@gmail.com> wrote: > P.S. It looks like your problem is pretty simple to fix. Try this patch > out, and perhaps it can be integrated into mtd-utils to provide a small > breath of support for 2.4.x in the "legacy" section of libmtd :) Did you get to try out my patch? If it was useful, then we might add it to the legacy support in mtd-utils; otherwise, I'll be dropping it from my own consideration soon. Brian
Citando Brian Norris <computersforpeace@gmail.com>: > Hello Domingos, > > On Wed, Oct 19, 2011 at 10:22 AM, Brian Norris > <computersforpeace@gmail.com> wrote: >> P.S. It looks like your problem is pretty simple to fix. Try this patch >> out, and perhaps it can be integrated into mtd-utils to provide a small >> breath of support for 2.4.x in the "legacy" section of libmtd :) > > Did you get to try out my patch? If it was useful, then we might add > it to the legacy support in mtd-utils; otherwise, I'll be dropping it > from my own consideration soon. > > Brian Hello. Sorry, but a dont try your PATCH. Thanks.
Patch
diff --git a/lib/libmtd_legacy.c b/lib/libmtd_legacy.c index d6c3938..14a3f27 100644 --- a/lib/libmtd_legacy.c +++ b/lib/libmtd_legacy.c @@ -248,7 +248,7 @@ int legacy_get_dev_info(const char *node, struct mtd_dev_info *mtd) ret = ioctl(fd, MEMGETBADBLOCK, &offs); if (ret == -1) { - if (errno != EOPNOTSUPP) { + if (errno != EOPNOTSUPP && errno != ENOTTY) { sys_errmsg("MEMGETBADBLOCK ioctl failed"); goto out_close; }