made it work for me on linux mint
+8
-3
src/main.rs
+8
-3
src/main.rs
···
93
let (_repos_arc, inodes_arc, sizes_arc, content_cache_arc) = fs.get_shared_state();
94
95
// mount
96
-
let options = vec![
97
MountOption::RO,
98
MountOption::FSName("pdsfs".to_string()),
99
MountOption::AllowOther,
100
-
MountOption::CUSTOM("local".to_string()),
101
-
MountOption::CUSTOM("volname=pdsfs".to_string()),
102
];
103
104
// Create session and get notifier for Finder refresh
105
let session = fuser::Session::new(fs, &mountpoint, &options).unwrap();
106
let notifier = session.notifier();
···
93
let (_repos_arc, inodes_arc, sizes_arc, content_cache_arc) = fs.get_shared_state();
94
95
// mount
96
+
let mut options = vec![
97
MountOption::RO,
98
MountOption::FSName("pdsfs".to_string()),
99
MountOption::AllowOther,
100
];
101
102
+
// add macOS-specific options
103
+
#[cfg(target_os = "macos")]
104
+
{
105
+
options.push(MountOption::CUSTOM("local".to_string()));
106
+
options.push(MountOption::CUSTOM("volname=pdsfs".to_string()));
107
+
}
108
+
109
// Create session and get notifier for Finder refresh
110
let session = fuser::Session::new(fs, &mountpoint, &options).unwrap();
111
let notifier = session.notifier();
lgtm thanks!