Antonio SJ Musumeci
09ffc8c903
provide usage text and version info. closes #146
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
a960a7ef46
cleanup controlfile manipulation
9 years ago
Antonio SJ Musumeci
e0cf97261c
include default_permissions in default arguments
closes #130
9 years ago
Antonio SJ Musumeci
3163258a33
make changing credentials opportunistic + per thread setgroups cache
closes #129,#131
9 years ago
Antonio SJ Musumeci
ce9352987c
realpath'ize all source mount points. closes #117
9 years ago
Antonio SJ Musumeci
2d899479c3
fix non-suffixed setxattr of user.mergerfs.minfreespace
9 years ago
Antonio SJ Musumeci
b22528bac4
add user.mergerfs.version xattr
9 years ago
Antonio SJ Musumeci
e377d54c93
add user.mergerfs.policies xattr
9 years ago
Antonio SJ Musumeci
8178bf518c
refactor and simplify getxattr for user.mergerfs.\*
9 years ago
Antonio SJ Musumeci
bc77b0fd2a
add minfreespace check to epmfs create policy
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
7a93198d4a
forgot to add einval to policy
9 years ago
Antonio SJ Musumeci
bbc75f6ff1
create errno policies for simulating errors. closes #107
9 years ago
Antonio SJ Musumeci
126df0fbf1
fix epmfs failing to pick the existing path. closes #102
9 years ago
Antonio SJ Musumeci
8767db971a
remove unused variable
9 years ago
Antonio SJ Musumeci
267f2d291c
move requesting of FUSE flags to init from cli args
9 years ago
Antonio SJ Musumeci
f130d07fd8
config get and struct naming cleanup
9 years ago
Antonio SJ Musumeci
52d80299b5
passthrough ioctl args without processing. closes #90
9 years ago
Antonio SJ Musumeci
c60d03831f
use gte rather than gt for mtime comparisons. fixes #91
9 years ago
Antonio SJ Musumeci
80b2c35175
add creation of full path for open
9 years ago
Antonio SJ Musumeci
983fa9100d
change fuse functions to use the fuse namespace
9 years ago
Antonio SJ Musumeci
e5359ebd05
remove unused readdir function
9 years ago
Antonio SJ Musumeci
f00cd1467e
use pthread_getugid_np instead of gete{u,g}id on OSX. fixes #84
9 years ago
Antonio SJ Musumeci
4d605388a4
ignore ENOTSUP errors when cloning paths. fixes #82
9 years ago
Antonio SJ Musumeci
aafc1e9394
add str to size_t conversion code
9 years ago
Antonio SJ Musumeci
b3109ac506
add minfreespace to xattr interface
9 years ago
Antonio SJ Musumeci
b2cd79154a
stop auto calculating and storing fullpath in policies
10 years ago
Antonio SJ Musumeci
0c60701b29
create different policies based on category of use
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
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
45b73e53be
fix calling of lgetxattr. closes #68
10 years ago
Antonio SJ Musumeci
5fb277529f
attempt to set priority to -10 on startup. closes #65
10 years ago
Antonio SJ Musumeci
4b204b8fba
restrict who can setxattr the pseudo file. closes #64
10 years ago
Antonio SJ Musumeci
33c837a560
provide 'defaults' option. closes #58
10 years ago
Antonio SJ Musumeci
951b22b671
set FUSE subtype to 'mergerfs'. closes #59
10 years ago
Antonio SJ Musumeci
08366a35be
match cli options to xattrs
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
283a2b2285
Try RLIMIT_INFINITY first, then cur = max, then loop and try to increase till error. closes #50
10 years ago
Antonio SJ Musumeci
1a1c9db37b
close file after getting ioc flags. closes #48
10 years ago
Antonio SJ Musumeci
d30cae217b
add user.mergerfs.allpaths and user.mergerfs.relpath to getxattr
10 years ago
Antonio SJ Musumeci
2e95c6e78e
merge action and search category
10 years ago
Antonio SJ Musumeci
b411c63df1
Remove 'all' policy and simplify logic
10 years ago