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

refactor(ofs): Split fuse3 impl into fuse3_opendal #4721

Merged
merged 4 commits into from
Jun 12, 2024
Merged

refactor(ofs): Split fuse3 impl into fuse3_opendal #4721

merged 4 commits into from
Jun 12, 2024

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Jun 12, 2024

Our users will be able to use:

pub async fn mount(
    self,
    mount_point: impl AsRef<Path>,
    op: Operator,
) -> io::Result<MountHandle> {
    let adapter = fuse3_opendal::Filesystem::new(
        op,
        self.uid.unwrap_or_else(|| nix::unistd::getuid().into()),
        self.gid.unwrap_or_else(|| nix::unistd::getgid().into()),
    );
    Session::new(self.mount_options)
        .mount(adapter, mount_point)
        .await
}

Context: #4451

Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo Xuanwo requested a review from oowl June 12, 2024 10:25
Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo Xuanwo merged commit e1e430d into main Jun 12, 2024
27 checks passed
@Xuanwo Xuanwo deleted the split-ofs branch June 12, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants