Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mountpoint for macos #7016

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Add mountpoint for macos #7016

wants to merge 1 commit into from

Conversation

TimeEngineer
Copy link
Contributor

@TimeEngineer TimeEngineer commented Apr 5, 2024

closes #6144

This is a start on the implementation of mountpoint for MacOS, it should be possible to use fuser for macOS, it uses macfuse(osxfuse is the old name).
fuser clearly shows that it supports macOS but it is untested (because you can find #[cfg(target_os = "macos")] in its code and see: https://github.com/cberner/fuser?tab=readme-ov-file#macos-untested where it describes how to install macfuse)

What I have done in this PR:

Remote machine: (with sw_vers)
ProductName: macOS
ProductVersion: 14.4.1
BuildVersion: 23E224

  • Note that the CI uses macos-12

  • I installed macfuse with brew install --cask macfuse

  • When I run the example hello.rs of fuser, it throws the following error message: mount_macfuse: the file system is not available (1) with: fuse_mount_compat25

  • I tried /usr/bin/sudo /usr/bin/kmutil load -p /Library/Filesystems/macfuse.fs/Contents/Extensions/14/macfuse.kext on the remote machine which throw Error Domain=KMErrorDomain Code=27 "Extension with identifiers io.macfuse.filesystems.macfuse not approved to load. Please approve using System Preferences." UserInfo={NSLocalizedDescription=Extension with identifiers io.macfuse.filesystems.macfuse not approved to load. Please approve using System Preferences.}

  • I found Macfuse 4.6.0 not working macOS Sonoma 14.3.1 osxfuse/osxfuse#1000 which is a similar issue, but I don't know how to access gui interface from terminal :(

Utils: https://github.com/macfuse/macfuse/wiki/Getting-Started

@TimeEngineer TimeEngineer added A-MacOS Area: MacOS issue I-Rust Impact: Rust-related stuff labels Apr 5, 2024
@TimeEngineer TimeEngineer self-assigned this Apr 5, 2024
@TimeEngineer TimeEngineer requested review from a team as code owners April 5, 2024 11:54
@TimeEngineer TimeEngineer force-pushed the add-mountpoint-macos branch 2 times, most recently from f4e568d to 8fbf120 Compare April 5, 2024 12:12
@TimeEngineer TimeEngineer marked this pull request as draft April 5, 2024 12:22
@TimeEngineer TimeEngineer force-pushed the add-mountpoint-macos branch 22 times, most recently from ddd9371 to e299c0c Compare April 8, 2024 14:44
@TimeEngineer TimeEngineer force-pushed the add-mountpoint-macos branch 2 times, most recently from 23ea660 to 0bb35ee Compare April 8, 2024 15:01
@TimeEngineer TimeEngineer force-pushed the add-mountpoint-macos branch 2 times, most recently from ef27598 to 16caac5 Compare April 9, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-MacOS Area: MacOS issue I-Rust Impact: Rust-related stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement mountpoint for macOS
2 participants