Support JNI Fuse touch command
See original GitHub issueAlluxio Version: Alluxio master - 2.6.0-SNAPSHOT
Describe the bug
Running touch
command with JNI-Fuse mount point fails.
$touch /tmp/alluxio/fuseMount/a.file
touch: setting times of ‘/tmp/alluxio/fuseMount/a.file’: Function not implemented
Looks like JNI-Fuse need to support setattr
operation to be able to get touch
to work
To Reproduce
- Create an Alluxio cluster
- Create a fuse mount point
fuseMount
and grant permissions - Mount JNI-Fuse with
integration/fuse/bin/alluxio-fuse mount fuseMount /
- Run
touch
command against the mount point
Expected behavior Touch should succeed without exceptions
Urgency Not urgent
Additional context JNR-FUSE touch succeed without error
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
"Function not implemented" · Issue #30 · mafintosh/fuse-bindings
Does fuse-binding implement setattr? P.S. both setattr and setxattr are implemented ... Support JNI Fuse touch command Alluxio/alluxio#13090.
Read more >FUSE-based POSIX API - Alluxio v2.9.0 (stable) Documentation
Mount Alluxio as a FUSE Mount Point. After properly configuring and starting an Alluxio cluster; Run the following command on the node where...
Read more >Android.mk - NDK - Android Developers
The Android.mk file resides in a subdirectory of your project's jni/ directory, and describes your sources and shared libraries to the build ...
Read more >JNR-FUSE: library for using FUSE from Java - SerCe's blog
In this article, I'll tell you how to implement userspace file system using Java without a line of kernel space code.
Read more >gcj - Ahead-of-time compiler for the Java language
As gcj is just another front end to gcc, it supports many of the same options as gcc. ... Input and output files...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
According to https://github.com/mafintosh/fuse-bindings/issues/30 It looks like three functions need to be implemented
@maobaolong if you added utimens, we already have chown, then the only missing is truncate which we don’t support yet. A possible way is to try to implement truncate with alluxio read to a tmp file, delete the file, and write a new Alluxio file up to size. After that, we may be able to conclude that touch requires
truncate
or not. we can have a discussion about whether we want to support this low efficiency truncate method.@apc999 @LuQQiu For this issue, it’s not caused by
truncate
, but caused byutimens
, so I implements it to resolve this issue.