Code Monkey home page Code Monkey logo

Comments (3)

kofemann avatar kofemann commented on July 17, 2024

NFS spec assumes, that file handles are permanent. My guess will be as well to return ESTALE to enforce lookup. However, for directories this will mess-up client-side cache. May we you can try to implement persistent mapping with ehcache of hazelcast?

from nfs4j.

aasenov avatar aasenov commented on July 17, 2024

Thanks for the reply. I think I will try some persistent caching, but for now I'll check other options. I was wondering what kind of cache native Linux NFS client/server are using - persistent or in-memory.

from nfs4j.

aasenov avatar aasenov commented on July 17, 2024

I was unable to make client reload the cache, so I was forced to resolve the issue on the server side. As the VFS I'm using is relatively linked Parent->Child, I was able to store small portion of this relation in the Inode. When I receive Inode that's not in the cache, I perform manual lookups based on stored relations. For now this solves the issue, but if I run out of space in the Inode, there is no other option than storing mapping in persistent cache.

from nfs4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.