mount an atproto PDS repository as a FUSE filesystem

separate macos-specific mount options

Signed-off-by: Maxwell Sylveon Fritz <git@mfzx.net>

authored by mfzx.net and committed by danabra.mov 46d96c3d 1b2094b2

+8 -3
+8 -3
src/main.rs
··· 93 93 let (_repos_arc, inodes_arc, sizes_arc, content_cache_arc) = fs.get_shared_state(); 94 94 95 95 // mount 96 - let options = vec![ 96 + let mut options = vec![ 97 97 MountOption::RO, 98 98 MountOption::FSName("pdsfs".to_string()), 99 99 MountOption::AllowOther, 100 - MountOption::CUSTOM("local".to_string()), 101 - MountOption::CUSTOM("volname=pdsfs".to_string()), 102 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 + } 103 108 104 109 // Create session and get notifier for Finder refresh 105 110 let session = fuser::Session::new(fs, &mountpoint, &options).unwrap();