Network filesystem topics
Network filesystem topics
Posted May 23, 2018 13:03 UTC (Wed) by trondmy (subscriber, #28934)In reply to: Network filesystem topics by dgc
Parent article: Network filesystem topics
The problem with networked filesystems is that typically the server owns the case folding algorithm, and the client has no a priori understanding of how it works. When looking at this problem for NFSv4, we found it basically means that we either have to accept a certain amount of dentry aliasing, or we have to impose artificial limitations in order to avoid that behaviour (e.g. by limiting the number of cached dentries to 1 per file per directory).
The easiest solution is to allow for dentry aliasing, but that then leads to interesting corner cases when creating, linking, renaming or unlinking files. For instance, you end up no longer being able to assume that cached dentries are still valid after an unlink or rename operation, and you can no longer perform negative dentry caching when files are created or linked to...
