mergerfs icon indicating copy to clipboard operation
mergerfs copied to clipboard

Report invalid branches

Open sprat opened this issue 4 months ago • 3 comments

Is your feature request related to a problem? Please describe.

I had a hard time troubleshooting a problem that was due to a mistake from me where I had no valid branch in my mergerfs call:

$ mkdir /mnt/storage
$ mergerfs /nonexistent1:/nonexistent2 /mnt/storage
mergerfs[9]: threadpool (fuse.read): spawning 8 threads w/ max queue depth 8
mergerfs[9]: running basic garbage collection
$ mergerfs[9]: read-thread-count=8; process-thread-count=-1; process-thread-queue-depth=-1; pin-threads=false;

$ ls /mnt/
ls: /mnt/storage: No such file or directory
$ mkdir /mnt/storage
mkdir: can't create directory '/mnt/storage': File exists

Note that it's easy to get into this situation when we use wildcard in branches (/media/data* in my case) but nothing matches the wildcard expression

Describe the solution you'd like

Ideally, I would like to get an error message (or a warning at least!) when I call the mount command with invalid branches directories.

Describe alternatives you've considered

None

Additional context

mergerfs v2.40.2

sprat avatar Oct 01 '24 15:10 sprat