You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "silver-ymz (via GitHub)" <gi...@apache.org> on 2023/05/01 08:59:35 UTC
[GitHub] [incubator-opendal] silver-ymz opened a new pull request, #2186: feat(services/sftp): Add read/write/stat support for sftp
silver-ymz opened a new pull request, #2186:
URL: https://github.com/apache/incubator-opendal/pull/2186
Impl #708
This PR adds support for the sftp backend using the [openssh-sftp-client](https://github.com/openssh-rust/openssh-sftp-client) library.
## Misc
In the `Connection` struct, the sftp connection is stored while hiding the `session` and `channel` used to create the connection. However, the `Channel` definition requires the 'sess lifetime in its type annotation, while `Session` does not. To address this, the `OwningHandle` is used to ensure that `Channel` has ownership of `Session` to pass the lifetime check. A similar situation exists for `SftpReader`.
## Tests
All tests have passed except for `test_list_rich_dir`, which seems to be an upstream issue. The problem is that it misses some files when listing a folder with many files, and an issue has been opened for it at https://github.com/openssh-rust/openssh-sftp-client/issues/62.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo commented on a diff in pull request #2186: feat(services/sftp): Add read/write/stat support for sftp
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on code in PR #2186:
URL: https://github.com/apache/incubator-opendal/pull/2186#discussion_r1181500440
##########
core/Cargo.toml:
##########
@@ -176,7 +182,10 @@ metrics = { version = "0.20", optional = true }
minitrace = { version = "0.4.0", optional = true }
moka = { version = "0.10", optional = true, features = ["future"] }
once_cell = "1"
+openssh = { version = "0.9.9", optional = true }
+openssh-sftp-client = { version = "0.12.2", optional = true }
Review Comment:
Why we need both of them?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo merged pull request #2186: feat(services/sftp): Add read/write/stat support for sftp
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo merged PR #2186:
URL: https://github.com/apache/incubator-opendal/pull/2186
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org