Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* UBI: Question about error checking in ubi_eba_write_leb()
@ 2014-09-30 11:00 steve
  2014-10-03 15:14 ` Artem Bityutskiy
  0 siblings, 1 reply; 3+ messages in thread
From: steve @ 2014-09-30 11:00 UTC (permalink / raw)
  To: linux-mtd


This is my first post to this mailing list, I think this is the right place for
  my question.

I think the error checking in ubi_eba_write_leb() may be wrong and may cause 
incorrect behaviour when extra checking is enabled in debugfs, here's the 
scenario I have a problem with:

ubi_eba_write_leb() calls  ubi_io_write_data() -> ubi_io_write() -> 
ubi_dbg_check_all_ff()

ubi_dbg_check_all_ff() will perform an mtd_read() which can fail with EBADMSG 
(if there is a failure to correct using ECC as in my case). This error code 
will bubble back up to ubi_eba_write_leb(), but recover_peb() will only be 
called if the error code was EIO. The question is should recover_peb() be 
called in this case as well?

Thanks for any help with this,
Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-07  8:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30 11:00 UBI: Question about error checking in ubi_eba_write_leb() steve
2014-10-03 15:14 ` Artem Bityutskiy
2014-10-07  8:46   ` steve

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox