Antonio SJ Musumeci
5c41e39874
checkpoint
2022-09-03 15:01:13 -04:00
Antonio SJ Musumeci
469492800c
checkpoint
2022-05-23 10:29:25 -04:00
Antonio SJ Musumeci
9019df57d0
checkpoint
2022-05-20 00:04:28 -04:00
Antonio SJ Musumeci
8e1d4c5a8e
checkpoint
2022-05-19 23:16:41 -04:00
Antonio SJ Musumeci
8f6467a11c
checkpoint
2022-05-19 18:30:29 -04:00
Antonio SJ Musumeci
7a81a5112c
checkpoint
2022-05-18 21:05:19 -04:00
Antonio SJ Musumeci
3cc77d6066
checkpoint
2022-05-17 23:26:04 -04:00
Antonio SJ Musumeci
a675e14508
checkpoint
2022-05-17 21:52:36 -04:00
Antonio SJ Musumeci
c8e8865495
checkpoint
2022-05-16 23:54:48 -04:00
Antonio SJ Musumeci
202f29286b
checkpoint
2022-05-15 23:34:21 -04:00
Antonio SJ Musumeci
551ee1ab05
checkpoint
2022-05-15 20:54:43 -04:00
Antonio SJ Musumeci
5e48ba69b5
checkpoint
2022-05-15 20:53:29 -04:00
Antonio SJ Musumeci
dc8baee8a6
checkpoint
2022-05-15 16:05:40 -04:00
Antonio SJ Musumeci
cba7433166
checkpoint
2022-05-15 13:11:02 -04:00
Antonio SJ Musumeci
2ae212ae81
checkpoint
2022-05-13 19:43:11 -04:00
Antonio SJ Musumeci
0bb55624a4
checkpoint
2022-05-13 19:11:10 -04:00
Antonio SJ Musumeci
c9a935835f
Fix query of attr during symlink
...
Using getattr when follow-symlink is enabled causes invalid type to the kernel
if symlink pointed to non-symlink.
2022-03-19 16:18:46 -04:00
Antonio SJ Musumeci
c43b464d6c
Call FUSE getattr rather than syscall for extra logic
...
While more efficient calling regular getattr (stat) leads to incorrect
information being returned and would not work correctly when using
symlinkify.
2021-12-18 17:07:23 -05:00
Antonio SJ Musumeci
e256c88e4c
Get attrs for link, not target
2021-12-16 19:11:29 -05:00
Antonio SJ Musumeci
ee8532c70d
Ensure server handling of locks is disabled
2021-11-27 00:01:12 -05:00
Antonio SJ Musumeci
18dead4d86
Add new debug printing routines
2021-10-27 22:12:10 -04:00
Antonio SJ Musumeci
5f737cb7bf
Add option to log node memory usage metrics
2021-10-11 11:57:16 -04:00
Antonio SJ Musumeci
313aa2a1d3
Update ghc::filesystem and nonstd::optional
2021-09-30 19:43:05 -04:00
Antonio SJ Musumeci
8def16a811
Fix infinite loop in mfs action policy
2021-08-29 12:33:52 -04:00
Antonio SJ Musumeci
43a6d66e3c
Major cleanup of libfuse to remove unneeded features
...
* Remove request interrupt code. Required tracking of all requests unnecesssarily.
* Remove all debugging printing. Have plans to do full replacement.
* Remove deprecated functions.
* Remove unneeded error checking.
* Remove "userdata" which was unused.
* Remove allow_root feature.
2021-08-29 00:05:30 -04:00
trapexit and GitHub
3b8d495c43
Merge pull request #940 from trapexit/ioctl-runtime-removal
...
Remove config ioctl calls
2021-08-03 17:02:01 -04:00
Antonio SJ Musumeci
61c2187c14
Remove config ioctl calls
...
While they were going to be the new way of interacting with the runtime config
I've decided to use toml based config for mergerfs v3. In that case all updates
will happen through the config file and ioctl will only be used to load/reload
the config rather than a key:value like API.
2021-08-02 16:56:20 -04:00
trapexit and GitHub
192e4a4af8
Merge pull request #939 from trapexit/update-nonstd-optional
...
Update nonstd::optional to v3.4.0
2021-08-02 16:29:40 -04:00
Antonio SJ Musumeci
7013ff9aeb
Update nonstd::optional to v3.4.0
2021-08-02 16:10:56 -04:00
Antonio SJ Musumeci
3ce0dc56e4
Update ghc::filesystem to v1.5.8
2021-08-02 16:06:43 -04:00
Antonio SJ Musumeci
098f353bf1
pfrd: fix mod by zero error when all branches are filtered
2021-06-25 09:17:16 -04:00
Antonio SJ Musumeci
8adebc9489
new features: follow-symlinks, rename-exdev, link-exdev
...
* follow-symlinks: allows mergerfs to transparently follow symlinks
* link-exdev: in the event a link returns EXDEV create a symlink instead
* rename-exdev: in the event a rename returns EXDEV move the oldpath and
create a symlink for the newpath
2021-02-11 23:24:08 -05:00
Antonio SJ Musumeci
d337574665
fix parsing of relative branch paths
2021-02-11 19:22:17 -05:00
trapexit and GitHub
cbea2ba91b
Merge branch 'master' into readdir_rewind_fix
2021-02-09 18:13:08 -05:00
Antonio SJ Musumeci
f6e37672b8
reset dentry buffer when rewind'ed
2021-02-09 18:09:28 -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
f50812a9ce
dirname should not return an empty string
2020-12-18 16:04:17 -05:00
Antonio SJ Musumeci
44a98910ba
msp policies stopped before root path
2020-12-17 19:55:49 -05:00
Antonio SJ Musumeci
7edd3c6cf3
config: fix invalid error check when parsing config file
2020-11-28 20:26:18 -05:00
Antonio SJ Musumeci
1b26f4908e
general cleanup, slight memory reduction
2020-11-19 22:58:52 -05:00
Antonio SJ Musumeci
c3fffefbc1
msp policies: used wrong path to check existance
2020-11-19 18:34:28 -05:00
Antonio SJ Musumeci
04844420dc
wyhash: use safety mode 1
...
mode 0 is not intended for unaligned buffers
2020-09-24 08:45:34 -04:00
Antonio SJ Musumeci
5a3184359d
rework some function error handling
...
chmod, chown, removexattr, setxattr, truncate, utimens:
* if no errors: return 0
* if no successes: return first error
* if file acted on was the same as related search function: return its value
* return 0
rmdir, unlink:
* if no errors: return 0
* return first error
2020-09-23 00:01:25 -04:00
Antonio SJ Musumeci
610c75fa90
properly return const ref from tofrom string wrapper
2020-09-19 18:57:13 -04:00
Antonio SJ Musumeci
767039c492
option_parser: return 0 when requesting help or version
2020-09-10 21:58:23 -04:00
Antonio SJ Musumeci
fc3453932a
branches: add per branch minfreespace w/ original value as default
...
example: /mnt/disk0=RW,1G:/mnt/disk1=RW,2G
2020-09-04 21:04:45 -04:00
Antonio SJ Musumeci
6311df774d
optionally use lchmod depending on if on Linux or not (BSD)
2020-08-26 12:44:32 -04:00
Antonio SJ Musumeci
046844083f
add {,ep,msp}pfrd policies
...
Percentage Free Random Distribution
Chooses a random branch based on the available space percentage free.
IE: if branch A has 1G free and branch B has 2G then B should be chosen
twice as often.
2020-08-25 22:19:01 -04:00
Antonio SJ Musumeci
7fd629ebf3
add #warning to make it more obvious what versions of functions are used
2020-08-18 19:28:36 -04:00
Antonio SJ Musumeci
2fe20b888e
clean up and separate out fs_* files
2020-08-18 19:28:36 -04:00