diff --git a/gdriver-client/src/main.rs b/gdriver-client/src/main.rs index 5bfc90d..b9c6168 100644 --- a/gdriver-client/src/main.rs +++ b/gdriver-client/src/main.rs @@ -17,7 +17,11 @@ async fn main() -> Result<()> { println!("Config: {:?}", **config); let client: GDriverServiceClient = create_client(config.ip, config.port).await?; let fs = DriveFilesystem::new(client); - mount2(fs, Path::new("/tmp/gdriver"), &[MountOption::RW])?; + mount2( + fs, + Path::new("/tmp/gdriver"), + &[MountOption::RW, MountOption::AutoUnmount], + )?; // service::start().await?; Ok(())