Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 1998 21:09:39 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, mike@smith.net.au
Cc:        cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/i386/isa wfd.c
Message-ID:  <199801291009.VAA22501@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>>>>> You could simply reject such transfers.
>> >> >
>> >> >And then what happens to them?  I spent some time trying to understand 
>> >> 
>> >> Nothing good.  
>> >
>> >Then why would rejecting the transfers be useful?
>> 
>> It wouldn't.
>
>Dare I ask, then, why you suggested I should?

Because I didn't read the sources before my first reply.

>> >It was not clear that this was legitimate; I infer from this that the 
>> >correct approach is to return a nonzero value in b_resid, which will 
>> >cause another call to the strategy routine.  Is that correct?  Will 
>> >this work on 2.2?  It's certainly a *much* tidier approach than what I 
>> >am currently doing.
>> 
>> Only for raw i/o.  bread() and bwrite() don't even look at b_resid.
>
>Then it strikes me that you're suggesting a non-solution.  Any other 
>ideas?

It's good enough for SCSI drivers.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801291009.VAA22501>