From: Nickolai Zeldovich Date: Thu, 25 Mar 2004 22:52:15 +0000 (+0000) Subject: remove-vnop-dont-unmount-fix-20040325 X-Git-Tag: openafs-devel-1_3_63~38 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=7e55cf6c267e808315ed0150202423e6ce9f0b50 remove-vnop-dont-unmount-fix-20040325 Make remove-vnop-denies-unlink-on-mtpt-20040325 more likely to work, and don't forget to afs_PutFakeStat() while we're at it. After we call afs_EvalFakeStat(), there's no way that mvstat can be 1 -- either the object wasn't a mountpoint and it'll be mvstat 0, or EvalFakeStat will evaluate it and it'll be mvstat 2. --- diff --git a/src/afs/VNOPS/afs_vnop_remove.c b/src/afs/VNOPS/afs_vnop_remove.c index 9c52ad4..6bdb9f3 100644 --- a/src/afs/VNOPS/afs_vnop_remove.c +++ b/src/afs/VNOPS/afs_vnop_remove.c @@ -280,7 +280,8 @@ OSI_VC_DECL(adp); return code; } - if (adp->mvstat == 1) { + if (adp->mvstat == 2) { + afs_PutFakeStat(&fakestate); #ifdef AFS_OSF_ENV afs_PutVCache(adp); afs_PutVCache(tvc);