enter the Rc-RefCell madness

This commit is contained in:
Moritz Gmeiner 2025-08-01 18:09:45 +02:00
commit ea3e2a76c4
12 changed files with 619 additions and 353 deletions

View file

@ -1,4 +1,4 @@
use std::fs::File;
use std::fs::OpenOptions;
use std::sync::mpsc::channel;
use fat_fuse::FatFuse;
@ -13,12 +13,13 @@ fn main() -> anyhow::Result<()> {
let path = args.next().ok_or(anyhow::anyhow!("missing fs path"))?;
let mountpoint = args.next().ok_or(anyhow::anyhow!("missing mount point"))?;
let file = File::open(path)?;
// let file = File::open(path)?;
let file = OpenOptions::new().read(true).write(true).open(path)?;
let fat_fuse = FatFuse::new(file)?;
let options = vec![
MountOption::RO,
// MountOption::RO,
MountOption::FSName("fat-fuse".to_owned()),
MountOption::AutoUnmount,
];