Comments (2)
Hey, @evial! I think enabling debugging logs might help to understand the issue, you can find an example here (last argument):
from jnr-fuse.
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)
- Java 9 module support HOT 3
- write throughput very low compared to read HOT 1
- Capturing SetSecurity events HOT 2
- Fix CVE-2014-4043 HOT 4
- Wrong dependency scopes in release 0.5.6 HOT 2
- GraalVM native image support
- Winfsp and jnr-fuse not working HOT 3
- Why not implement the inode interface provided by kernel fuse to replace the current path interface? HOT 5
- Program doesn't shut down properly in some cases on windows
- JVM crash with jnr-fuse and javafx
- WinFsp 1.12 doesn't pass the CI check
- Test failures on AWS Graviton (ARM, aarch64 GNU/Linux)
- Winfsp read callback random offset
- I can't get getxattr() working HOT 1
- -bash: cd : mydirectory: Input/output error HOT 1
- Path Problem with Windows HOT 6
- The wrapper.jar is stale. HOT 4
- Can't run in gradle HOT 2
- Multiple folders created by FUSE cannot be monitored at the same time HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jnr-fuse.