Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fuse_mt"
version = "0.6.3"
version = "0.7.0"
authors = ["William R. Fraser <wfraser@codewise.org>"]
repository = "https://github.com/wfraser/fuse-mt"
description = "A higher-level FUSE filesystem library with multi-threading and inode->path translation."
Expand All @@ -9,9 +9,10 @@ keywords = ["fuse", "filesystem"]
license = "MIT/Apache-2.0"
readme = "README.md"
edition = "2018"
rust-version = "1.85"

[dependencies]
fuser = "0.16"
fuser = "0.17"
libc = "0.2"
log = "0.4"
threadpool = "1.8"
Expand Down
1 change: 1 addition & 0 deletions example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2018"
workspace = ".."

[dependencies]
fuser = "0.17"
libc = "0.2"
log = "0.4"
fuse_mt = { path = ".." }
8 changes: 5 additions & 3 deletions example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#![deny(rust_2018_idioms)]

use std::env;
use std::ffi::{OsStr, OsString};
use std::ffi::OsString;

#[macro_use]
extern crate log;
Expand Down Expand Up @@ -46,7 +46,9 @@ fn main() {
target: args[1].clone(),
};

let fuse_args = [OsStr::new("-o"), OsStr::new("fsname=passthrufs")];
// Use the Config-based API introduced in fuser 0.17.
let mut config = fuser::Config::default();
config.mount_options.push(fuser::MountOption::FSName("passthrufs".to_owned()));

fuse_mt::mount(fuse_mt::FuseMT::new(filesystem, 1), &args[2], &fuse_args[..]).unwrap();
fuse_mt::mount_with_config(fuse_mt::FuseMT::new(filesystem, 1), &args[2], &config).unwrap();
}
Loading