[PATCH] separate routine to check jffs2_flash_read
Pierre.Ricadat@UTBM.fr
Pierre.Ricadat at utbm.fr
Wed Oct 26 03:32:44 EDT 2005
Hi all'
here i attach a small patch for that 'todo' in nodelist.c:
/* TODO: this is very frequent pattern, make it a separate
* routine */
err = jffs2_flash_read(c, ofs, len, &retlen, buffer);
...
about the checking of jffs2_flash_read().
I made a new function : jffs2_check_flash_read to
- check that jffs2_flash_read returns success
- check that it read all
and in a case of failure, print error, free the buffer and return error code.
--
Pierre Ricadat
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jffs2_check_flash_read.patch
Url: http://lists.infradead.org/pipermail/linux-mtd/attachments/20051026/ab32c77b/attachment.pl
More information about the linux-mtd
mailing list