Repository navigation
Do not set FD_CLOEXEC on the FUSE fd on QNX - #410
Closed
gowtham0992 wants to merge 1 commit into
Closed
gowtham0992 wants to merge 1 commit into
gowtham0992 wants to merge 1 commit into
Conversation
There is no /dev/fuse descriptor on QNX: the FUSE API is provided over native message passing and fuse_session_fd() does not exist there.
Author
|
Withdrawing this: it is no longer needed, and it should not have asked SSHFS to carry a guard for a third-party FUSE library. QFuse now provides Thank you for your time, and sorry for the noise. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On QNX there is no
/dev/fusedescriptor. The FUSE API is provided over native message passing by QFuse, a library that implements the libfuse 3 high-level API on top of QNX resource managers, and it has nofuse_session_fd(). This extends the existing__CYGWIN__/__APPLE__guard around theFD_CLOEXECcall to__QNXNTO__. It is the only change needed.With it, current master (ba33bab, 3.7.7) builds with the QNX SDP 8.0 compiler for aarch64le and x86_64 and, on QNX 8.0 in QEMU on both architectures, passes:
preadand EOF, directory listing, an empty file, a missing path, read-only errors, graceful shutdown and remount, and exit with the mount detached when the host key does not match;pwrite, truncate, chmod, timestamps, rename, symlink, statfs and persistence across a remount.How it was built:
sshfs.candcache.cwere compiled directly with the same definitionsmeson.buildpasses (-D_REENTRANT -DHAVE_CONFIG_H -DFUSE_USE_VERSION=31, aconfig.hwithPACKAGE_VERSIONandIDMAP_DEFAULT "none") against GLib built for QNX. I did not run meson for the QNX cross build, and the project's own test suite was not run on QNX. The tests above aretests/test_sshfs.candtests/test_sshfs_write.cin the QFuse repository, run against a loopback OpenSSH SFTP server with key authentication and a pinned host key. No physical target was tested.