[OpenAFS-port-darwin] ufs_abortop

Alexei Kosut akosut@cs.stanford.edu
Thu, 25 Sep 2003 15:33:34 -0700


On Sep 25, 2003, at 9:55 AM, Chaskiel M Grundman wrote:
> {
>
>         if ((ap->a_cnp->cn_flags & (HASBUF | SAVESTART)) == HASBUF)
>                 FREE_ZONE(ap->a_cnp->cn_pnbuf, 
> ap->a_cnp->cn_pnlen,M_NAMEI);
>         return (0);
> }
>
> Unfortunately, nop_abortop *doesn't* do that, so we cannot just use 
> that.

I just looked at the Darwin 6.6 source code, and this appears to be 
exactly the implementation used by nop_abortop.  So it should be fine 
to use nop_abortop instead of ufs_abortop or writing our own 
afs_vop_abortop.

I checked Darwin 1.3.1 (Mac OS X 10.0) as well, and it has the same 
code, so this should be a safe change to make for all shipping Mac OS X 
releases.

-- 
Alexei Kosut <akosut@cs.stanford.edu> <http://cs.stanford.edu/~akosut/>