From 7e55cf6c267e808315ed0150202423e6ce9f0b50 Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Thu, 25 Mar 2004 22:52:15 +0000 Subject: [PATCH] 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. --- src/afs/VNOPS/afs_vnop_remove.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 1.9.4