-
Couldn't load subscription status.
- Fork 80
Macos passthrough implementation #182
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
base: master
Are you sure you want to change the base?
Macos passthrough implementation #182
Conversation
ce18bc9 to
2b3daf5
Compare
|
@akitaSummer Some CI tests failed, PTAL. :) |
0aa8a76 to
f3865cd
Compare
Signed-off-by: akitaSummer <644171127@qq.com>
Signed-off-by: akitaSummer <644171127@qq.com>
Signed-off-by: akitaSummer <644171127@qq.com>
Signed-off-by: akitaSummer <644171127@qq.com>
f3865cd to
28f93e3
Compare
|
@imeoer Please help me try CI again |
92e4739 to
fe23c44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There're lots of #[cfg(target_os = "macos")] here and there, spreading all across several files, is that possible to split them to different files?
Similar to
src/abi/
|- fuse_abi_linux.rs
|- fuse_abi_macos.rs
There should be a balance between code readability and code redundancy.
e1ceb1d to
2318011
Compare
Signed-off-by: akitaSummer <644171127@qq.com>
2318011 to
fbd70b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments, most part LGTM.
I'm not familiar with MacOS apis, it's better to involve more maintainers to do double check.
src/passthrough/file_handle.rs
Outdated
| #[cfg(target_os = "macos")] | ||
| use nix::unistd::getuid; | ||
| use std::ffi::CString; | ||
| #[cfg(target_os = "macos")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modification to this files seems unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getuid and Read was never used even on macos platform, so I think you can remove these two lines safely:
use nix::unistd::getuid;
use std::io::Read;
c0997d6 to
198d548
Compare
Signed-off-by: akitaSummer <akitasummer@outlook.com>
198d548 to
6e88bd8
Compare
src/passthrough/file_handle.rs
Outdated
| #[cfg(target_os = "macos")] | ||
| use nix::unistd::getuid; | ||
| use std::ffi::CString; | ||
| #[cfg(target_os = "macos")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getuid and Read was never used even on macos platform, so I think you can remove these two lines safely:
use nix::unistd::getuid;
use std::io::Read;
| @@ -0,0 +1,40 @@ | |||
| use std::{ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing lisence header.
| @@ -0,0 +1,137 @@ | |||
| use std::{ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing lisence header
| @@ -0,0 +1,120 @@ | |||
| use std::{ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing lisence header.
8aba2cd to
e4980d0
Compare
Signed-off-by: akitaSummer <akitasummer@outlook.com>
e4980d0 to
85fe445
Compare
Signed-off-by: akitaSummer <akitasummer@outlook.com>
No description provided.