Re: aborting IO requests

From: Robert Collins <robertc@dont-contact.us>
Date: 03 Dec 2002 17:43:00 +1100

On Tue, 2002-12-03 at 17:03, Henrik Nordstrom wrote:
> sio is a cbdata. cbdata things are aborted by cbdataFree().
>
> For storeio the abort operation is piggy backed on storeClose(sio) ->
> SD.obj.close(sio).
>
> * Pending reads are aborted if possible
> * Pending writes are completed

This appears to be inconsistent across fs types. Sigh. I'll just let
everything complete, at a worst case of what, 4Kb, it's not a great
overhead, and it leaves everything simpler while I get rid of the huge
wads of duplicate code.

> In the long run there needs to be a specific abort file operation
> added to the "fs" API me thinks.

Agreed.

Rob

Received on Mon Dec 02 2002 - 23:43:03 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:18:59 MST