Commit Graph

667 Commits

Author SHA1 Message Date
Antonio SJ Musumeci
fa1d57cdf3 branch_tier.cpp 2024-01-31 22:35:59 -06:00
Antonio SJ Musumeci
0b882c75a6 branch_tier.cpp 2024-01-31 22:19:35 -06:00
Antonio SJ Musumeci
ff568417f0 branch_tier.cpp 2024-01-31 22:18:41 -06:00
Antonio SJ Musumeci
d18a2ce30a branch_tier.cpp 2024-01-31 22:18:40 -06:00
Antonio SJ Musumeci
57ad56338a branch_tier.cpp 2024-01-31 22:18:26 -06:00
Antonio SJ Musumeci
c5dacc4235 branch_tier.cpp 2024-01-31 22:17:30 -06:00
Antonio SJ Musumeci
88c89af88a branch2.cpp 2024-01-31 22:04:20 -06:00
Antonio SJ Musumeci
5ec9bf26a2 branch2.cpp 2024-01-31 21:57:36 -06:00
Antonio SJ Musumeci
9f06a7de91 branch2.hpp 2024-01-31 21:44:30 -06:00
Antonio SJ Musumeci
e881f0ac0e branch2.cpp 2024-01-31 21:43:46 -06:00
Antonio SJ Musumeci
82c16f5eb1 branch2.cpp 2024-01-31 21:43:32 -06:00
Antonio SJ Musumeci
2f78a3c1b0 branch2.cpp 2024-01-31 21:43:19 -06:00
Antonio SJ Musumeci
eb5d11d74c branch2.cpp 2024-01-31 21:38:38 -06:00
Antonio SJ Musumeci
7129122fc3 branch2.cpp 2024-01-31 21:38:19 -06:00
Antonio SJ Musumeci
1b57f55403 branch2.cpp 2024-01-31 21:38:11 -06:00
Antonio SJ Musumeci
d27ef7bc51 branch_tier.cpp 2024-01-31 21:21:12 -06:00
Antonio SJ Musumeci
5aa07d3956 branch2.cpp 2024-01-31 21:20:34 -06:00
Antonio SJ Musumeci
497f7424f7 branch2.cpp 2024-01-31 21:19:57 -06:00
Antonio SJ Musumeci
c28e30528f branch2.cpp 2024-01-31 21:19:29 -06:00
Antonio SJ Musumeci
90f41c7075 branch2.cpp 2024-01-31 21:19:28 -06:00
Antonio SJ Musumeci
18635d489a branch2.cpp 2024-01-31 21:17:45 -06:00
Antonio SJ Musumeci
66098421d8 branch2.cpp 2024-01-31 21:16:44 -06:00
Antonio SJ Musumeci
3ae5367cb4 branch_tier.cpp 2024-01-31 21:04:14 -06:00
Antonio SJ Musumeci
3820c3364b branch2.cpp 2024-01-29 00:07:45 -06:00
Antonio SJ Musumeci
03d90a3899 branch2.cpp 2024-01-29 00:07:09 -06:00
Antonio SJ Musumeci
7d5099a3fd branch2.cpp 2024-01-29 00:06:00 -06:00
Antonio SJ Musumeci
21479f0874 branch2.cpp 2024-01-29 00:05:52 -06:00
Antonio SJ Musumeci
c72b54a161 branch2.cpp 2024-01-29 00:05:28 -06:00
Antonio SJ Musumeci
2be4f0b1dd branch2.cpp 2024-01-29 00:04:57 -06:00
Antonio SJ Musumeci
87085b281d branch2.cpp 2024-01-29 00:03:46 -06:00
Antonio SJ Musumeci
0a4a9ec7ce branch2.cpp 2024-01-29 00:02:21 -06:00
Antonio SJ Musumeci
e4717dcbe6 branch2.cpp 2024-01-29 00:02:15 -06:00
Antonio SJ Musumeci
35b573c5fa branch2.cpp 2024-01-29 00:02:03 -06:00
Antonio SJ Musumeci
e85ca0d23d branch2.cpp 2024-01-29 00:01:30 -06:00
Antonio SJ Musumeci
8d891c51c5 branch2.cpp 2024-01-29 00:00:59 -06:00
Antonio SJ Musumeci
0cfa5e39af branch2.hpp 2024-01-29 00:00:46 -06:00
Antonio SJ Musumeci
ebe35f5a0b branch2.cpp 2024-01-29 00:00:38 -06:00
Antonio SJ Musumeci
0a7cc3008f branch2.hpp 2024-01-28 23:59:59 -06:00
Antonio SJ Musumeci
c29fde6885 branch2.hpp 2024-01-28 23:58:24 -06:00
Antonio SJ Musumeci
7103327bdf branch2.hpp 2024-01-28 23:58:17 -06:00
Antonio SJ Musumeci
13bd184dda branch2.hpp 2024-01-28 23:57:45 -06:00
Antonio SJ Musumeci
4420dee26a branch2.hpp 2024-01-28 23:57:35 -06:00
Antonio SJ Musumeci
273e69502e branch2.hpp 2024-01-28 23:57:26 -06:00
Antonio SJ Musumeci
9e46159cac branch2.hpp 2024-01-28 23:57:06 -06:00
Antonio SJ Musumeci
aab1f8e850 branch2.hpp 2024-01-28 23:56:18 -06:00
Antonio SJ Musumeci
4e03b2b287 branch2.hpp 2024-01-28 23:55:50 -06:00
Antonio SJ Musumeci
ed95ce5442 branch2.hpp 2024-01-28 23:55:36 -06:00
Antonio SJ Musumeci
82b94c955c branch_tier.cpp 2024-01-28 23:31:31 -06:00
Antonio SJ Musumeci
1ad509a18c branch_tier.cpp 2024-01-28 23:31:30 -06:00
Antonio SJ Musumeci
8582fe5e5b branch_tier.cpp 2024-01-28 23:31:07 -06:00
Antonio SJ Musumeci
450fdaa0dd branch_tier.cpp 2024-01-28 23:29:59 -06:00
Antonio SJ Musumeci
8d8bbfc27f branch_tier.cpp 2024-01-28 23:29:04 -06:00
Antonio SJ Musumeci
f15705ccad branch_tier.cpp 2024-01-28 23:24:13 -06:00
Antonio SJ Musumeci
7f188be486 branch_tier.cpp 2024-01-28 23:24:03 -06:00
Antonio SJ Musumeci
1350e9d1db branch_tier.cpp 2024-01-28 23:23:50 -06:00
Antonio SJ Musumeci
10d8e7d43f branch_tier.cpp 2024-01-28 23:19:24 -06:00
Antonio SJ Musumeci
9d5c9edd1d branch_tier.cpp 2024-01-28 23:03:45 -06:00
Antonio SJ Musumeci
40158677dc branch_tier.cpp 2024-01-28 23:03:34 -06:00
Antonio SJ Musumeci
479cfafe5a checkpoint 2024-01-28 22:45:38 -06:00
Antonio SJ Musumeci
e769d94e00 branches2.cpp 2024-01-28 22:44:03 -06:00
Antonio SJ Musumeci
595fd8d538 branches2.hpp 2024-01-28 22:38:53 -06:00
Antonio SJ Musumeci
4d796051f5 branch2.hpp 2024-01-28 22:38:16 -06:00
Antonio SJ Musumeci
be856a0cd8 branches2.hpp 2024-01-28 22:35:48 -06:00
Antonio SJ Musumeci
3724318306 branches2.hpp 2024-01-28 22:32:04 -06:00
Antonio SJ Musumeci
8bdc1fb2d2 branches2.cpp 2024-01-28 21:35:32 -06:00
Antonio SJ Musumeci
2a09c57615 branches2.cpp 2024-01-28 21:35:03 -06:00
Antonio SJ Musumeci
9b92ec5a37 branches2.cpp 2024-01-28 21:34:09 -06:00
Antonio SJ Musumeci
ef74d52007 branches2.cpp 2024-01-28 21:33:53 -06:00
Antonio SJ Musumeci
1af5ca5945 branches2.cpp 2024-01-28 21:33:39 -06:00
Antonio SJ Musumeci
42b7d581f3 branches2.cpp 2024-01-28 21:33:28 -06:00
Antonio SJ Musumeci
46707ab24e branches2.cpp 2024-01-28 21:33:10 -06:00
Antonio SJ Musumeci
8d9ed5305b branches2.cpp 2024-01-28 21:32:55 -06:00
Antonio SJ Musumeci
d63ed52a01 branches2.cpp 2024-01-27 01:00:38 -06:00
Antonio SJ Musumeci
c4433efe5a branches2.cpp 2024-01-27 01:00:27 -06:00
Antonio SJ Musumeci
7528efa28b branches2.cpp 2024-01-27 01:00:17 -06:00
Antonio SJ Musumeci
011716d471 branches2.cpp 2024-01-27 00:58:36 -06:00
Antonio SJ Musumeci
d89a944031 branches2.cpp 2024-01-27 00:57:46 -06:00
Antonio SJ Musumeci
0c4d9cc69f branches2.cpp 2024-01-27 00:57:34 -06:00
Antonio SJ Musumeci
20a2f83a33 branches2.cpp 2024-01-27 00:56:15 -06:00
Antonio SJ Musumeci
b78d01a629 branches2.cpp 2024-01-27 00:56:08 -06:00
Antonio SJ Musumeci
b7bb1ce0a1 branches2.cpp 2024-01-27 00:53:15 -06:00
Antonio SJ Musumeci
ed92f3c67d branches2.cpp 2024-01-27 00:52:50 -06:00
Antonio SJ Musumeci
cdf57f13ab branches2.cpp 2024-01-27 00:52:27 -06:00
Antonio SJ Musumeci
bfec58843a branches2.cpp 2024-01-27 00:51:41 -06:00
Antonio SJ Musumeci
61d84a9418 branches2.cpp 2024-01-27 00:49:48 -06:00
Antonio SJ Musumeci
7b76221d1b branches2.cpp 2024-01-27 00:49:38 -06:00
Antonio SJ Musumeci
d5b411ce44 mergerfs.cpp 2024-01-27 00:48:14 -06:00
Antonio SJ Musumeci
3a936dc743 mergerfs.cpp 2024-01-27 00:45:37 -06:00
Antonio SJ Musumeci
b2e489e0c1 mergerfs.cpp 2024-01-27 00:45:30 -06:00
Antonio SJ Musumeci
9187a4b899 mergerfs.cpp 2024-01-27 00:45:00 -06:00
Antonio SJ Musumeci
39b72434ea mergerfs.cpp 2024-01-27 00:32:49 -06:00
Antonio SJ Musumeci
8fac887706 checkpoint 2024-01-26 00:41:09 -06:00
Antonio SJ Musumeci
0ab7ebf81c mergerfs.cpp 2024-01-26 00:30:04 -06:00
Antonio SJ Musumeci
d0501b36c1 mergerfs.cpp 2024-01-25 23:47:25 -06:00
Antonio SJ Musumeci
e7bc60351c branches2.hpp 2024-01-25 23:28:11 -06:00
Antonio SJ Musumeci
fde366c932 branches2.hpp 2024-01-25 23:28:03 -06:00
Antonio SJ Musumeci
3c8b39fe6b branch2.cpp 2024-01-25 23:04:07 -06:00
Antonio SJ Musumeci
3ff5e50a36 branch2.hpp 2024-01-25 23:04:07 -06:00
Antonio SJ Musumeci
92a38fd39e branch2.hpp 2024-01-25 23:04:07 -06:00
Antonio SJ Musumeci
4b099d1d3b branch2.cpp 2024-01-25 23:04:07 -06:00
Antonio SJ Musumeci
f7e91d9c8e branch2.cpp 2024-01-25 23:04:07 -06:00
Antonio SJ Musumeci
915ffaf6e9 branch2.hpp 2024-01-25 23:04:04 -06:00
Antonio SJ Musumeci
15f8ba594b mergerfs.cpp 2024-01-25 23:03:32 -06:00
Antonio SJ Musumeci
efeb9fa8e3 mergerfs.cpp 2024-01-25 23:03:32 -06:00
Antonio SJ Musumeci
cd7aab90a5 mergerfs.cpp 2024-01-25 23:03:32 -06:00
Antonio SJ Musumeci
87e043e7c4 branches2.hpp 2024-01-25 23:03:32 -06:00
Antonio SJ Musumeci
874e288386 state.cpp 2024-01-25 23:03:32 -06:00
Antonio SJ Musumeci
3198258f4a state.cpp 2024-01-25 23:03:32 -06:00
Antonio SJ Musumeci
86d5fe31fa state.hpp 2024-01-25 23:03:32 -06:00
Antonio SJ Musumeci
afc51bec03 branches2.hpp 2024-01-25 23:03:32 -06:00
Antonio SJ Musumeci
ec0c25c2b7 branches2.hpp 2024-01-25 23:03:32 -06:00
Antonio SJ Musumeci
631cd5fc16 branches2.hpp 2024-01-25 23:03:32 -06:00
Antonio SJ Musumeci
c327662bd3 state.cpp 2024-01-25 23:03:32 -06:00
Antonio SJ Musumeci
5c5e803c3d branches2.hpp 2024-01-25 07:55:39 -06:00
Antonio SJ Musumeci
c5d7cbcf40 branches2.hpp 2024-01-25 07:55:14 -06:00
Antonio SJ Musumeci
3a831bf98b branches2.hpp 2024-01-25 07:55:02 -06:00
Antonio SJ Musumeci
2c337dc007 branches2.hpp 2024-01-25 07:36:06 -06:00
Antonio SJ Musumeci
693444b8ca branches2.hpp 2024-01-25 07:35:43 -06:00
Antonio SJ Musumeci
bf75615b38 branches2.hpp 2024-01-24 23:42:14 -06:00
Antonio SJ Musumeci
936202d0bb branches2.hpp 2024-01-24 23:41:43 -06:00
Antonio SJ Musumeci
92aca75fab branches2.hpp 2024-01-24 23:38:33 -06:00
Antonio SJ Musumeci
a024a45cd7 branches2.hpp 2024-01-24 23:33:52 -06:00
Antonio SJ Musumeci
3c34463ecb branches2.hpp 2024-01-24 23:26:48 -06:00
Antonio SJ Musumeci
43af15e54a branches2.hpp 2024-01-24 23:21:02 -06:00
Antonio SJ Musumeci
c2babda0f7 branches2.hpp 2024-01-24 23:17:50 -06:00
Antonio SJ Musumeci
20fe9fc4d4 branches2.hpp 2024-01-24 23:00:45 -06:00
Antonio SJ Musumeci
e0a0c41932 branches2.hpp 2024-01-24 23:00:43 -06:00
Antonio SJ Musumeci
3a1aebb875 branch2.hpp 2024-01-24 22:06:39 -06:00
Antonio SJ Musumeci
3f4daac1a1 branch2.hpp 2024-01-24 22:04:13 -06:00
Antonio SJ Musumeci
95b5cb83ef branch2.hpp 2024-01-24 21:53:35 -06:00
Antonio SJ Musumeci
4e7c815a25 branch2.hpp 2024-01-24 21:53:17 -06:00
Antonio SJ Musumeci
b3088ec7c9 branch2.hpp 2024-01-24 21:52:51 -06:00
Antonio SJ Musumeci
8e0979a515 branch2.hpp 2024-01-24 21:49:25 -06:00
Antonio SJ Musumeci
1e746c3beb branch2.hpp 2024-01-24 21:49:02 -06:00
Antonio SJ Musumeci
0ef8b3a2f2 branch2.cpp 2024-01-24 21:48:36 -06:00
Antonio SJ Musumeci
5deff9025a mergerfs.cpp 2024-01-23 21:20:01 -06:00
Antonio SJ Musumeci
4dcf8dbc56 mergerfs.cpp 2024-01-23 21:19:38 -06:00
Antonio SJ Musumeci
39edcc3371 mergerfs.cpp 2024-01-23 21:18:25 -06:00
Antonio SJ Musumeci
97b23e03da mergerfs.cpp 2024-01-23 21:18:09 -06:00
Antonio SJ Musumeci
120ac8b5da checkpoint 2024-01-23 20:02:49 -06:00
Antonio SJ Musumeci
feb0fd4389 checkpoint 2024-01-23 20:01:25 -06:00
trapexit
96d34f1eab
Merge pull request #1280 from trapexit/getpid
Fix user.mergerfs.pid
2023-11-11 19:48:28 -06:00
Antonio SJ Musumeci
f66fb7e2d4 Fix user.mergerfs.pid 2023-11-11 19:03:32 -06:00
Antonio SJ Musumeci
bd70928268 Set flush-on-close default to opened-for-write 2023-10-31 09:23:52 -05:00
Antonio SJ Musumeci
d6a2f06797 Only set allow_other when running as root 2023-10-29 01:44:18 -05:00
Antonio SJ Musumeci
6aa6452d3e Add flushonclose feature 2023-10-28 19:47:23 -05:00
Antonio SJ Musumeci
a7069153bd Warn if not running as root 2023-10-22 00:43:19 -05:00
Antonio SJ Musumeci
fd33df04a3 Update wyhash to 4.2 2023-10-21 18:03:05 -05:00
Antonio SJ Musumeci
620cab2948 Rework thread pool queue depth impl 2023-10-14 00:58:10 -05:00
Antonio SJ Musumeci
766b923116 Fix thread pool destruction where threads don't explicitly exit themselves 2023-09-09 16:48:47 -05:00
Antonio SJ Musumeci
6d2c99e487 Remove unneeded debug logging from thread pool 2023-09-04 18:39:43 -05:00
Antonio SJ Musumeci
b91cc1c191 Add website and license to version option 2023-09-04 15:57:47 -05:00
Antonio SJ Musumeci
0a94bd7cfc Rework thread pool, add ability to add/remove threads at runtime 2023-09-03 23:36:03 -05:00
Antonio SJ Musumeci
335ca55a6e Add proper input validation for readdir policy 2023-09-02 15:47:49 -05:00
Antonio SJ Musumeci
76c8d48dbd Change threadpool to use concurrentqueue 2023-09-02 00:45:47 -05:00
Antonio SJ Musumeci
0c555e71a0 Initialize readdir threadpool after daemonizing 2023-08-28 22:47:04 -05:00
Antonio SJ Musumeci
8d7017273f Misc fixes for older platforms 2023-08-22 08:10:55 -05:00
Antonio SJ Musumeci
0ed03a1535 Use relaxed memory order for atomic counters 2023-08-21 15:43:03 -05:00
Antonio SJ Musumeci
fdecabfaab Update wyhash to final4 2023-08-21 00:18:41 -05:00
Antonio SJ Musumeci
e586d2fd1e Fix setting of ugids for concurrent readdir 2023-08-20 23:06:05 -05:00
Antonio SJ Musumeci
2377cb05b6 Add thread names for easier debugging 2023-08-14 17:51:41 -05:00
Antonio SJ Musumeci
0aafdefc18 Add ability to invalidate gid cache on demand
SIGUSR2 or ioctl
2023-08-13 23:30:52 -05:00
Antonio SJ Musumeci
6dcf6111af Add callbacks for newer functions
* setupmapping
* removemapping
* syncfs
* tmpfile
2023-08-13 17:38:13 -05:00
Antonio SJ Musumeci
c92a10021e Add readdir policies 2023-08-11 00:05:14 -05:00
Antonio SJ Musumeci
51d97bb444 Move fuse thread args out of fuse session object 2023-07-30 22:52:43 -05:00
Antonio SJ Musumeci
556c6522c0 Update fmt to v10.0.0 2023-07-15 17:47:36 -05:00
Antonio SJ Musumeci
543603bdfc Update ghc::filesystem to v1.5.14 2023-07-15 14:47:44 -05:00
Antonio SJ Musumeci
707d298d7c Create functions can set branches RO on EROFS 2023-07-13 21:19:13 -05:00
Antonio SJ Musumeci
fa537961c5 Simplify syslog wrapper a bit 2023-07-06 00:13:42 -05:00
Antonio SJ Musumeci
2722f4f64d Fix error handling for cached writes 2023-06-29 22:50:24 -05:00
Antonio SJ Musumeci
5ab0fbcaee Add manual GC triggering + configurable process queue depth
Yes, these are unrelated changes but somehow ended up being
prototyped together and I'm too lazy to separate them.
2023-06-26 22:44:23 -05:00
Antonio SJ Musumeci
6a14a10e6c Fix read/write behavior and return value depending on direct_io
Also add parallel direct write option for 6.2+ kernels.
2023-06-24 23:06:14 -05:00
Antonio SJ Musumeci
82430e1079 Fix moveonenospc when file opened with append mode 2023-06-12 23:40:08 -05:00
Antonio SJ Musumeci
c72997f298 Make srcmounts readonly
All tools only read from srcmounts and the current setup had a bug
which caused branch mode and minfreespace to be stripped when using
config file.
2023-04-05 22:24:24 -04:00
Antonio SJ Musumeci
cdcfef2ceb Remove duplicate entries in docs 2023-04-01 14:40:49 -04:00
Antonio SJ Musumeci
0a64d74b4b Change default read-thread-count from -1 to 0 as documented 2023-03-31 12:54:57 -04:00
Antonio SJ Musumeci
26fd11cb4d Workaround older gcc bug with namespacing std::hash 2023-03-28 21:53:38 -04:00
Antonio SJ Musumeci
eebd6e9eb4 Actively report to syslog when waiting for mounts 2023-03-28 19:01:21 -04:00
Antonio SJ Musumeci
1c5b0f2f5f Fix loading readonly / write once options from file 2023-03-19 23:40:32 -04:00
Ilya Taranov
d04e04e89a Fix config file parsing 2023-03-10 20:55:20 -08:00
Antonio SJ Musumeci
486c5d3734 Add ability to set readahead of mergerfs and branches 2023-03-09 00:12:57 -05:00
Antonio SJ Musumeci
373d331f39 Rework fuse read to use same buffers as messages 2023-02-26 23:31:44 -05:00
Antonio SJ Musumeci
84592a9f13 Remove splicing features
After numerous tests it was found the splice features were at best
the same performance as standard IO and at worse actually slower.
To simplify the code all splice features are removed.
2023-02-26 01:42:58 -05:00
Antonio SJ Musumeci
9effeb6869 Add "per-process" file caching feature
Allows chosing page caching based on process name.
2023-02-18 01:16:36 -05:00
Antonio SJ Musumeci
2d9c915641 Return NOTTY for all btrfs ioctl calls
mergerfs tries to pass through ioctl calls but due to the complexity
of btrfs calls their is risk of segfaults. In the future it may be
required to whitelist all supported ioctl calls.
2023-02-11 10:07:55 -05:00
Antonio SJ Musumeci
9adddfc66d Add option to lazy umount target mount point 2023-02-02 21:20:23 -05:00
Antonio SJ Musumeci
3e313cd605 Forbid adding mountpoint to branch list 2023-01-29 11:51:56 -05:00
Antonio SJ Musumeci
92ccfd3c89 Hard code setting of allow_other, ignore when set 2023-01-26 23:37:37 -05:00
Antonio SJ Musumeci
a7113bb163 Allow setting of scheduling priority 2023-01-25 23:38:31 -05:00
Antonio SJ Musumeci
939eb3996a Add option to wait for branches to become new mounts
branches-mount-timeout=UINT64 in seconds (default: 0)
2023-01-25 11:59:14 -05:00
Antonio SJ Musumeci
3ee93d4c56 Remove 'nonempty' argument
This makes it like all other filesystems and brings it into alignment
with libfuse3's behavior.
2023-01-16 23:33:36 -05:00
Antonio SJ Musumeci
d11807ef7c Remove use_ino option and make behavior same as if set 2023-01-16 16:21:44 -05:00
Antonio SJ Musumeci
24423b8d2a Add async message processing 2023-01-16 13:15:53 -05:00
Antonio SJ Musumeci
a6ca96fa08 Fix printf for 32bit systems 2022-12-08 22:04:15 -05:00
Antonio SJ Musumeci
7606430188 Remove libfuse abstraction in prep for adding request data 2022-11-26 23:30:27 -06:00
Antonio SJ Musumeci
32e2c9c48e Tweaks for 32bit systems 2022-11-05 23:28:10 -04:00
Antonio SJ Musumeci
3b0d7fb26e Fix setting of stat vars for symlinkify 2022-10-30 22:27:33 -04:00
Antonio SJ Musumeci
46ce28b149 Error when given invalid policy names 2022-08-06 23:01:23 -04:00
Andrea Gelmini
338e559e53
Fix typos 2022-06-22 11:51:23 +02: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