question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support JNI Fuse touch command

See original GitHub issue

Alluxio 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:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
LuQQiucommented, Apr 9, 2021

According to https://github.com/mafintosh/fuse-bindings/issues/30 It looks like three functions need to be implemented

truncate
utimens
chown

@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.

0reactions
maobaolongcommented, Apr 13, 2021

@apc999 @LuQQiu For this issue, it’s not caused by truncate, but caused by utimens, so I implements it to resolve this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found