-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility of fh returned by open/opendir #179
Comments
Thanks for the report! I believe sshfs-win is different from SSHFS. If you think a similar problem exists in SSHFS, could you please provide some more information? Without a reliable way to reproduce this issue under Linux, I'm afraid there isn't much we can do. |
sshfs-win is different from SSHFS, yes, but the same problem happens with stock SSHFS on cygwin. In the linked comment there is a very specific description of the issue. Let me quote:
|
Thank you for clarifying the issue! SSHFS is indeed following documented behavior here (cf. https://libfuse.github.io/doxygen/structfuse__operations.html#a60144dbd1a893008d9112e949300eb77, https://libfuse.github.io/doxygen/structfuse__operations.html#a1813889bc5e6e0087a936b7abe8b923f). You could make a case that it would have been better design to allow either kind of filehandle, but at this point way too many applications depend on the current API to justify changing it. In other words, I still don't think there's anything to do an the SSHFS side here. Am I missing something? |
Sorry, I'm not an expert in either FUSE nor SSHFS and just tried to relay the information but I've looked into the code a bit. Here's what I don't get: in SSHFS Any other operation including fsync will call If I understood correctly then SSHFS is written such that if it's a directory then If two different types are necessary wouldn't it be more correct to add a tag to the structure that can be used to identify whether it's a file or directory struct and handle either case properly for all operations that could potentially handle files and directories? Wouldn't it also be better for performance if any fuse filesystem implementation didn't necessarily need to "re-open" a directory for |
This discussion is somewhat academic. SSHFS uses libfuse, and libfuse guarantees that If someone wants to submit a pull request for SSHFS so that its |
I'm closing this bug report for now. Please note that this isn't meant to imply that you haven't found a valid bug or potential improvement - you most likely have and I'm grateful that you took the time to report it. Unfortunately, this project does not currently have any active, regular contributors or developers. The current maintainer continues to apply pull requests and tries to make regular releases, but unfortunately has no capacity to do any development beyond addressing high-impact issues. Any other reports are therefore likely to languish unless they come together with a high-quality pull request. (The issue reporting template has been changed to point this out, but you may have submitted your report before the change). This report unfortunately does not fall into either category, so with the current state of affairs it's unlikely that anyone is going to be able to do anything but this anytime soon, and I prefer to use the issue tracker as a tool to manage ongoing work (as opposed to a database of known/potential issues). |
The issue leads to segfault with WinFSP-FUSE.
It is described here:
@Nikratio
winfsp/sshfs-win#54 (comment)
The text was updated successfully, but these errors were encountered: