Giter VIP home page Giter VIP logo

Comments (3)

rminnich avatar rminnich commented on June 15, 2024

overall, there are a few other places where fileid is not set, and linux is unhappy:

[ 1811.830000] NFS: server 192.168.0.10 error: fileid changed
[ 1811.830000] fsid 0:13: expected fileid 0x0, got 0x165b98be2e784cc9
[ 1811.870000] NFS: server 192.168.0.10 error: fileid changed
[ 1811.870000] fsid 0:13: expected fileid 0x0, got 0x15e019a7babe4e62
[ 1811.900000] NFS: server 192.168.0.10 error: fileid changed
[ 1811.900000] fsid 0:13: expected fileid 0x0, got 0x8a54dff6858049b8

one option might be to have ToFileAttribute take the handle as well, to fill in the missing information.

from go-nfs.

willscott avatar willscott commented on June 15, 2024

in the previous update #97 i intended to switch from using the handle for the fileid to rather using either the underlying fileid when present, or a hash of the full pathname of the file when not. The handle will not be guaranteed to be stable in the same way as the path.

Doing a search, it looks like read-dir still uses the handle for the synthetic fileids for the directory itself. I'll fix that.

I am interested in what's getting us '0x0' file id's - maybe we need to be more aggressive about detecting that when returned from the file system and using path hash if so - the logic right now is that if the stat's os.FileInfo.Sys() is a (*syscall.Stat_t) - then we read the Ino.

from go-nfs.

willscott avatar willscott commented on June 15, 2024

This should be consistent now with #102

from go-nfs.

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.