|
|
Log in / Subscribe / Register

Network filesystem topics

Network filesystem topics

Posted May 22, 2018 3:39 UTC (Tue) by jra (subscriber, #55261)
In reply to: Network filesystem topics by dgc
Parent article: Network filesystem topics

Yeah, I wasn't trying to imply we did it elegantly (you simply *can't* avoid reading the entire directory when you get a cache miss on case when you're in userspace), only that we already did it :-).


to post comments

Network filesystem topics

Posted May 22, 2018 13:06 UTC (Tue) by epa (subscriber, #39769) [Link] (1 responses)

I suppose you could do some hack like testing for this, THIS and This, before you fall back to reading the whole directory.

Network filesystem topics

Posted May 22, 2018 15:39 UTC (Tue) by jra (subscriber, #55261) [Link]

That sounds like a good idea, but in fact just about all of the clients already do case-preserving correctly, so when we get a miss it's *extremely* likely that the file doesn't exist (and the client is just making sure that's so).

These code paths are already some of the most complex in Samba (getting the *absolutely* correct error message returns here is *essential* to make real applications work here) so I'm loathe to add any more complexity here.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds