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
6bc3d77992
Fix crash when exiting with open deleted files
2023-04-05 00:32:30 -04: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
34310170ac
Add ability to pin read and processing threads
2023-02-19 17:52:29 -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
a4491169b0
Remove FUSE_USE_VERSION, no longer used
2023-01-29 17:04:08 -05:00
Antonio SJ Musumeci
7ed91c1668
Backport bug fixes from libfuse3
2023-01-28 01:17:07 -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
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
094ad862e7
Fix regression testing for implemented functions
2022-12-11 14:44:19 -05:00
Antonio SJ Musumeci
a6ca96fa08
Fix printf for 32bit systems
2022-12-08 22:04:15 -05:00
Antonio SJ Musumeci
d14427ad9e
Fix reading of setxattr name
2022-12-08 18:40:08 -05:00
Antonio SJ Musumeci
ddf5e53aa4
Misc cleanup
2022-11-27 22:23:38 -06: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
dba9c4451a
Remove write_buf, simplify FUSE msg dispatching
2022-11-10 22:43:02 -05:00
Antonio SJ Musumeci
9d056d609f
Remove unnecessary libfuse abstractions
2022-11-07 23:09:25 -05:00
Antonio SJ Musumeci
32e2c9c48e
Tweaks for 32bit systems
2022-11-05 23:28:10 -04:00
Antonio SJ Musumeci
316abba0ac
Update fuse_kernel.h
2022-11-03 23:28:44 -04:00
Antonio SJ Musumeci
14c2ff9ab8
Return ENOENT when dotdot for root node requested
2022-04-12 23:17:39 -04:00
Antonio SJ Musumeci
b95ff8ba3a
Lock less often during logging
2022-03-20 22:34:55 -04:00
Antonio SJ Musumeci
3f060f4512
Change ENOENT to ESTALE for looking up paths to handle rename race conditions
...
As done in https://github.com/libfuse/libfuse/pull/636
2022-03-20 12:09:22 -04:00
Antonio SJ Musumeci
9ca10b2413
Rework node slab garbage collection to limit blocking work threads
...
Also remove debug mode from forcing foreground mode
2022-03-19 13:33:14 -04:00
Antonio SJ Musumeci
68b3026264
Remove embedded name in node struct
...
The 32 byte array is below the average size so those 32 bytes are wasted a
large portion of the time.
2021-11-01 21:08:58 -04: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
930dad31de
Reduce struct node size
...
* Replace the stat values with a crc32b of them instead (for auto-cache)
* Replace char flag with bitfield
* Remove node generation. nodeid is an unsigned 64bit int. Would take 500K+ years
to rollover at 1M nodes per second.
2021-10-03 22:15:34 -04:00
Antonio SJ Musumeci
8150957a01
Fix regression from remember_node refactor
2021-09-30 22:13:29 -04:00
Antonio SJ Musumeci
c929781d08
Add malloc_trim configure test
2021-09-30 20:00:40 -04:00
Antonio SJ Musumeci
4ea0de3ef2
Rework dirents buffer management
2021-09-19 16:48:03 -04:00
Antonio SJ Musumeci
6b5c484fbf
Major rework of memory allocation using fixed mem pools
2021-09-19 16:48:03 -04:00
Antonio SJ Musumeci
5263a65dcf
Remove usage printing regression in mount_bsd
2021-08-29 13:09:38 -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
Antonio SJ Musumeci
80f30999fa
properly initialize fuse_buf in worker loop
2021-06-20 17:38:17 -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
3900543970
fix segv: zero out data structures
2020-12-13 13:40:04 -05:00
Antonio SJ Musumeci
1b26f4908e
general cleanup, slight memory reduction
2020-11-19 22:58:52 -05:00
Antonio SJ Musumeci
7e173108fd
libfuse cleanup: add more header include guards
2020-08-08 19:10:36 -04:00
trapexit
17925c4c93
Merge pull request #809 from trapexit/libfuse-cleanup
...
Libfuse cleanup
2020-08-08 19:00:43 -04:00
KARBOWSKI Piotr
f488debf96
libfuse/Makefile: support CXXFLAGS and LDFLAGS passed via environment
2020-08-08 22:04:14 +02:00
KARBOWSKI Piotr
0bc6711a95
libfuse/Makefile: support $AR
2020-08-08 22:03:28 +02:00
Antonio SJ Musumeci
a925fbe59c
libfuse cleanup: extern cplusplus cleanup
2020-08-08 14:25:44 -04:00
Antonio SJ Musumeci
dc1b698847
libfuse cleanup: remove single threaded
2020-08-07 16:38:24 -04:00
Antonio SJ Musumeci
3c761b708b
libfuse cleanup: remove libfuse API compatibility
2020-08-07 16:38:24 -04:00
Antonio SJ Musumeci
3bfdd78434
libfuse cleanup: remove cuse
2020-08-07 16:38:24 -04:00
Antonio SJ Musumeci
5f12fb6a5f
libfuse cleanup: remove unnecessary files
2020-08-07 16:38:24 -04:00
Antonio SJ Musumeci
f9b831eb1a
libfuse cleanup: reindent
2020-08-07 16:38:24 -04:00