[K42-discussion] disable symlink caching patch

Dilma DaSilva dilma at watson.ibm.com
Wed Sep 27 12:44:27 EST 2006


Hi Patrick,

I believe the proper way of doing what you need is to define a method
DirLinuxFSVolatile::readlink() with the behavior you need, i.e., no
caching of symlink value. I'm sorry that readlink was not properly
taken care of in DirLinuxFSVolatile; at some point we reimplemented
symlinks and we never did the proper thing for "volatile" file
systems. Could you please submit a new patch? Thank you very much!

Dilma

Patrick Bozeman writes:
 > This patch may be controversial, I'm not sure.   I basically changed the 
 > behavior from always returning the cached contents of a symlink to 
 > always calling fsFile->readlink().   See the comment in the patch.
 > 
 > I left the code in that actually keeps the symlink value in the 
 > nameholder even though we don't end up reusing it in this patch.



More information about the K42-discussion mailing list