Code Monkey home page Code Monkey logo

Comments (2)

SerCeMan avatar SerCeMan commented on June 16, 2024

Hey, @evial! I think enabling debugging logs might help to understand the issue, you can find an example here (last argument):

stub.mount(Paths.get(path), true, true);

from jnr-fuse.

evial avatar evial commented on June 16, 2024

Thanks @SerCeMan for the tip. Actually, I had already enabled the fuse debug but I didn't find anything relevant. Below the output when opening the file "hot/test/hello.txt" in the shared folder:

java[TID=5194]: FFFFC108A4617630: >>Create [KT---C] "\hot\test", FILE_OPEN, CreateOptions=1, FileAttributes=10, Security=NULL, AllocationSize=0:0, AccessToken=0000000000001DC8[PID=4], DesiredAccess=a0, GrantedAccess=0, ShareAccess=3
java[TID=5194]: FFFFC108A4617630: <<Create IoStatus=0[1] UserContext=0000000000000000:0000027D72A73A20, GrantedAccess=a0, FileInfo={FileAttributes=10, ReparseTag=0, AllocationSize=0:0, FileSize=0:0, CreationTime=2021-06-21T09:05:53.000Z, LastAccessTime=2021-06-21T09:05:53.000Z, LastWriteTime=2021-06-21T09:05:53.000Z, ChangeTime=2021-06-21T09:05:53.000Z, IndexNumber=0:0}
java[TID=5194]: FFFFC108A4615690: >>Create [UT---C] "\hot\test", FILE_OPEN, CreateOptions=100, FileAttributes=0, Security=NULL, AllocationSize=0:0, AccessToken=0000000000001F8C[PID=4], DesiredAccess=100080, GrantedAccess=0, ShareAccess=7
java[TID=5194]: FFFFC108A4615690: <<Create IoStatus=0[1] UserContext=0000000000000000:0000027D72A73810, GrantedAccess=100080, FileInfo={FileAttributes=10, ReparseTag=0, AllocationSize=0:0, FileSize=0:0, CreationTime=2021-06-21T09:05:53.000Z, LastAccessTime=2021-06-21T09:05:53.000Z, LastWriteTime=2021-06-21T09:05:53.000Z, ChangeTime=2021-06-21T09:05:53.000Z, IndexNumber=0:0}
java[TID=5194]: FFFFC108A4617630: >>QuerySecurity 0000000000000000:0000027D72A73810
java[TID=5194]: FFFFC108A4617630: <<QuerySecurity IoStatus=0[0] Security="O:WDG:WDD:P(A;;FA;;;WD)(A;;0x1201ef;;;WD)(A;;0x1201ef;;;WD)"
java[TID=5194]: FFFFC108A4629A00: >>Close 0000000000000000:0000027D72A73810
java[TID=5194]: FFFFC108A4629A00: <<Close IoStatus=0[0]
java[TID=5194]: FFFFC108A5B463D0: >>Create [UT---C] "\hot\test\hello.txt", FILE_OPEN, CreateOptions=200100, FileAttributes=0, Security=NULL, AllocationSize=0:0, AccessToken=0000000000001F64[PID=4], DesiredAccess=80, GrantedAccess=0, ShareAccess=7
java[TID=5194]: FFFFC108A5B463D0: <<Create IoStatus=0[1] UserContext=0000000000000000:0000027D72A738D0, GrantedAccess=80, FileInfo={FileAttributes=0, ReparseTag=0, AllocationSize=0:1000, FileSize=0:24, CreationTime=2021-06-21T09:06:15.000Z, LastAccessTime=2021-06-21T09:06:15.000Z, LastWriteTime=2021-06-21T18:02:16.000Z, ChangeTime=2021-06-21T09:06:15.000Z, IndexNumber=0:0}
java[TID=5194]: FFFFC108A5B463D0: >>QuerySecurity 0000000000000000:0000027D72A738D0
java[TID=5194]: FFFFC108A5B463D0: <<QuerySecurity IoStatus=0[0] Security="O:WDG:WDD:P(A;;0x1f01bf;;;WD)(A;;0x1201af;;;WD)(A;;0x1201af;;;WD)"
java[TID=5194]: FFFFC108A46330F0: >>Close 0000000000000000:0000027D72A738D0
java[TID=5194]: FFFFC108A46330F0: <<Close IoStatus=0[0]
java[TID=5194]: FFFFC108A4620760: >>Create [UT---C] "\hot\test\hello.txt", FILE_OPEN, CreateOptions=140, FileAttributes=0, Security=NULL, AllocationSize=0:0, AccessToken=0000000000001F88[PID=4], DesiredAccess=120089, GrantedAccess=0, ShareAccess=7
java[TID=5194]: FFFFC108A4620760: <<Create IoStatus=0[1] UserContext=0000000000000000:0000027D72A73360, GrantedAccess=120089, FileInfo={FileAttributes=0, ReparseTag=0, AllocationSize=0:1000, FileSize=0:24, CreationTime=2021-06-21T09:06:15.000Z, LastAccessTime=2021-06-21T09:06:15.000Z, LastWriteTime=2021-06-21T18:02:16.000Z, ChangeTime=2021-06-21T09:06:15.000Z, IndexNumber=0:0}
java[TID=5194]: FFFFC108A5B463D0: >>QuerySecurity 0000000000000000:0000027D72A73360
java[TID=5194]: FFFFC108A5B463D0: <<QuerySecurity IoStatus=0[0] Security="O:WDG:WDD:P(A;;0x1f01bf;;;WD)(A;;0x1201af;;;WD)(A;;0x1201af;;;WD)"
java[TID=5194]: FFFFC10899BFDA70: >>Read 0000000000000000:0000027D72A73360, Address=0000027D7AD70000, Offset=0:0, Length=4096, Key=0
java[TID=5194]: FFFFC10899BFDA70: <<Read IoStatus=0[36]

The read method is called at the end but no SMB read request is issued by the client (cannot see any in Wireshark) so I think this read is not aimed to return the file content. Anyway, no content data is sent back to the client before it shows the error message. Compared with the debug from a successfull read (from a Linux SMB client), the only difference I noticed is the value of the ShareAccess field in the FILE_OPEN: ShareAccess=7 (fail) vs ShareAccess=3 (success). I have no idea what it means.

from jnr-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.