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

separate macos-specific mount options #15

merged opened by mfzx.net targeting main from mfzx.net/pdsfs: main

made it work for me on linux mint

Labels

None yet.

Participants 2
AT URI
at://did:plc:erqwpimsmwnzohwoiojsy22z/sh.tangled.repo.pull/3mcs24sbxxt22
+8 -3
Diff #0
+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 ]; 103 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 + 104 109 // Create session and get notifier for Finder refresh 105 110 let session = fuser::Session::new(fs, &mountpoint, &options).unwrap(); 106 111 let notifier = session.notifier();

History

1 round 1 comment
sign up or login to add to the discussion
mfzx.net submitted #0
1 commit
expand
separate macos-specific mount options
expand 1 comment

lgtm thanks!

pull request successfully merged