10 releases

0.0.9 Nov 7, 2024
0.0.8 Oct 23, 2024
0.0.7 Sep 18, 2024
0.0.6 Aug 29, 2024
0.0.0 Jun 21, 2024

#353 in Filesystem

Download history 146/week @ 2024-07-29 131/week @ 2024-08-12 130/week @ 2024-08-19 133/week @ 2024-08-26 159/week @ 2024-09-16 26/week @ 2024-09-23 11/week @ 2024-09-30 7/week @ 2024-10-07 1/week @ 2024-10-14 183/week @ 2024-10-21 14/week @ 2024-10-28 137/week @ 2024-11-04 8/week @ 2024-11-11

342 downloads per month
Used in ofs

Apache-2.0

3MB
62K SLoC

Apache OpenDAL™ fuse3 integration

Build Status Latest Version Crate Downloads chat

fuse3_opendal is an fuse3 implementation using opendal.

This crate can help you to access ANY storage services by mounting locally by FUSE.

Examples

use fuse3::path::Session;
use fuse3::MountOptions;
use fuse3::Result;
use fuse3_opendal::Filesystem;
use opendal::services::Memory;
use opendal::Operator;

#[tokio::test]
async fn test() -> Result<()> {
    // Build opendal Operator.
    let op = Operator::new(Memory::default())?.finish();

    // Build fuse3 file system.
    let fs = Filesystem::new(op, 1000, 1000);

    // Configure mount options.
    let mount_options = MountOptions::default();

    // Start a fuse3 session and mount it.
    let mut mount_handle = Session::new(mount_options)
        .mount_with_unprivileged(fs, "/tmp/mount_test")
        .await?;
    let handle = &mut mount_handle;

    tokio::select! {
        res = handle => res?,
        _ = tokio::signal::ctrl_c() => {
            mount_handle.unmount().await?
        }
    }

    Ok(())
}

Branding

The first and most prominent mentions must use the full form: Apache OpenDAL™ of the name for any individual usage (webpage, handout, slides, etc.) Depending on the context and writing style, you should use the full form of the name sufficiently often to ensure that readers clearly understand the association of both the OpenDAL project and the OpenDAL software product to the ASF as the parent organization.

For more details, see the Apache Product Name Usage Guide.

License and Trademarks

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Apache OpenDAL, OpenDAL, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.

Dependencies

~14–28MB
~438K SLoC