minor work done
This commit is contained in:
parent
71dc68f3a9
commit
29856f2378
|
@ -10,7 +10,6 @@ use fuse::{
|
|||
};
|
||||
use libc::ENOENT;
|
||||
use std::env;
|
||||
use std::path::Path;
|
||||
use time::Timespec;
|
||||
|
||||
const TTL: Timespec = Timespec { sec: 1, nsec: 0 }; // 1 second
|
||||
|
@ -114,5 +113,11 @@ impl Filesystem for HelloFS {
|
|||
|
||||
fn main() {
|
||||
let mountpoint = env::args_os().nth(1).unwrap();
|
||||
fuse::mount(HelloFS, &mountpoint, &[]);
|
||||
let handle = fuse::mount(HelloFS, &mountpoint, &[]);
|
||||
match handle {
|
||||
Ok(_) => {}
|
||||
Err(error) => {
|
||||
println!("{}", error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue