3 ms·
“the specification isn't sufficient for real world usage” I think that sums up NFS reasonably well. “Let’s make the API connectionless and stateless; that simp
by Someone 6y ago
“the specification isn't sufficient for real world usage”
I think that sums up NFS reasonably well. “Let’s make the API connectionless and stateless; that simplifies things” is true, but implementing Unix semantics, where files can be opened or closed, file deletes change state, file deletes aren’t seen by open file handles, programs want to do record locking, etc. on top of it? Maybe not the best of ideas.
There’s a reason S3 isn’t a file system.
(See also The UNIX Haters Handbook chapter on the Nightmare File System)
- tinus_hn 6y agoOriginally you could run with NFS as your only storage, even swapping on NFS. If the server rebooted the clients would get stuck but resume once it came back up. This requires some hard to deliver guarantees from the server.
- Someone 6y agoFrom what I understand, that only worked if the processes making NFS requests kept retrying long enough. But yes, being stateless has the advantage that the server won’t lose connections, open file state, etc. across client or server restarts. That’s useful, but if you assume you have a file system (which NFS claims to be), and want to use those features, you’re asking for problems. NFS is aan example of “worse is better”.
- tinus_hn 6y agoThe idea was they’d keep trying forever which typically is long enough. The downside is if you retire a server all the clients that still have files open will hang.
- guenthert 6y agoNFS isn't stateless since NFSv3 was introduced more than 25 years ago. There was a remote fs before NFS which closely mimicked Unix file system semantic (AT&T's RFS). There's a reason you don't read much about it.