mirror of
https://github.com/OMGeeky/gdriver2.git
synced 2026-02-15 22:14:31 +01:00
auto unmount on exit
This commit is contained in:
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user