Antonio SJ Musumeci
8d7017273f
Misc fixes for older platforms
1 year ago
Antonio SJ Musumeci
fdecabfaab
Update wyhash to final4
1 year ago
Antonio SJ Musumeci
707d298d7c
Create functions can set branches RO on EROFS
1 year ago
Antonio SJ Musumeci
82430e1079
Fix moveonenospc when file opened with append mode
1 year 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
2fe20b888e
clean up and separate out fs_* files
4 years ago
Antonio SJ Musumeci
ec15872a1f
cleanup function signatures and definitions
4 years ago
Antonio SJ Musumeci
08d267fc61
moveonenospc: enhance the feature to allow using a policy
Just like functions you can now set a policy for moveonfreenospc. This
allows for more flexibility.
For backwards compatibility moveonfreenospc=true is converted to
moveonfreenospc=mfs.
minfreespace does apply which is slightly different from original behavior.
4 years ago
Antonio SJ Musumeci
8d1a1564bf
fix building on certain platforms
6 years ago
Antonio SJ Musumeci
93f7d7d927
add link_cow feature
When enabled if a regular file is opened which has a link count > 1 it will
copy the file to a temporary file and rename over the original. Effectively
breaking the link. This behavior is similar to cow-shell and other LD_PRELOAD
based "CoW" solutions.
6 years ago
Antonio SJ Musumeci
9afefef032
keep literal when glob fails
6 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
4ecf3c5797
clearly separate usage of statvfs from stat for file existance
Used statvfs to also check for existance vs lstat. On dead symlinks
this resulted in ENOENT making certain functions fail.
closes #239
9 years ago
Antonio SJ Musumeci
b3248a8f78
simplify policies
9 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
bbc75f6ff1
create errno policies for simulating errors. closes #107
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
91671d7364
remove FileInfo and keep only file descriptor
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
bb7a966296
initial code commit
11 years ago