mount an atproto PDS repository as a FUSE filesystem oppi.li/posts/mounting_the_atmosphere/

separate macos-specific mount options

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

authored by mfzx.net and committed by tangled.org b282bb11 43ec8bdb

+8 -3
+8 -3
src/main.rs
··· 137 137 let (_repos_arc, inodes_arc, sizes_arc, content_cache_arc) = fs.get_shared_state(); 138 138 139 139 // mount 140 - let options = vec![ 140 + let mut options = vec![ 141 141 MountOption::RO, 142 142 MountOption::FSName("pdsfs".to_string()), 143 143 MountOption::AllowOther, 144 - MountOption::CUSTOM("local".to_string()), 145 - MountOption::CUSTOM("volname=pdsfs".to_string()), 146 144 ]; 145 + 146 + // add macOS-specific options 147 + #[cfg(target_os = "macos")] 148 + { 149 + options.push(MountOption::CUSTOM("local".to_string())); 150 + options.push(MountOption::CUSTOM("volname=pdsfs".to_string())); 151 + } 147 152 148 153 // Create session and get notifier for Finder refresh 149 154 let session = fuser::Session::new(fs, &mountpoint, &options).unwrap();