On Fri, Oct 25, 2019 at 05:56:08PM +0200, Robert Karszniewicz wrote: > This should make writing and reading more reliable. > > Also: > - change loop condition to make "retries" semantically correct > - add a debug message in case of fatal failure > --- > We've had problems writing (and even reading) a 10 MiB file from barebox > to multiple USB flash drives. > The 10 MiB file copy failed with "write: I/O error" almost every time. > Increasing the retry count made 100 MiB file copies succeed every time. > Doing this doesn't hurt, so I applied this patch. I wonder though if there's something else wrong which makes increasing the retry counts necessary. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox