Giter Site home page Giter Site logo

Comments (5)

hanwen avatar hanwen commented on August 25, 2024

whoops, that sounds very serious.

from go-fuse.

hanwen avatar hanwen commented on August 25, 2024

can you show the entire stack trace? How reproducible is this? What if you compile loopback with the race detector?

from go-fuse.

hanwen avatar hanwen commented on August 25, 2024

can you see if the problem goes away if you disable readdirplus,

    server.kernelSettings.Flags = input.Flags & (CAP_ASYNC_READ | CAP_BIG_WRITES | CAP_FILE_OPS |
            CAP_AUTO_INVAL_DATA | CAP_READDIRPLUS)

remove CAP_READDIRPLUS from this opcode.go

I suspect the following happens: readdir folds lookup and readdir into one roundtrip. If you mix this with seeking on directories, it's not obvious when to set the lookup count of inodes, because the FUSE process does the entire readdir up front, but the kernel only notices when it consumes the readdir output.

(I wouldn't be surprised if this were in part a kernel bug, btw.)

from go-fuse.

rfjakob avatar rfjakob commented on August 25, 2024

from go-fuse.

rfjakob avatar rfjakob commented on August 25, 2024

Full backtrace: https://gist.github.com/rfjakob/686d05f9fb9681e724c5

Removing CAP_READDIRPLUS fixes the issue, the test passes!

from go-fuse.

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.