Antonio SJ Musumeci
4a665bbf32
fix: make the default minfreespace safe to change at runtime
...
- Setting minfreespace through the .mergerfs xattr wrote the shared
default while request threads read it through each branch, with no
synchronization. That is a data race; on 32-bit targets a request
could see half of the new 64-bit value.
- Store the default as std::atomic<u64> and read and write it with
relaxed loads and stores. Per-branch values are unchanged.
2026-11-21 14:53:56 -05:00
Antonio SJ Musumeci
511bf47af9
Convert stdint to short ints
2026-03-02 01:09:16 -05:00
Antonio SJ Musumeci
a5a6c892b9
Update copyright headers
2026-03-02 01:09:16 -05:00
trapexit
ca59ae53a5
idmap mount support ( #1523 )
...
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled
* Add idmap mount support
* Further replacement of std::filesystem::path to fs::path
* Update docs regarding idmap support
2025-09-18 00:07:28 -05:00
trapexit
6ac7f389c5
Misc changes ( #1513 )
...
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run
* Start moving to string_view where possible
* Rework readdir object to use atomic load/store
2025-08-21 22:42:58 -05:00
Antonio SJ Musumeci
de2a82800a
Improve mount waiting + misc doc improvements
...
Adds user.mergerfs.branch and user.mergerfs.branch_mounts_here
Adds .mergerfs.branch and .mergerfs.branch_mounts_here files.
2025-04-23 15:58:36 -05:00
Antonio SJ Musumeci
538467b86d
config: rework global config, remove rwlock, make branches RCU like
...
Also added unit tests. Should have done separately but found a number of bugs.
2021-01-14 21:02:10 -05:00
Antonio SJ Musumeci
54c41c4994
rework config management
...
* Add standard way to do str2val and val2str conversion
* Add support for a config file
* Add support for reading and writing settings via ioctl
2020-06-18 18:54:25 -04:00