Skip to content
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

feat: introduce macos support #108

Merged
merged 10 commits into from
Sep 27, 2024

Conversation

oowl
Copy link
Contributor

@oowl oowl commented Sep 22, 2024

recreate #90

@oowl
Copy link
Contributor Author

oowl commented Sep 23, 2024

If you want to test fuse3 macOS support, you can check apache/opendal#5136 (comment) and try to use it.

@oowl
Copy link
Contributor Author

oowl commented Sep 23, 2024

also cc @radumarias, Sorry for the long long long time delay.

@radumarias
Copy link

also cc @radumarias, Sorry for the long long long time delay.

no worries man :) thank you for getting so far :) will read about that and give it a try, eager for this :)

@oowl
Copy link
Contributor Author

oowl commented Sep 23, 2024

From OpenDAL ofs example use case apache/opendal#5136
cc @Sherlock-Holo

Mount

╭─ouyangjun@Ouyangs-MacBook-Air ~/code/opendal/bin/ofs ‹feat/owl/ofs-macos-recreat●› 
╰─$ mkdir /tmp/ofs                                                                                                                      130 ↵
╭─ouyangjun@Ouyangs-MacBook-Air ~/code/opendal/bin/ofs ‹feat/owl/ofs-macos-recreat●› 
╰─$ RUST_LOG=info ./target/debug/ofs ./exampless "fs://?root=/tmp/ofs"  

Usage

╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs ‹feat/owl/ofs-macos-recreat●›
╰─$ cd exampless
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ ls
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ touch a
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ echo hello > a
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ cat a
hello
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ cp a b
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ cat b
hello
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ ls
a b
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ mv b c
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ ls
a c
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ cat c
hello
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ rm c
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ ls
a
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ mkdir example                                                                                                                                                                                                                        
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless
╰─$ cd example
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless/example
╰─$ ls
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless/example
╰─$ touch a
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless/example
╰─$ echo hello > a
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless/example
╰─$ pwd
/Users/ouyangjun/code/opendal/bin/ofs/exampless/example
╭─ouyangjun@192-168-233-132 ~/code/opendal/bin/ofs/exampless/example
╰─$ file a
a: ASCII text

src/lib.rs Outdated Show resolved Hide resolved
src/mount_options.rs Outdated Show resolved Hide resolved
src/path/inode_path_bridge.rs Outdated Show resolved Hide resolved
src/raw/connection/tokio.rs Outdated Show resolved Hide resolved
@Sherlock-Holo Sherlock-Holo merged commit 42c54ec into Sherlock-Holo:master Sep 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants