Re:NFS > FUSE: Why We Built Our Own NFS Server in Rust
by EdSchouten on Tuesday September 19, 2023 @04:14PM
(#37575864)
Note that there’s absolutely no requirement to support more advanced features such as locking and delegations. Even if a client offers to accept a delegation, a server may just deny/ignore it as part of OPEN.
Re:NFS > FUSE: Why We Built Our Own NFS Server in Rust
by eqvinox on Tuesday September 19, 2023 @03:48PM
(#37575450)
There's https://github.com/google/file-system-stress-testing but in this case I believe it would mostly stress-test the NFS client rather than your code… and I have never tried to use it, no idea if it even does anything useful.
I know from lore that there are compliance-test suites for the POSIX file system API, but I believe those are commercial products :(
Re:NFS > FUSE: Why We Built Our Own NFS Server in Rust
by ianlevesque on Tuesday September 19, 2023 @04:03PM
(#37575713)
xfstests is very thorough and reusable beyond xfs.
NFSv4 did throw out a lot of the legacy stuff, but also added a bunch of other state information like locks and delegation which is quite a bit more annoying to implement. Technically cos this is meant for "localhost-mounting-only", delegation should be easy to build (since we are expecting only exactly 1 mount). But v3 had far fewer APIs to implement, and so is a good starting point.