[OpenAFS-devel] Re: understanding afs_remunlink() and why .__afsXXX don't get
cleaned up
Adam Megacz
megacz@cs.berkeley.edu
Thu, 18 Jan 2007 21:24:08 -0800
Derrick J Brashear <shadow@dementia.org> writes:
> 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.
Unfortunately, removing that code doesn't appear to fix the problem =(
- a