[OpenAFS-devel] Re: understanding afs_remunlink() and why .__afsXXX don't get cleaned up

Derrick J Brashear shadow@dementia.org
Thu, 4 Jan 2007 22:08:08 -0500 (EST)


On Wed, 3 Jan 2007, chas williams - CONTRACTOR wrote:

> In message <x3lkkku88x.fsf@nowhere.com>,Adam Megacz writes:
>> http://www.openafs.org/pipermail/openafs-info/2006-October/023804.html
>
> cute.  i suppose at this point i would put a bit of debugging in
> afs_remunlink() and see if its getting called.  i can't see why
> it wouldn't.  i suspect you might be having trouble with:
>
> 	#if defined(AFS_DARWIN80_ENV)
> 	    if (vnode_get(AFSTOV(avc))) {
> 		ReleaseWriteLock(&avc->lock);
> 		return 0;
> 	    }
> 	#endif
>
> vnode_get() returns an error if a vnode is marked DEAD or TERMINATE.
> i dont see why you wouldnt want to remove the unlinked file in this
> case.

this is probably it.