Antonio SJ Musumeci
885a051f2d
fuse_create.cpp
7 months ago
Antonio SJ Musumeci
c9b7ed5b8a
Add support for file io passthrough
If using Linux 6.9 or above and enabled (passthrough=true) files
opened or created will use the FUSE passthrough feature.
If direct-io=true / cache.files=off it will override passthrough. If
direct-io-allow-mmap is enabled only mmap will passthrough.
HANDLE_KILLPRIV and V2 are enabled now by default to remove the
kernel's need to issue getattr and getxattr requests.
moveonenospc will not work when leveraging passthrough.
8 months ago
Antonio SJ Musumeci
6aa6452d3e
Add flushonclose feature
1 year ago
Antonio SJ Musumeci
707d298d7c
Create functions can set branches RO on EROFS
1 year ago
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.
1 year ago
Antonio SJ Musumeci
9effeb6869
Add "per-process" file caching feature
Allows chosing page caching based on process name.
2 years ago
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.
4 years ago
Antonio SJ Musumeci
1b26f4908e
general cleanup, slight memory reduction
4 years ago
Antonio SJ Musumeci
fc3453932a
branches: add per branch minfreespace w/ original value as default
example: /mnt/disk0=RW,1G:/mnt/disk1=RW,2G
4 years ago
Antonio SJ Musumeci
2fe20b888e
clean up and separate out fs_* files
4 years ago
Antonio SJ Musumeci
15a0aedd25
cleanup: move some config data structures to separate files
4 years ago
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
5 years ago
Antonio SJ Musumeci
576ff3694e
add cache.writeback to xattrs
5 years ago
Antonio SJ Musumeci
903d39f968
add writeback caching
5 years ago
Antonio SJ Musumeci
529a953e30
add file caching across opens and runtime control
6 years ago
Antonio SJ Musumeci
9d9ee7b71d
general code cleanup
6 years ago
Antonio SJ Musumeci
87b2795f2b
set direct_io per open/create, now runtime configurable
6 years ago
Antonio SJ Musumeci
b55ebba4ed
add tagging branches RW/RO/NW
This allows users to tag a branch as readonly or not for writing regardless
of how the filesystem is mounted. Should simplify deployments and offer
more flexibility.
6 years ago
Antonio SJ Musumeci
9e0ab1f518
misc cleanups
6 years ago
Antonio SJ Musumeci
8a48b74cb4
policy return cleanup
6 years ago
Antonio SJ Musumeci
f48c16d162
stop clonepath at base directory. fixes #467
7 years ago
Antonio SJ Musumeci
162b99e6b8
enable nopath and nullpath_ok
8 years ago
Antonio SJ Musumeci
d67d5dec77
check for system.posix_acl_default before setting umask
8 years ago
Antonio SJ Musumeci
35075bb0cd
return clonepath errors
currently the error is ignored and it was expected the primary call would
fail. problem is it returns confusing errors as a result. (eg ENOENT vs EPERM)
8 years ago
Antonio SJ Musumeci
1dc7bff6e6
wrap most posix filesystem functions
8 years ago
Antonio SJ Musumeci
7e423cd9ce
small tweaks to build on Debian kFreeBSD
8 years ago
Antonio SJ Musumeci
43cbd9c670
move size calculations to use uint64_t. fixes #287
8 years ago
Antonio SJ Musumeci
6086620e23
use references to srcmounts rather than copies
9 years ago
Antonio SJ Musumeci
242af777be
move from MIT to ISC license. closes #194
9 years ago
Antonio SJ Musumeci
5808ab7795
move on enospc when writing feature. closes #141
This feature mimics the standard mhddfs behavior but is more thorough.
If a write fails and the errno is set to ENOSPC then mergerfs will (if
the feature is enabled) attempt to move the file to the drive with
the most free space but only if it has enough room for the file plus
the amount to be written. If that transfer is successful it will then
unlink the original file and attempt the previously failed write again.
The copy includes copying the path and file including the acls, owners,
attributes, extended attributes, and timestamps.
9 years ago
Antonio SJ Musumeci
3163258a33
make changing credentials opportunistic + per thread setgroups cache
closes #129,#131
9 years ago
Antonio SJ Musumeci
f130d07fd8
config get and struct naming cleanup
9 years ago
Antonio SJ Musumeci
983fa9100d
change fuse functions to use the fuse namespace
9 years ago
Antonio SJ Musumeci
b2cd79154a
stop auto calculating and storing fullpath in policies
10 years ago
Antonio SJ Musumeci
51b6d3f647
add category to policies so as to distinguish between creates and searches
10 years ago
Antonio SJ Musumeci
6ca43893ea
separate policies into individual modules
10 years ago
Antonio SJ Musumeci
3c8f12281f
move policy function type from fs to policy
10 years ago
Antonio SJ Musumeci
2bd44568a1
move Path object to separate file
10 years ago
Antonio SJ Musumeci
ccb22c1fbe
create minfreespace option. closes #71
10 years ago
Antonio SJ Musumeci
91671d7364
remove FileInfo and keep only file descriptor
10 years ago
Antonio SJ Musumeci
c022741ffb
revert removal of 'all' policy and relevant behavior. closes #54
10 years ago
Antonio SJ Musumeci
12f393a55e
per FUSE function policies. closes #52 , #53
10 years ago
Antonio SJ Musumeci
b411c63df1
Remove 'all' policy and simplify logic
10 years ago
Antonio SJ Musumeci
c2cbb93c25
elevate privileges when calling clonepath. closes #41
10 years ago
Antonio SJ Musumeci
6c3ff01a0a
pass const strings by reference. closes #33
10 years ago
Antonio SJ Musumeci
cfe7609bcd
find functions now return errors. closes #24
10 years ago
Antonio SJ Musumeci
7e9ccd0317
support runtime setting of srcmounts. closes #12
10 years ago
Antonio SJ Musumeci
7b0d703f00
only allow manipulation of runtime settings via xattrs. closes #22
10 years ago
Antonio SJ Musumeci
0e12d79659
platform specific code to deal with sete{u,g}id. closes #17
11 years ago
Antonio SJ Musumeci
aab90b0503
rework policy code
11 years ago