OpenAFS CVS Commit: openafs/src/afs/VNOPS by shadow

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Mon, 13 Dec 2004 14:35:05 EST


Update of /cvs/openafs/src/afs/VNOPS
In directory GRAND.CENTRAL.ORG:/data/sb/openafs-stable-1_4_x/src/afs/VNOPS

Modified Files:
      Tag: openafs-stable-1_4_x
	afs_vnop_remove.c 
Log Message:
DELTA STABLE14-linux-remove-negative-dentry-20041209
AUTHOR chas@cmf.nrl.navy.mil
FIXES 16735

during unlink, afs sometimes renames the file instead of deleting it.
this isnt reflected properly in the dcache in linux. the following
patch attempts to address this issue. newname is renamed to afs_newname
and exported.

afs_linux_unlink() checks to see if the file is open. if so, it creates
a negative dcache entry using the name suggested by afs_newname(). then
dmove() moves (exchanges) dp and __dp. __dp is now a negative dentry
for the old name and is put/dropped.


--- DELTA config for openafs-stable-1_4_x follows ---
STABLE14-linux-remove-negative-dentry-20041209 openafs/src/afs/VNOPS/afs_vnop_remove.c 1.31.2.4 1.31.2.5