Re: smbfs: "rm -rf" dircache problems

Michael Nelson (mikenel@iapetus.com)
Thu, 11 Nov 1999 23:15:29 -0500 (EST)


On Fri, 12 Nov 1999, Urban Widmark wrote:
> > > A cursory glance at the NFS and NCPFS file systems seems to show that the
> > > former doesn't have this problem, but NCPFS may.
>
> How does nfs do this?

I don't know exactly, I've only briefly glanced at the code which hints
at some kind of a "cookie" mechanism.

Until I (or someone else) can think up with a better solution, I've
bypassed the dircache code in my kernel; hooking readdir() directly into
SMB's FINDFIRST/FINDNEXT mechanism. A little bit slower, but safe.

-mike

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/