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
9afefef032
keep literal when glob fails
6 years ago
Antonio SJ Musumeci
a7b126cb48
use pragma once in headers
7 years ago
Antonio SJ Musumeci
aea2b40dda
use temp files (then rename) when moving files for moveonenospc
7 years ago
Antonio SJ Musumeci
bfd410def2
use fusepath from fileinfo. closes #417
8 years ago
Antonio SJ Musumeci
a60d815e92
add ifndefs to all headers
8 years ago
Antonio SJ Musumeci
1dc7bff6e6
wrap most posix filesystem functions
8 years ago
Antonio SJ Musumeci
43cbd9c670
move size calculations to use uint64_t. fixes #287
8 years ago
Antonio SJ Musumeci
f7d3e8bf47
create lus (least used space) policy. closes #273
9 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
779143f4b6
add minfreespace checks to policy ff's create and remove fwfs
fwfs is now covered by ff with the minfreespace and readonly checks
9 years ago
Antonio SJ Musumeci
14886a27f4
add readonly and minfreespace filters to all policy for creates. closes #236
9 years ago
Antonio SJ Musumeci
5813d1e477
ignore drives mounted as readonly from create policies. closes #224
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
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
ce9352987c
realpath'ize all source mount points. closes #117
9 years ago
Antonio SJ Musumeci
1f1e481075
rework rename
Return EXDEV if directories of tragets differ. If the old and new path exist in the same directory first rename each old found by the policy and then unlink/rmdir any new on a drive which didn't rename. The unlink/rmdir will occur only if there were no rename errors. Any failures of unlink/rmdir are ignored. The last rename error is returned.
9 years ago
Antonio SJ Musumeci
b2cd79154a
stop auto calculating and storing fullpath in policies
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
8e5b79647b
create lfs policy. closes #73
10 years ago
Antonio SJ Musumeci
58167c3636
first w/ free space policy. closes #72
10 years ago
Antonio SJ Musumeci
ccb22c1fbe
create minfreespace option. closes #71
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
d30cae217b
add user.mergerfs.allpaths and user.mergerfs.relpath to getxattr
10 years ago
Antonio SJ Musumeci
b411c63df1
Remove 'all' policy and simplify logic
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
aab90b0503
rework policy code
11 years ago
Antonio SJ Musumeci
bb7a966296
initial code commit
11 years ago