Hi! On Tue, Jan 25, 2011 at 10:02 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote: > On Tue, 25 Jan 2011, Yauheni Kaliuta wrote: > >> Hi! >> >> file_storage.c has the following code in do_write(): [...] >>             /* If an error occurred, report it and its position */ >>             if (nwritten < amount) { >>                 curlun->sense_data = SS_WRITE_ERROR; >>                 curlun->sense_data_info = file_offset >> 9; >>                 curlun->info_valid = 1; >>                 break; >>             } >> >> In case of some data written (nwritten > 0), shouldn't it try to write >> the rest before error reporting? > > In theory, perhaps it should. ÂI haven't run across any situations > where nwritten was > 0 and < amount. ÂLikewise with reading. > Well, I'm lucky enough to get it :) Not with the upstream code, however, but with custom read/write functions (which avoid vfs layer). ÿô.nÇ·®+%˱é¥wÿº{.nÇ·¥{±þë)íèjg¬±¨¶Ýjÿ¾«þG«é¸¢·¦j:+v¨wèm¶ÿþø®w¥þ࣢·hâÿÙ