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

chas williams - CONTRACTOR chas@cmf.nrl.navy.mil
Wed, 03 Jan 2007 12:38:16 -0500


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.