oniony / TMSU

TMSU lets you tags your files and then access them through a nifty virtual filesystem from any other application.
Other
2.01k stars 115 forks source link

Use go-fuse v2 #266

Closed nzoschke closed 1 year ago

nzoschke commented 1 year ago

Use the newest version of https://github.com/hanwen/go-fuse. This adds support for OS X via MacFuse to tmsu mount.

nzoschke commented 1 year ago

Great project! I got this working on OS X / Monterey / 12.5.1 / M1 Pro.

First Install MacFuse with brew install macfuse. This requires OS kernel extension config on M1 (macfuse wiki).

## install deps
brew install macfuse

## build
go build -o tmsu main.go 

## init and tag
tmsu init
tmsu tag COMPILING.md docs

## mount
mkdir mp
tmsu mount mp

## ls by tags
ls -al mp/tags/docs/files
COMPILING.1.md

## unmount
tmsu umount mp
nzoschke commented 1 year ago

Currently tmsu unmount doesn't work, but os x umount does.

% tmsu unmount mp
tmsu: could not find 'fusermount': ensure fuse is installed: exec: "fusermount": executable file not found in $PATH
% umount mp 

EDIT: Fixed in PR

nzoschke commented 1 year ago

The errors from v1 are:

% ./tmsu mount mp         
tmsu: virtual filesystem mount failed: see standard error output: /var/folders/dr/2h9mqr1j0l98jtpf01yc054m0000gn/T/tmsu-vfs-1318694872

% cat /var/folders/dr/2h9mqr1j0l98jtpf01yc054m0000gn/T/tmsu-vfs-1318694872
tmsu: could not mount virtual filesystem at 'mp': could not mount virtual filesystem at 'mp': fork/exec /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs: no such file or directory