mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-06 14:50:07 -05:00
Compare commits
1315 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99621ac8c1 | ||
|
|
9d12bcf235 | ||
|
|
cb930ee7a0 | ||
|
|
6d138906ec | ||
|
|
ecb4de5bc0 | ||
|
|
b0d344308d | ||
|
|
78a67fd066 | ||
|
|
2513d3c067 | ||
|
|
bdfbedad8b | ||
|
|
74eade91f5 | ||
|
|
5d5d7af90b | ||
|
|
1a152db265 | ||
|
|
b10fb10590 | ||
|
|
7b7e96bbc5 | ||
|
|
3d81e24f32 | ||
|
|
28d809f2f8 | ||
|
|
8e87bcbff2 | ||
|
|
fcd7527c9d | ||
|
|
83d1630f55 | ||
|
|
cfb925e5ae | ||
|
|
515b0549ef | ||
|
|
8ea47df13e | ||
|
|
42ab831d97 | ||
|
|
89b4046d11 | ||
|
|
7ec6f8e2f2 | ||
|
|
5f7fa17ad8 | ||
|
|
30d59d4458 | ||
|
|
02dc36080c | ||
|
|
8734847968 | ||
|
|
608cd00764 | ||
|
|
b13727abde | ||
|
|
231aac15cd | ||
|
|
8b17d5f35e | ||
|
|
8608b2be46 | ||
|
|
1e0bd54989 | ||
|
|
56285fc6e5 | ||
|
|
dfe053a0ae | ||
|
|
12ac368e8b | ||
|
|
c8f32f9f25 | ||
|
|
ce3737ff33 | ||
|
|
84e4cdeb7e | ||
|
|
6d6d73c7b3 | ||
|
|
bea31543a0 | ||
|
|
99835a0178 | ||
|
|
342a1efcfb | ||
|
|
c587a127fb | ||
|
|
f1034a3ad6 | ||
|
|
8117998205 | ||
|
|
cc780bc521 | ||
|
|
14b7c8e607 | ||
|
|
3ff9794fff | ||
|
|
f71e27644e | ||
|
|
943f91ff98 | ||
|
|
ef1e01b5a5 | ||
|
|
50c0627b2b | ||
|
|
660f556ac6 | ||
|
|
997b036064 | ||
|
|
9308a3729c | ||
|
|
7616d8b1ac | ||
|
|
a86092b3c2 | ||
|
|
e613d9415f | ||
|
|
1a8eb326af | ||
|
|
9fb1642e93 | ||
|
|
8be86ee611 | ||
|
|
da68cf3a85 | ||
|
|
ec40866091 | ||
|
|
bd0714272e | ||
|
|
27acd9fcc7 | ||
|
|
4516685ca7 | ||
|
|
0bdbaf1d6c | ||
|
|
e67b7d0825 | ||
|
|
981d5473ee | ||
|
|
364f8c4407 | ||
|
|
ef9c7ad5df | ||
|
|
4288a60c5d | ||
|
|
cf38a37176 | ||
|
|
f5d9a60b9d | ||
|
|
0c17492c78 | ||
|
|
98648ae44b | ||
|
|
0dcca0f1a3 | ||
|
|
103cd358f2 | ||
|
|
aa46001923 | ||
|
|
ff48ff6047 | ||
|
|
d5a2187713 | ||
|
|
351adc2b20 | ||
|
|
a1e681f36b | ||
|
|
e3a467de80 | ||
|
|
cdadda5eb9 | ||
|
|
4c9a9d7e15 | ||
|
|
425e30b50f | ||
|
|
3905355522 | ||
|
|
9e2e1afafa | ||
|
|
6d218fa87f | ||
|
|
3b10406f95 | ||
|
|
f2c8e5d9eb | ||
|
|
b581c5d5e7 | ||
|
|
1ebc8cfa5f | ||
|
|
acfa797503 | ||
|
|
7fc20457ca | ||
|
|
ecee84b323 | ||
|
|
b8776d205d | ||
|
|
06433a0548 | ||
|
|
f4b602340b | ||
|
|
a78aef36e0 | ||
|
|
0d05523dfd | ||
|
|
0cfab60f37 | ||
|
|
21966ade97 | ||
|
|
96eb51eecb | ||
|
|
881147daa2 | ||
|
|
0f1a8e9b69 | ||
|
|
08f9cc6932 | ||
|
|
3099b15db1 | ||
|
|
07b1e6bdba | ||
|
|
7763c7384a | ||
|
|
61365d226d | ||
|
|
f33e78bc24 | ||
|
|
7f52623536 | ||
|
|
a30a4df9c0 | ||
|
|
1e0d5aa91d | ||
|
|
d09fadbc28 | ||
|
|
21ce889449 | ||
|
|
9d1a4696e9 | ||
|
|
ed0cbcf064 | ||
|
|
076e359891 | ||
|
|
bf98d3f3a6 | ||
|
|
c45c5ce920 | ||
|
|
e0a892f0d0 | ||
|
|
164b7f73c9 | ||
|
|
3a45be4cd8 | ||
|
|
107a3acf95 | ||
|
|
a5eafb8972 | ||
|
|
8199cc8a8b | ||
|
|
e5d897f3dc | ||
|
|
c0af09f7d8 | ||
|
|
1b1e14ca29 | ||
|
|
82b89aa099 | ||
|
|
aa91e1b2ba | ||
|
|
82e81afcdc | ||
|
|
1a5c39f813 | ||
|
|
fce1803d42 | ||
|
|
5a9a17afcb | ||
|
|
8648de6bb6 | ||
|
|
f227a63e15 | ||
|
|
aa47b74dea | ||
|
|
206ad1dd53 | ||
|
|
80aead7085 | ||
|
|
1220befacf | ||
|
|
01aa888c7a | ||
|
|
6a6aa054cd | ||
|
|
04939bbe72 | ||
|
|
2ea6290e4b | ||
|
|
c66c68b137 | ||
|
|
075a8a6548 | ||
|
|
3c6d1b47f6 | ||
|
|
6f281b9f7f | ||
|
|
511bf47af9 | ||
|
|
53c5a2cf1e | ||
|
|
eb8074ed9a | ||
|
|
38c19df95a | ||
|
|
b1228f11bd | ||
|
|
cfafafd7ff | ||
|
|
c8ce82ce54 | ||
|
|
05c3d97368 | ||
|
|
2c87e68635 | ||
|
|
8f1ef59770 | ||
|
|
a460c52861 | ||
|
|
a4aade6666 | ||
|
|
1d1bcd3b87 | ||
|
|
099ce2d91d | ||
|
|
56cd831ec8 | ||
|
|
e43be3c221 | ||
|
|
2754536727 | ||
|
|
a0cff637e1 | ||
|
|
a5a6c892b9 | ||
|
|
3d50d4a52f | ||
|
|
f69c31fd77 | ||
|
|
a2860c3f1f | ||
|
|
3f70e66ee3 | ||
|
|
160d3c832d | ||
|
|
15bcc47d6a | ||
|
|
e55bb93890 | ||
|
|
5a2a9e4530 | ||
|
|
b4239495a0 | ||
|
|
3222de6c9c | ||
|
|
be4d388813 | ||
|
|
a47842e2f8 | ||
|
|
f769d7474b | ||
|
|
2ae57642f4 | ||
|
|
7f1b7ac343 | ||
|
|
1290ab9708 | ||
|
|
965e26989c | ||
|
|
0caae4fbf0 | ||
|
|
4d1760cb69 | ||
|
|
22df87c86a | ||
|
|
72fb6e4aba | ||
|
|
9b046d9a34 | ||
|
|
d8918458bf | ||
|
|
d3a3f65e7b | ||
|
|
411d181473 | ||
|
|
caf7915003 | ||
|
|
4c5473d569 | ||
|
|
104f378c2c | ||
|
|
a364405cf0 | ||
|
|
960f5fdbba | ||
|
|
6813a51fce | ||
|
|
f7e86d90ce | ||
|
|
66d120c721 | ||
|
|
01973214bf | ||
|
|
af1edadf72 | ||
|
|
3bacaa6f7f | ||
|
|
b6e1a08aef | ||
|
|
47bd4259b8 | ||
|
|
dc486e79ce | ||
|
|
78551049d5 | ||
|
|
4aab008233 | ||
|
|
3a7a4a13e7 | ||
|
|
41b65ae9e8 | ||
|
|
2412ae7316 | ||
|
|
ec16d07fba | ||
|
|
37f10888a9 | ||
|
|
0db8a1ed6a | ||
|
|
cfaad60275 | ||
|
|
077484323c | ||
|
|
700fcfccf5 | ||
|
|
4b4801add6 | ||
|
|
741128cb23 | ||
|
|
3bee0f0b57 | ||
|
|
727c522fb8 | ||
|
|
00e5467e99 | ||
|
|
0371f03def | ||
|
|
d18c273293 | ||
|
|
0f24bb29ac | ||
|
|
3cb35a3a65 | ||
|
|
25b0bc72df | ||
|
|
e6fcebe4f3 | ||
|
|
46f85c0f6d | ||
|
|
7a9c3b7eb2 | ||
|
|
569a151da2 | ||
|
|
2f3e807e9d | ||
|
|
95ab37fdd2 | ||
|
|
1707dc27e3 | ||
|
|
c4126a0796 | ||
|
|
6acef3a638 | ||
|
|
b3656a0243 | ||
|
|
41b40b94fa | ||
|
|
ca59ae53a5 | ||
|
|
8c649d33ee | ||
|
|
f64ff9ca1e | ||
|
|
99c28ad3bc | ||
|
|
5becb334cd | ||
|
|
071af2e516 | ||
|
|
90b3585347 | ||
|
|
d7549f8d53 | ||
|
|
6ac7f389c5 | ||
|
|
2101ef5bcc | ||
|
|
dd1bea52cd | ||
|
|
df19f99976 | ||
|
|
24e778b95a | ||
|
|
a8a7b34cf3 | ||
|
|
6ae9641bcc | ||
|
|
4439c2a030 | ||
|
|
9872710720 | ||
|
|
b18aba86b6 | ||
|
|
33fc26f81f | ||
|
|
e8cd74cab0 | ||
|
|
2b500f194a | ||
|
|
e87867cd2a | ||
|
|
fa851eda3a | ||
|
|
f852474073 | ||
|
|
9e626228be | ||
|
|
71ddae8713 | ||
|
|
e216a81a27 | ||
|
|
264c5600f8 | ||
|
|
be49dbe1bd | ||
|
|
eb124316c9 | ||
|
|
77ef88b04c | ||
|
|
34f07e57f5 | ||
|
|
095fcf82a3 | ||
|
|
1b167d34d8 | ||
|
|
23824eaeb4 | ||
|
|
e310d24615 | ||
|
|
92312c8507 | ||
|
|
4b751c2d37 | ||
|
|
86b50d2d4e | ||
|
|
7e084ea7db | ||
|
|
6eca711f58 | ||
|
|
923d9608e8 | ||
|
|
3a034712f6 | ||
|
|
5db04b4b5f | ||
|
|
fa3266ca7f | ||
|
|
344014aa81 | ||
|
|
455a81290b | ||
|
|
deb54c58d8 | ||
|
|
2b04a791b7 | ||
|
|
8ee998e8aa | ||
|
|
de2a82800a | ||
|
|
212681ddc5 | ||
|
|
9dac54f223 | ||
|
|
78fa34098e | ||
|
|
54681e885a | ||
|
|
de5a871326 | ||
|
|
77bf16e9ae | ||
|
|
ad54c8be19 | ||
|
|
c769e959e8 | ||
|
|
1f3ebcf418 | ||
|
|
80085c9844 | ||
|
|
b85cc8c370 | ||
|
|
95732222d9 | ||
|
|
17a551d0a4 | ||
|
|
f74dc36e92 | ||
|
|
764bd8f7be | ||
|
|
b7f7f7fa97 | ||
|
|
7f410073d4 | ||
|
|
92ae63e842 | ||
|
|
d31e97e64c | ||
|
|
579690f411 | ||
|
|
ca449a73be | ||
|
|
2d86ed946a | ||
|
|
3e454f528c | ||
|
|
a4fdbae1ca | ||
|
|
aff66812c0 | ||
|
|
6472ac51e9 | ||
|
|
d3770802b1 | ||
|
|
bcbff5c82e | ||
|
|
09743ee187 | ||
|
|
3a33a6db2b | ||
|
|
c0d5f4795a | ||
|
|
ef9074ab4a | ||
|
|
2d03b89c2d | ||
|
|
64cc63b2bc | ||
|
|
514c478a39 | ||
|
|
8179f91c48 | ||
|
|
371764d800 | ||
|
|
1c44ef7967 | ||
|
|
aa97bac533 | ||
|
|
12d6302457 | ||
|
|
740fc3f84a | ||
|
|
f18719ced2 | ||
|
|
366f5fcc4c | ||
|
|
1729835b8c | ||
|
|
1180fd6dd3 | ||
|
|
19509e33d2 | ||
|
|
8f355d7dd5 | ||
|
|
2aa9697c87 | ||
|
|
978d067921 | ||
|
|
b83bd5fd14 | ||
|
|
dd906c8a4c | ||
|
|
6fb9111c03 | ||
|
|
bc382e0fd2 | ||
|
|
0197984db3 | ||
|
|
248b1aca1c | ||
|
|
9056898bbf | ||
|
|
5e584f246a | ||
|
|
7e964283b9 | ||
|
|
03dc17fff2 | ||
|
|
8cb68dce4a | ||
|
|
28260c434a | ||
|
|
fae9b993fe | ||
|
|
171eb9c7c0 | ||
|
|
174e703d2e | ||
|
|
efd0dfaa2f | ||
|
|
75d7a93724 | ||
|
|
50fa7ac694 | ||
|
|
7d64a47b88 | ||
|
|
5fba42f076 | ||
|
|
b0bb7ef38c | ||
|
|
85ce7d6178 | ||
|
|
40359df453 | ||
|
|
9b2a5a75ee | ||
|
|
b21172c609 | ||
|
|
f0444a1ca9 | ||
|
|
977d04229f | ||
|
|
757ae66327 | ||
|
|
42d0b5734c | ||
|
|
78050ed6b0 | ||
|
|
19ee44afe7 | ||
|
|
a234e9446c | ||
|
|
951eb9540d | ||
|
|
85a936c95e | ||
|
|
8210e63a66 | ||
|
|
facdb66746 | ||
|
|
1916e54a24 | ||
|
|
7fabe515f4 | ||
|
|
0ca5d6aad0 | ||
|
|
0c1aeb411d | ||
|
|
17fdbf7f42 | ||
|
|
27349e41ef | ||
|
|
b3ce95c422 | ||
|
|
cedc9f0f25 | ||
|
|
d68ad9ac01 | ||
|
|
ae6c4f7c25 | ||
|
|
87475098a1 | ||
|
|
d4dc0701d6 | ||
|
|
c1c2f075ee | ||
|
|
96d34f1eab | ||
|
|
f66fb7e2d4 | ||
|
|
edb3368078 | ||
|
|
bd70928268 | ||
|
|
337aade02d | ||
|
|
d6a2f06797 | ||
|
|
7890a4996c | ||
|
|
6aa6452d3e | ||
|
|
7d6c8e9333 | ||
|
|
a7069153bd | ||
|
|
5c71a75fdd | ||
|
|
fd33df04a3 | ||
|
|
a9ae36a3e4 | ||
|
|
569537df9e | ||
|
|
8534ee7ceb | ||
|
|
620cab2948 | ||
|
|
8635456818 | ||
|
|
0888f372aa | ||
|
|
e09b10c55b | ||
|
|
766b923116 | ||
|
|
dd7e9e2aa7 | ||
|
|
3fc0aa3809 | ||
|
|
b1dcc94e98 | ||
|
|
6d2c99e487 | ||
|
|
9d9eacfe7b | ||
|
|
b91cc1c191 | ||
|
|
6d2f26c60e | ||
|
|
0a94bd7cfc | ||
|
|
211e6c7115 | ||
|
|
335ca55a6e | ||
|
|
69de4de53f | ||
|
|
76c8d48dbd | ||
|
|
a927a15e9c | ||
|
|
0c555e71a0 | ||
|
|
82781b6ff8 | ||
|
|
b545352712 | ||
|
|
3d05999db0 | ||
|
|
f4a8105a42 | ||
|
|
004b616115 | ||
|
|
8d7017273f | ||
|
|
51b65cd126 | ||
|
|
0ed03a1535 | ||
|
|
b6d3c34d3f | ||
|
|
fdecabfaab | ||
|
|
3a1d8e03a1 | ||
|
|
e586d2fd1e | ||
|
|
e0087cd8a7 | ||
|
|
2377cb05b6 | ||
|
|
a8ffbc84f6 | ||
|
|
0aafdefc18 | ||
|
|
7221fded71 | ||
|
|
7a09f560f7 | ||
|
|
8b769dff7f | ||
|
|
6dcf6111af | ||
|
|
9849bcd3cf | ||
|
|
c92a10021e | ||
|
|
d817fa4e97 | ||
|
|
eb141c4c4e | ||
|
|
282ce08ddb | ||
|
|
51d97bb444 | ||
|
|
539f2221a3 | ||
|
|
2b1804d364 | ||
|
|
556c6522c0 | ||
|
|
543603bdfc | ||
|
|
7a86ed6508 | ||
|
|
707d298d7c | ||
|
|
36a4b7a23a | ||
|
|
22833bdfe2 | ||
|
|
775c3cad90 | ||
|
|
fa537961c5 | ||
|
|
ee13810f3b | ||
|
|
5d6c9cc56a | ||
|
|
832903378e | ||
|
|
2722f4f64d | ||
|
|
7cdd12bda4 | ||
|
|
5ab0fbcaee | ||
|
|
42836e0961 | ||
|
|
6a14a10e6c | ||
|
|
82430e1079 | ||
|
|
701f88de43 | ||
|
|
c72997f298 | ||
|
|
c681d6c2fe | ||
|
|
6bc3d77992 | ||
|
|
c266bae96d | ||
|
|
cdcfef2ceb | ||
|
|
7a62a629b9 | ||
|
|
0a64d74b4b | ||
|
|
26c8b5c642 | ||
|
|
26fd11cb4d | ||
|
|
cdceade1ae | ||
|
|
eebd6e9eb4 | ||
|
|
9744eab819 | ||
|
|
1c5b0f2f5f | ||
|
|
d9033b7713 | ||
|
|
b1d11779f0 | ||
|
|
be19b9ce71 | ||
|
|
9fcaf6a674 | ||
|
|
2dd4b788ce | ||
|
|
5152c63480 | ||
|
|
bd02bfd54c | ||
|
|
d04e04e89a | ||
|
|
10a9969a64 | ||
|
|
486c5d3734 | ||
|
|
55bd0ca25a | ||
|
|
ee2855bb38 | ||
|
|
65c004a309 | ||
|
|
a598f63235 | ||
|
|
6e845b337a | ||
|
|
e25fa1954e | ||
|
|
b48d368130 | ||
|
|
373d331f39 | ||
|
|
4a647beec1 | ||
|
|
84592a9f13 | ||
|
|
09fbb80f8c | ||
|
|
34310170ac | ||
|
|
e39ace0eba | ||
|
|
9effeb6869 | ||
|
|
b51a5970b2 | ||
|
|
2d9c915641 | ||
|
|
737e59d232 | ||
|
|
9adddfc66d | ||
|
|
9a6b7835f4 | ||
|
|
ac4e097511 | ||
|
|
3d73c6a596 | ||
|
|
9670fb9704 | ||
|
|
e2ece936e6 | ||
|
|
a4491169b0 | ||
|
|
0d566befba | ||
|
|
3e313cd605 | ||
|
|
5bf2a2be59 | ||
|
|
7ed91c1668 | ||
|
|
041e3f50d5 | ||
|
|
92ccfd3c89 | ||
|
|
24f2d3c94d | ||
|
|
a7113bb163 | ||
|
|
ec5ac0c517 | ||
|
|
fdec3355a1 | ||
|
|
16e9ba2f19 | ||
|
|
939eb3996a | ||
|
|
2d8d0f7ad6 | ||
|
|
3ee93d4c56 | ||
|
|
0b2afda30e | ||
|
|
d11807ef7c | ||
|
|
3e725a66e3 | ||
|
|
24423b8d2a | ||
|
|
c89fbde48d | ||
|
|
b65e52d56b | ||
|
|
6c2db76b92 | ||
|
|
094ad862e7 | ||
|
|
e81b1a6b9d | ||
|
|
a6ca96fa08 | ||
|
|
a449829d5f | ||
|
|
d14427ad9e | ||
|
|
ac1f4b4d52 | ||
|
|
ddf5e53aa4 | ||
|
|
a2a12afb34 | ||
|
|
7606430188 | ||
|
|
629806e896 | ||
|
|
50fbf14e1e | ||
|
|
4a67bbdc71 | ||
|
|
dba9c4451a | ||
|
|
fea499e220 | ||
|
|
9d056d609f | ||
|
|
9a839dd8ba | ||
|
|
32e2c9c48e | ||
|
|
83d7886a0a | ||
|
|
316abba0ac | ||
|
|
8001c58c36 | ||
|
|
3b0d7fb26e | ||
|
|
5d3c5002e0 | ||
|
|
9082285cc8 | ||
|
|
d1762b2bac | ||
|
|
46ce28b149 | ||
|
|
faadeb75e0 | ||
|
|
338e559e53 | ||
|
|
3db673410f | ||
|
|
77f098614f | ||
|
|
9589846e9a | ||
|
|
e2dda3c1b1 | ||
|
|
d9ab18282f | ||
|
|
14c2ff9ab8 | ||
|
|
77e6f400b5 | ||
|
|
b95ff8ba3a | ||
|
|
4bf8738e5c | ||
|
|
3f060f4512 | ||
|
|
c4c35a9ad0 | ||
|
|
c9a935835f | ||
|
|
015002ebd9 | ||
|
|
9ca10b2413 | ||
|
|
2d5c2c2b6e | ||
|
|
e3ab739a56 | ||
|
|
c784d06029 | ||
|
|
58803f4845 | ||
|
|
f159fe61f9 | ||
|
|
c43b464d6c | ||
|
|
34c684a4f5 | ||
|
|
e256c88e4c | ||
|
|
518b4a6b85 | ||
|
|
ee8532c70d | ||
|
|
c58da1ab9c | ||
|
|
68b3026264 | ||
|
|
810c5a40f7 | ||
|
|
18dead4d86 | ||
|
|
2082357d3a | ||
|
|
68719da828 | ||
|
|
31fd1ec82e | ||
|
|
c3845097ee | ||
|
|
d76934ee9d | ||
|
|
5f737cb7bf | ||
|
|
50ede1ba97 | ||
|
|
930dad31de | ||
|
|
88b91161e0 | ||
|
|
8150957a01 | ||
|
|
fee97efafb | ||
|
|
80856cf7ac | ||
|
|
c929781d08 | ||
|
|
313aa2a1d3 | ||
|
|
021ce3d97c | ||
|
|
4ea0de3ef2 | ||
|
|
6b5c484fbf | ||
|
|
b165332486 | ||
|
|
f598d3bc38 | ||
|
|
4daa9e4eb9 | ||
|
|
122f9c1d5d | ||
|
|
2da5cda4b3 | ||
|
|
5263a65dcf | ||
|
|
1255d3d1b2 | ||
|
|
8def16a811 | ||
|
|
7d1683b607 | ||
|
|
43a6d66e3c | ||
|
|
8b33f9a766 | ||
|
|
df721eb253 | ||
|
|
0547517a99 | ||
|
|
54e85007a2 | ||
|
|
6e53f3b698 | ||
|
|
1aaf742c13 | ||
|
|
3754e20049 | ||
|
|
b4c031d1f0 | ||
|
|
3b8d495c43 | ||
|
|
61c2187c14 | ||
|
|
192e4a4af8 | ||
|
|
749f0290e9 | ||
|
|
7013ff9aeb | ||
|
|
3ce0dc56e4 | ||
|
|
8e47bf4946 | ||
|
|
098f353bf1 | ||
|
|
859b4da3dc | ||
|
|
80f30999fa | ||
|
|
3fdd322a5c | ||
|
|
c40f42e57e | ||
|
|
18e87980a4 | ||
|
|
44efbaabe6 | ||
|
|
a02f3a6856 | ||
|
|
9573a053d6 | ||
|
|
9a5d691619 | ||
|
|
495afeffb1 | ||
|
|
4acc1defe2 | ||
|
|
58b4eb9089 | ||
|
|
ca4b4c6d35 | ||
|
|
9a90609428 | ||
|
|
3e691149f5 | ||
|
|
8adebc9489 | ||
|
|
50daf84ec0 | ||
|
|
d337574665 | ||
|
|
39d98f1eac | ||
|
|
cbea2ba91b | ||
|
|
f6e37672b8 | ||
|
|
55bd9a06b1 | ||
|
|
6a9f7e6afc | ||
|
|
f2158d3e66 | ||
|
|
3bc189cfc8 | ||
|
|
d0c5ff7f87 | ||
|
|
dfb544fed8 | ||
|
|
ae893ca051 | ||
|
|
538467b86d | ||
|
|
46de43d4ad | ||
|
|
3808e2683e | ||
|
|
52342a76c1 | ||
|
|
e9e17baf5e | ||
|
|
2e4c6c5fd1 | ||
|
|
f50812a9ce | ||
|
|
861edff49a | ||
|
|
5e08357f0e | ||
|
|
411ee36c90 | ||
|
|
44a98910ba | ||
|
|
8a335d8a6e | ||
|
|
3900543970 | ||
|
|
2e34c7598a | ||
|
|
7edd3c6cf3 | ||
|
|
ddf0075938 | ||
|
|
1b26f4908e | ||
|
|
2d8fab534a | ||
|
|
c3fffefbc1 | ||
|
|
eaa2593a4b | ||
|
|
7e583e3f48 | ||
|
|
2ad4891617 | ||
|
|
8990e24c0f | ||
|
|
88b80234c7 | ||
|
|
f6e37c57fe | ||
|
|
562295be90 | ||
|
|
04844420dc | ||
|
|
9c352ac555 | ||
|
|
5a3184359d | ||
|
|
24f03b04eb | ||
|
|
610c75fa90 | ||
|
|
dbc4774e8e | ||
|
|
73e8ed72cd | ||
|
|
e694585561 | ||
|
|
0b1af2b8ef | ||
|
|
668ac4000a | ||
|
|
767039c492 | ||
|
|
b1c6d4864f | ||
|
|
fc3453932a | ||
|
|
98c49b8001 | ||
|
|
27bd39f5ac | ||
|
|
9f84f29e12 | ||
|
|
6311df774d | ||
|
|
9424784fad | ||
|
|
15fb751f65 | ||
|
|
3534fb1128 | ||
|
|
046844083f | ||
|
|
7ff995631e | ||
|
|
8675fce04a | ||
|
|
7fd629ebf3 | ||
|
|
2fe20b888e | ||
|
|
2696079601 | ||
|
|
ec15872a1f | ||
|
|
6cc6524997 | ||
|
|
4c711159df | ||
|
|
7e173108fd | ||
|
|
17925c4c93 | ||
|
|
90081f4e61 | ||
|
|
f488debf96 | ||
|
|
678626ef82 | ||
|
|
0bc6711a95 | ||
|
|
a925fbe59c | ||
|
|
dc1b698847 | ||
|
|
3c761b708b | ||
|
|
3bfdd78434 | ||
|
|
5f12fb6a5f | ||
|
|
f9b831eb1a | ||
|
|
da07bc9637 | ||
|
|
badf7e1c60 | ||
|
|
1f35b65725 | ||
|
|
3b382624e5 | ||
|
|
5f3a4cb0f1 | ||
|
|
0371b047f9 | ||
|
|
3f593d9c3b | ||
|
|
1fe32e9cd5 | ||
|
|
58a8f8326d | ||
|
|
30d13b7f77 | ||
|
|
124299e185 | ||
|
|
5989d41a86 | ||
|
|
c97102bc9d | ||
|
|
1d2a1ba31a | ||
|
|
159c2366c7 | ||
|
|
e639f3d375 | ||
|
|
23f870d8f2 | ||
|
|
173193df74 | ||
|
|
d1d21ead1f | ||
|
|
0709b2e447 | ||
|
|
50d967221e | ||
|
|
15a0aedd25 | ||
|
|
8052039c6f | ||
|
|
8afe72d371 | ||
|
|
0682ebf103 | ||
|
|
a93bd9f7fa | ||
|
|
6f76080c6b | ||
|
|
139e61efaa | ||
|
|
b50a128777 | ||
|
|
93218a343a | ||
|
|
5a0568495b | ||
|
|
3ec137c4ad | ||
|
|
d4eecf3b56 | ||
|
|
3a6738475a | ||
|
|
468d42088a | ||
|
|
4a4db4be84 | ||
|
|
08d267fc61 | ||
|
|
f2d4fbfdb2 | ||
|
|
c4a85f5fad | ||
|
|
c3f4d2914f | ||
|
|
c0990644e8 | ||
|
|
b1f30b703f | ||
|
|
62899565e6 | ||
|
|
ddb435a44b | ||
|
|
d699a97928 | ||
|
|
06660ca25e | ||
|
|
8ed3a1f36a | ||
|
|
8948fc2935 | ||
|
|
b4397f7f2e | ||
|
|
cb74573fc2 | ||
|
|
dbdd3e22fc | ||
|
|
4160a8e2f8 | ||
|
|
afb07b170d | ||
|
|
ebcf98ac2d | ||
|
|
54c41c4994 | ||
|
|
8d989777f8 | ||
|
|
a0c1c1a997 | ||
|
|
bed493e8dd | ||
|
|
add588fdea | ||
|
|
a61d420224 | ||
|
|
eb78c512ee | ||
|
|
ee5851bb1c | ||
|
|
c6bce81747 | ||
|
|
e0bb4e407a | ||
|
|
aad2257387 | ||
|
|
831dba3ef6 | ||
|
|
eff15c72a5 | ||
|
|
edb50e5411 | ||
|
|
7c37a69d25 | ||
|
|
be3499ee56 | ||
|
|
698c4147fc | ||
|
|
b5fae4b356 | ||
|
|
0888ee12a5 | ||
|
|
7e8635b24b | ||
|
|
8ba1abafec | ||
|
|
14d26ba434 | ||
|
|
3a46ec9fab | ||
|
|
ada90eab57 | ||
|
|
9b2634a1e5 | ||
|
|
4cade5685c | ||
|
|
62873d2d3b | ||
|
|
d119807adb | ||
|
|
10e8bd9fa3 | ||
|
|
5ce428ca59 | ||
|
|
2f769e75c4 | ||
|
|
a646fe016d | ||
|
|
f45a52d621 | ||
|
|
576ff3694e | ||
|
|
4cb866cee9 | ||
|
|
43ddff6ca9 | ||
|
|
bf4b39065b | ||
|
|
4b9f3de814 | ||
|
|
903d39f968 | ||
|
|
e6c8fa3fad | ||
|
|
9952c58a4a | ||
|
|
be8bb5d2a7 | ||
|
|
66f0d9e649 | ||
|
|
7b355b279d | ||
|
|
0f2f78c5b8 | ||
|
|
eb57425315 | ||
|
|
489ab23e89 | ||
|
|
4c55eb0cc0 | ||
|
|
389785265b | ||
|
|
a6717990a8 | ||
|
|
f4b8efce20 | ||
|
|
8cdb7174c4 | ||
|
|
4625a3cf43 | ||
|
|
55245e290a | ||
|
|
322fa5778a | ||
|
|
5eb3c8cbef | ||
|
|
5d827566f6 | ||
|
|
6058ac0716 | ||
|
|
4d82ed9324 | ||
|
|
026dc5f750 | ||
|
|
08e1bef5a9 | ||
|
|
b5f6cd70de | ||
|
|
58ab7f7fa8 | ||
|
|
c46c41c740 | ||
|
|
7a84555db8 | ||
|
|
0b0f0a1b9e | ||
|
|
0fffabfbe3 | ||
|
|
6b3f703ba9 | ||
|
|
50ad648ce4 | ||
|
|
2dbcd2b07a | ||
|
|
752a15953a | ||
|
|
23d365f67b | ||
|
|
f77d1d9929 | ||
|
|
4204c807bc | ||
|
|
e6a6ab967b | ||
|
|
52e4d60e7c | ||
|
|
38919add61 | ||
|
|
a7244184bd | ||
|
|
86bda61aa7 | ||
|
|
10e5829b8e | ||
|
|
4c4c27a93e | ||
|
|
72ac1fc0d1 | ||
|
|
5ca928e436 | ||
|
|
5d013f4a18 | ||
|
|
7cbd88ac81 | ||
|
|
24af276542 | ||
|
|
8cb7195c3e | ||
|
|
c8e178bf71 | ||
|
|
529a953e30 | ||
|
|
02b657edff | ||
|
|
ddf6a2f105 | ||
|
|
40a4762cac | ||
|
|
2323c16316 | ||
|
|
bac4b33ef8 | ||
|
|
1baa706d37 | ||
|
|
9e3331dab4 | ||
|
|
61cded5b34 | ||
|
|
060cae6270 | ||
|
|
229d8517c0 | ||
|
|
cc9381f578 | ||
|
|
5f2221155c | ||
|
|
7da8dd6b7a | ||
|
|
2b019b84b0 | ||
|
|
741c559df1 | ||
|
|
3a66a68edb | ||
|
|
af1c0d78e8 | ||
|
|
80d56ac94e | ||
|
|
41881f9d05 | ||
|
|
1ca70521a4 | ||
|
|
ee0d87d712 | ||
|
|
c21aa34221 | ||
|
|
1ad79067e4 | ||
|
|
810871d2df | ||
|
|
6404939156 | ||
|
|
e052446713 | ||
|
|
5e16851c79 | ||
|
|
5883020784 | ||
|
|
726c1c850c | ||
|
|
374580a85d | ||
|
|
4293cb7253 | ||
|
|
825fcf7f35 | ||
|
|
85e2a3e71b | ||
|
|
3288d834a9 | ||
|
|
209dc2252a | ||
|
|
df0d0552b2 | ||
|
|
05f33c84e4 | ||
|
|
6ecc618d83 | ||
|
|
46be946672 | ||
|
|
2a075ead92 | ||
|
|
8bd09628ef | ||
|
|
b69819e4b2 | ||
|
|
2ca0cb0fbf | ||
|
|
61d764d0fd | ||
|
|
8b007ada61 | ||
|
|
b0b265b8e5 | ||
|
|
cab7033d5b | ||
|
|
1be9900733 | ||
|
|
3c2a9cd4f8 | ||
|
|
38037feab7 | ||
|
|
99d44cfc5d | ||
|
|
2af0dcd273 | ||
|
|
d9f430fda8 | ||
|
|
0918dfd117 | ||
|
|
a64c7c97ad | ||
|
|
95c0cc741d | ||
|
|
8b0342067c | ||
|
|
1d48dba0b7 | ||
|
|
e8622fdd64 | ||
|
|
7bf607bb6b | ||
|
|
a80f9a0b29 | ||
|
|
940c323251 | ||
|
|
babe8bcf47 | ||
|
|
5ab7d2dd72 | ||
|
|
401502579b | ||
|
|
65d3bfe84d | ||
|
|
cfd5d31338 | ||
|
|
9d9ee7b71d | ||
|
|
5a1a60742e | ||
|
|
c5b2415daf | ||
|
|
a0bb2f8480 | ||
|
|
f4a06cae18 | ||
|
|
21d690a210 | ||
|
|
5be7e007ce | ||
|
|
f42bd8666e | ||
|
|
7a057daa0c | ||
|
|
8e0aa1d9a6 | ||
|
|
a13b822543 | ||
|
|
40319081e0 | ||
|
|
9fd3b968fc | ||
|
|
24a7973955 | ||
|
|
a57c680cc8 | ||
|
|
11be067895 | ||
|
|
3a1213435f | ||
|
|
56f7df028b | ||
|
|
87b2795f2b | ||
|
|
c36bc5320d | ||
|
|
7eefb58ff7 | ||
|
|
6a247501e1 | ||
|
|
0b5a0d1228 | ||
|
|
8686eadcf4 | ||
|
|
aa56e12040 | ||
|
|
adcbf0eef0 | ||
|
|
10f7f8bdea | ||
|
|
90e422c113 | ||
|
|
dfa1c1ad6f | ||
|
|
bd792757e0 | ||
|
|
40969402e8 | ||
|
|
fee9a449ba | ||
|
|
6de8e4471c | ||
|
|
f0f64f8ed1 | ||
|
|
6ae68465cf | ||
|
|
3c1f19e85a | ||
|
|
2a8a6b8fe0 | ||
|
|
7d9458fdd1 | ||
|
|
43b676a6e2 | ||
|
|
606d9c4d3f | ||
|
|
c46134c03a | ||
|
|
0abb2a960c | ||
|
|
3631ab7df2 | ||
|
|
b8b3ab06a7 | ||
|
|
680f8194f9 | ||
|
|
3d33428a4e | ||
|
|
7524e57262 | ||
|
|
1195e66a8a | ||
|
|
b55ebba4ed | ||
|
|
8dd0dc11ee | ||
|
|
8eacb008b3 | ||
|
|
9c16ab6999 | ||
|
|
9e0ab1f518 | ||
|
|
47bf58eae9 | ||
|
|
8a48b74cb4 | ||
|
|
570c93ec2c | ||
|
|
85026d5780 | ||
|
|
bb2e6eb605 | ||
|
|
1885a82cce | ||
|
|
602a37b231 | ||
|
|
65f482e483 | ||
|
|
6ee44e451c | ||
|
|
8d1a1564bf | ||
|
|
4af9248eba | ||
|
|
93f7d7d927 | ||
|
|
19a7d43b31 | ||
|
|
9afefef032 | ||
|
|
8c3462caf2 | ||
|
|
340f3c85c9 | ||
|
|
ff04098319 | ||
|
|
f8563369bc | ||
|
|
4152769182 | ||
|
|
057eafef7f | ||
|
|
c7e93720ff | ||
|
|
587ab62583 | ||
|
|
a894360402 | ||
|
|
756d4ff0ff | ||
|
|
ec6adaa376 | ||
|
|
dee2c3e23b | ||
|
|
fc52f89ddc | ||
|
|
fdbafa63ba | ||
|
|
e987ff46c2 | ||
|
|
b1ecc58114 | ||
|
|
39d5ab8e83 | ||
|
|
4b1f9afe1e | ||
|
|
c005463111 | ||
|
|
50384f4e86 | ||
|
|
73e8867400 | ||
|
|
0545da67ff | ||
|
|
24e690b995 | ||
|
|
89200a0ab8 | ||
|
|
e521833cec | ||
|
|
737d941941 | ||
|
|
9830e29945 | ||
|
|
6418b00ac3 | ||
|
|
cfe9c28a10 | ||
|
|
aa6e4c1865 | ||
|
|
f48c16d162 | ||
|
|
62ae871d51 | ||
|
|
906702de77 | ||
|
|
db27a91a58 | ||
|
|
b4a003c5a8 | ||
|
|
b48054fa2c | ||
|
|
d8f05ac8ae | ||
|
|
8843ace757 | ||
|
|
7d93d5917e | ||
|
|
8846a135bc | ||
|
|
7207e7fdd6 | ||
|
|
a8e6128034 | ||
|
|
f72bb1e1ed | ||
|
|
cf5d28ea4a | ||
|
|
bd14f33c31 | ||
|
|
73561c1861 | ||
|
|
43d50ca471 | ||
|
|
8ea0b395b2 | ||
|
|
1d6d22727c | ||
|
|
b3c10f5bdf | ||
|
|
821d1b6964 | ||
|
|
6067478e00 | ||
|
|
ebe737e995 | ||
|
|
e2a9509896 | ||
|
|
9104f25c09 | ||
|
|
713c911264 | ||
|
|
c1d85ef825 | ||
|
|
43eaf29df5 | ||
|
|
cc1f07ef39 | ||
|
|
c35a4dadee | ||
|
|
75ed37a11a | ||
|
|
8043829815 | ||
|
|
deb70c7a4f | ||
|
|
0708110ec1 | ||
|
|
dae637925b | ||
|
|
a7b126cb48 | ||
|
|
d66774d3f3 | ||
|
|
a2bddec8c7 | ||
|
|
b95fbd76ec | ||
|
|
aea2b40dda | ||
|
|
fa3ff40218 | ||
|
|
bfd410def2 | ||
|
|
721bd4d337 | ||
|
|
7296d3d90d | ||
|
|
a7cddefcc9 | ||
|
|
de0985c135 | ||
|
|
986f230ba7 | ||
|
|
87c2f2f9dc | ||
|
|
63f84b255f | ||
|
|
6a7675f2bf | ||
|
|
25ce9938c6 | ||
|
|
8ba3a08f40 | ||
|
|
23dbe48324 | ||
|
|
ccaa458739 | ||
|
|
f95b07f83b | ||
|
|
162b99e6b8 | ||
|
|
3c8afc1bb0 | ||
|
|
f15437c713 | ||
|
|
d9be1c4841 | ||
|
|
5f3aa6eee5 | ||
|
|
1089af9077 | ||
|
|
2fbeb67dd9 | ||
|
|
c4ad239171 | ||
|
|
8b976ab3c1 | ||
|
|
1499ccf3fb | ||
|
|
1a1fa06aa3 | ||
|
|
e3e764ecae | ||
|
|
617195d71e | ||
|
|
8cfb1cbee4 | ||
|
|
be3eb7e3ed | ||
|
|
1c3b72de09 | ||
|
|
0600734942 | ||
|
|
e6dc8c2cb3 | ||
|
|
9d0798dbfb | ||
|
|
581356a0c3 | ||
|
|
e2acffe55b | ||
|
|
998966e6e6 | ||
|
|
42d454ac27 | ||
|
|
ad6062b9a8 | ||
|
|
0b2bf17cd7 | ||
|
|
292b850e07 | ||
|
|
e20d566f96 | ||
|
|
776ff3e3f1 | ||
|
|
1539aca3d8 | ||
|
|
3244314310 | ||
|
|
9d799ffc9f | ||
|
|
9486bc9b21 | ||
|
|
c043ef95a3 | ||
|
|
3728e39655 | ||
|
|
215f129a2a | ||
|
|
af9a71f84c | ||
|
|
bb4ec913c6 | ||
|
|
38e5815ba7 | ||
|
|
cf2cb54e2a | ||
|
|
b7269e9963 | ||
|
|
94ebccc6ed | ||
|
|
09dabc7b4c | ||
|
|
4e7e74d6f0 | ||
|
|
dca6cb4826 | ||
|
|
6aa62d03ff | ||
|
|
3a89491507 | ||
|
|
492d895632 | ||
|
|
899670bc93 | ||
|
|
9cc9bb9de2 | ||
|
|
c25974de68 | ||
|
|
16e7c72e99 | ||
|
|
011febcb91 | ||
|
|
a60d815e92 | ||
|
|
e93c946198 | ||
|
|
7b4e1ea36d | ||
|
|
726b88e039 | ||
|
|
078e4bab49 | ||
|
|
d67d5dec77 | ||
|
|
10a9918d20 | ||
|
|
1aa76a54c2 | ||
|
|
437067b5e0 | ||
|
|
67b48fcb3a | ||
|
|
ea403b4f5a | ||
|
|
b1459c6cdc | ||
|
|
953bca02fc | ||
|
|
c8fa51c81a | ||
|
|
365e153ae7 | ||
|
|
822204ff34 | ||
|
|
9a261a7864 | ||
|
|
5f7a168d0b | ||
|
|
aa71116928 | ||
|
|
35075bb0cd | ||
|
|
05d81dbc23 | ||
|
|
00235c15bf | ||
|
|
3c5351af93 | ||
|
|
12b9fc1750 | ||
|
|
3d2283f10f | ||
|
|
192bb9c57e | ||
|
|
157dae0d2f | ||
|
|
00c814dc58 | ||
|
|
6d6fb45a3b | ||
|
|
f954be60a4 | ||
|
|
897f20bff8 | ||
|
|
c7c5b07389 | ||
|
|
d0b6cd1f38 | ||
|
|
1ad05d7783 | ||
|
|
1dc7bff6e6 | ||
|
|
18d684cd16 | ||
|
|
8f594e17d7 | ||
|
|
77269a8bac | ||
|
|
cd90193deb | ||
|
|
35fca6364f | ||
|
|
cd71af8c5b | ||
|
|
a7f26d3769 | ||
|
|
3fb7f8919a | ||
|
|
abc4ed4d9f | ||
|
|
dfa82699b9 | ||
|
|
b8beeaceb3 | ||
|
|
d9a79062b8 | ||
|
|
a22b79c416 | ||
|
|
b1f2e94a2f | ||
|
|
2ebd386b5b | ||
|
|
a8cd9b710e | ||
|
|
12d2cf7464 | ||
|
|
7e423cd9ce | ||
|
|
fa3218cb72 | ||
|
|
0395e7c776 | ||
|
|
a575cf76c2 | ||
|
|
93923177ee | ||
|
|
51858114b2 | ||
|
|
1513c92cbc | ||
|
|
7824586f76 | ||
|
|
158dda9f23 | ||
|
|
577bc67fa7 | ||
|
|
1a698e5ef5 | ||
|
|
a0885e33dc | ||
|
|
2ee6b4f581 | ||
|
|
709dda5069 | ||
|
|
f0f8e527b4 | ||
|
|
49474f01ca | ||
|
|
9e8b309a90 | ||
|
|
f7547d7cf5 | ||
|
|
bb02ab2cba | ||
|
|
fb1432e14e | ||
|
|
34d38cb0fb | ||
|
|
192a9d54d1 | ||
|
|
40574bd138 | ||
|
|
064fd5560f | ||
|
|
073d1b6f6f | ||
|
|
45f757dc60 | ||
|
|
939b4a0fe5 | ||
|
|
0fceb8e0a3 | ||
|
|
34662da806 | ||
|
|
7634eb1440 | ||
|
|
08cd5f89ff | ||
|
|
47f184a944 | ||
|
|
920f7fd049 | ||
|
|
a93ab6c2f5 | ||
|
|
a375f33eb4 | ||
|
|
1e7b84f7fd | ||
|
|
43cbd9c670 | ||
|
|
9f36eada14 | ||
|
|
30cdfa64b8 | ||
|
|
81e9544f7d | ||
|
|
3cb2045ebb | ||
|
|
652440fd8c | ||
|
|
6dc6fde641 | ||
|
|
66fdcc4ef7 | ||
|
|
cb35a374ac | ||
|
|
68210d9252 | ||
|
|
23b8e4582e | ||
|
|
13511ea72a | ||
|
|
3a50344cb9 | ||
|
|
9f27ad448a | ||
|
|
be6341e6f0 | ||
|
|
f7d3e8bf47 | ||
|
|
e541cdb755 | ||
|
|
74ed1b09ee | ||
|
|
9987111fa4 | ||
|
|
d0414d7c78 | ||
|
|
8f6a7ba79a | ||
|
|
ef8d8f306e | ||
|
|
1de01684e0 | ||
|
|
cd15b7a66a | ||
|
|
6b88258d81 | ||
|
|
8643d35ebf | ||
|
|
b7d7ace9bf | ||
|
|
1cfe1c3715 | ||
|
|
63b02b327b | ||
|
|
dbb13ef7ad | ||
|
|
6aec6c939a | ||
|
|
90ca14afff | ||
|
|
c7328293a0 | ||
|
|
cfaf812c62 | ||
|
|
47fb6e29c6 | ||
|
|
0c6c69e02e | ||
|
|
4b6cfdc68a | ||
|
|
309cfee52b | ||
|
|
9b3c085cf3 | ||
|
|
382ca876ca | ||
|
|
93acfb015c | ||
|
|
070ed08caa | ||
|
|
5d44161e77 | ||
|
|
6492fda483 | ||
|
|
447fd8b2fb | ||
|
|
2061211894 | ||
|
|
5030d5a5b4 | ||
|
|
4928944167 | ||
|
|
6957cf39d1 | ||
|
|
12cf57dc5a | ||
|
|
26c2ebc843 | ||
|
|
59b08a5bc3 | ||
|
|
8ac3518725 | ||
|
|
f4a4cc5812 | ||
|
|
b93783ede0 | ||
|
|
ef4c583b3f | ||
|
|
6d049c16d1 | ||
|
|
4ecf3c5797 | ||
|
|
4a63c000ca | ||
|
|
779143f4b6 | ||
|
|
ccd3b5d2d0 | ||
|
|
4d7148cdd1 | ||
|
|
98a051b161 | ||
|
|
14886a27f4 | ||
|
|
81b9918f6b | ||
|
|
9819cf6133 | ||
|
|
c5e584fa5a | ||
|
|
c56b488c8d | ||
|
|
cd50a0b0c8 | ||
|
|
e593927095 | ||
|
|
12251cf7c2 | ||
|
|
7c85cd906a | ||
|
|
32c4b1ad1c | ||
|
|
5cf3bb7c98 | ||
|
|
3f8a6525b3 | ||
|
|
25a039942c | ||
|
|
400537d711 | ||
|
|
792c9b9808 |
1133 changed files with 153534 additions and 10099 deletions
2
.github/FUNDING.yml
vendored
Normal file
2
.github/FUNDING.yml
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
github: [trapexit]
|
||||||
|
custom: ['https://github.com/trapexit/support']
|
||||||
77
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
77
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: For the reporting of behavior not as described
|
||||||
|
title: ''
|
||||||
|
labels: bug, investigating
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
See also https://trapexit.github.io/mergerfs/latest/support
|
||||||
|
|
||||||
|
**Describe the bug**
|
||||||
|
|
||||||
|
A clear and concise description of the unexpected behavior.
|
||||||
|
|
||||||
|
**Please be sure to use latest release of mergerfs to ensure the issue
|
||||||
|
still exists. Not your distro's latest but the latest official
|
||||||
|
release. Support will NOT be provided for old versions.**
|
||||||
|
|
||||||
|
The `master` branch is **not** to be considered production ready. Feel
|
||||||
|
free to file bug reports but do so indicating clearly that you are
|
||||||
|
testing unreleased code.
|
||||||
|
|
||||||
|
|
||||||
|
**To Reproduce**
|
||||||
|
|
||||||
|
Provide steps to reproduce the behavior. List **all** steps to
|
||||||
|
reproduce. **All** settings. The version of all software involved.
|
||||||
|
|
||||||
|
Please simplify the reproduction as much as possible.
|
||||||
|
* Unless it is dependenat on multiple branches, use a single branch
|
||||||
|
* Reproduce with standard tooling if possible
|
||||||
|
(touch,truncate,rm,rmdir,ln,etc.) Having to install 3rd party
|
||||||
|
software will make debugging more difficult.
|
||||||
|
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
|
||||||
|
A clear and concise description of the expected behavior.
|
||||||
|
|
||||||
|
|
||||||
|
**Workarounds already tested**
|
||||||
|
|
||||||
|
Please list all workarounds attempted and why they were ruled out as
|
||||||
|
options.
|
||||||
|
|
||||||
|
|
||||||
|
**System information:**
|
||||||
|
|
||||||
|
* Attach output from
|
||||||
|
[mergerfs.collect-info](https://trapexit.github.io/mergerfs/latest/tooling/#mergerfscollect-info)
|
||||||
|
tool.
|
||||||
|
* Alternatively:
|
||||||
|
* OS: `lsb_release -a`
|
||||||
|
* kernel version: `uname -a`
|
||||||
|
* mergerfs version: `mergerfs --version`
|
||||||
|
* mergerfs settings / arguments: from fstab, systemd unit, command
|
||||||
|
line, OMV plugin, etc.
|
||||||
|
* List of drives, filesystems, & sizes:
|
||||||
|
* `df -h`
|
||||||
|
* `lsblk -o NAME,FSTYPE,FSSIZE,SIZE,MOUNTPOINTS,RM,RO,ROTA`
|
||||||
|
* All information about the relevant paths and files: permissions,
|
||||||
|
ownership, etc.
|
||||||
|
* All information about the application making the requests:
|
||||||
|
version, uid/gid
|
||||||
|
* Is mergerfs running within a container or used with container
|
||||||
|
technologies?
|
||||||
|
* Are the client apps using mergerfs running in a container?
|
||||||
|
* A strace of the application having a problem:
|
||||||
|
* `strace -fvTtt -s 256 -o /tmp/app.strace.txt <cmd>`
|
||||||
|
* `strace -fvTtt -s 256 -o /tmp/app.strace.txt -p <appPID>`
|
||||||
|
* strace of mergerfs while app tried to do it's thing:
|
||||||
|
* `strace -fvTtt -s 256 -p <mergerfsPID> -o /tmp/mergerfs.strace.txt`
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
|
||||||
|
Add any other context about the problem here.
|
||||||
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
name: Feature request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
title: ''
|
||||||
|
labels: feature, investigating
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
A clear and concise description of what the problem is.
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context or screenshots about the feature request here.
|
||||||
10
.github/ISSUE_TEMPLATE/question.md
vendored
Normal file
10
.github/ISSUE_TEMPLATE/question.md
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
name: Question
|
||||||
|
about: When you're looking for information or general support
|
||||||
|
title: ''
|
||||||
|
labels: investigating, question
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
For general questions and support please use [GitHub Discussions](https://github.com/trapexit/mergerfs/discussions) or [Discord](https://discord.gg/MpAr69V).
|
||||||
10
.gitignore
vendored
10
.gitignore
vendored
|
|
@ -14,12 +14,20 @@
|
||||||
|
|
||||||
# build artifacts
|
# build artifacts
|
||||||
mergerfs
|
mergerfs
|
||||||
obj/
|
build/
|
||||||
src/version.hpp
|
src/version.hpp
|
||||||
|
VERSION
|
||||||
|
|
||||||
# Debian files
|
# Debian files
|
||||||
debian/files
|
debian/files
|
||||||
debian/changelog
|
debian/changelog
|
||||||
|
debian/debhelper-build-stamp
|
||||||
|
debian/mergerfs.debhelper.log
|
||||||
|
debian/mergerfs.substvars
|
||||||
|
|
||||||
# RPM files
|
# RPM files
|
||||||
rpmbuild/
|
rpmbuild/
|
||||||
|
|
||||||
|
# mkdocs files
|
||||||
|
mkdocs/venv
|
||||||
|
__pycache__/
|
||||||
|
|
|
||||||
20
DEPENDENCIES
Normal file
20
DEPENDENCIES
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
## Libraries
|
||||||
|
|
||||||
|
### included in repo
|
||||||
|
|
||||||
|
* libfuse: https://github.com/libfuse/libfuse (heavily modified fork of v2.x)
|
||||||
|
* rapidhash: https://github.com/Nicoshev/rapidhash
|
||||||
|
* fmt: https://github.com/fmtlib/fmt
|
||||||
|
* concurrentqueue: https://github.com/cameron314/concurrentqueue
|
||||||
|
* scope_guard: https://github.com/Neargye/scope_guard
|
||||||
|
* subprocess: https://github.com/arun11299/cpp-subprocess
|
||||||
|
* CLI11: https://github.com/CLIUtils/CLI11
|
||||||
|
* string-lite: https://github.com/martinmoene/string-lite
|
||||||
|
* boost
|
||||||
|
* download boost
|
||||||
|
* ./bootstrap.sh
|
||||||
|
* ./b2 tools/bcp
|
||||||
|
* ./dist/bin/bcp unordered/concurrent_flat_map.hpp <target_dir>
|
||||||
|
* local patch: keep unordered dummy-group storage writable with C++20
|
||||||
|
`constinit`; ARMv5 atomic loads can write back to memory (#1695).
|
||||||
|
Preserve this change when updating Boost.
|
||||||
4
LICENSE
4
LICENSE
|
|
@ -1,5 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link>
|
ISC License
|
||||||
|
|
||||||
|
Copyright (c) 2026, Antonio SJ Musumeci <trapexit@spawn.link>
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|
|
||||||
453
Makefile
453
Makefile
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link>
|
# Copyright (c) 2025, Antonio SJ Musumeci <trapexit@spawn.link>
|
||||||
#
|
#
|
||||||
# Permission to use, copy, modify, and/or distribute this software for any
|
# Permission to use, copy, modify, and/or distribute this software for any
|
||||||
# purpose with or without fee is hereby granted, provided that the above
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|
@ -12,153 +12,279 @@
|
||||||
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
$(info mergerfs MAKEFLAGS: $(MAKEFLAGS))
|
||||||
|
|
||||||
PKGCONFIG = $(shell which pkg-config)
|
ifeq ($(shell id -u),0)
|
||||||
GIT = $(shell which git)
|
FAKEROOT ?=
|
||||||
TAR = $(shell which tar)
|
|
||||||
MKDIR = $(shell which mkdir)
|
|
||||||
TOUCH = $(shell which touch)
|
|
||||||
CP = $(shell which cp)
|
|
||||||
RM = $(shell which rm)
|
|
||||||
LN = $(shell which ln)
|
|
||||||
FIND = $(shell which find)
|
|
||||||
INSTALL = $(shell which install)
|
|
||||||
MKTEMP = $(shell which mktemp)
|
|
||||||
STRIP = $(shell which strip)
|
|
||||||
PANDOC = $(shell which pandoc)
|
|
||||||
SED = $(shell which sed)
|
|
||||||
GZIP = $(shell which gzip)
|
|
||||||
RPMBUILD = $(shell which rpmbuild)
|
|
||||||
GIT2DEBCL = ./tools/git2debcl
|
|
||||||
CPPFIND = ./tools/cppfind
|
|
||||||
|
|
||||||
ifeq ($(PKGCONFIG),"")
|
|
||||||
$(error "pkg-config not installed")
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(PANDOC),"")
|
CP ?= cp
|
||||||
$(warning "pandoc does not appear available: manpage won't be buildable")
|
FAKEROOT ?= fakeroot
|
||||||
|
FIND ?= find
|
||||||
|
GIT ?= git
|
||||||
|
GIT2DEBCL ?= buildtools/git2debcl
|
||||||
|
INSTALL ?= install
|
||||||
|
LN ?= ln
|
||||||
|
MKDIR ?= mkdir
|
||||||
|
MKTEMP ?= mktemp
|
||||||
|
MV ?= mv
|
||||||
|
RM ?= rm
|
||||||
|
RPMBUILD ?= rpmbuild
|
||||||
|
RPMBUILD_FLAGS ?=
|
||||||
|
SED ?= sed
|
||||||
|
STRIP ?= strip
|
||||||
|
TAR ?= tar
|
||||||
|
TOUCH ?= touch
|
||||||
|
|
||||||
|
BUILDDIR := build
|
||||||
|
GITHUB_REPO ?= "https://github.com/trapexit/mergerfs"
|
||||||
|
|
||||||
|
DEFAULT_TARGET := debian:13.amd64
|
||||||
|
|
||||||
|
ifndef GIT_REPO
|
||||||
|
ifneq ($(shell $(GIT) --version 2> /dev/null),)
|
||||||
|
ifeq ($(shell test -e .git; echo $$?),0)
|
||||||
|
GIT_REPO = 1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
XATTR_AVAILABLE = $(shell test ! -e /usr/include/attr/xattr.h; echo $$?)
|
USE_XATTR ?= 1
|
||||||
|
|
||||||
FUSE_AVAILABLE = $(shell ! pkg-config --exists fuse; echo $$?)
|
ifdef SANITIZE
|
||||||
|
ifeq ($(SANITIZE),1)
|
||||||
ifeq ($(FUSE_AVAILABLE),0)
|
override SANITIZE := -fsanitize=address,undefined,leak
|
||||||
FUSE_AVAILABLE = $(shell test ! -e /usr/include/fuse.h; echo $$?)
|
else ifeq ($(filter -fsanitize=%,$(SANITIZE)),)
|
||||||
|
override SANITIZE := -fsanitize=$(SANITIZE)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(FUSE_AVAILABLE),0)
|
COMMON_OPT_FLAGS += \
|
||||||
$(error "FUSE development package doesn't appear available")
|
-fstack-protector-strong \
|
||||||
|
-Wextra \
|
||||||
|
-Wno-unused-parameter
|
||||||
|
|
||||||
|
DEBUG_OPT_FLAGS += \
|
||||||
|
-O0 \
|
||||||
|
-g3 \
|
||||||
|
-fno-omit-frame-pointer \
|
||||||
|
$(SANITIZE)
|
||||||
|
|
||||||
|
ifdef RELEASE
|
||||||
|
OPT_FLAGS := -O3 $(COMMON_OPT_FLAGS)
|
||||||
|
else
|
||||||
|
OPT_FLAGS ?= $(DEBUG_OPT_FLAGS) $(COMMON_OPT_FLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
FLAG_NOPATH = $(shell $(CPPFIND) "flag_nopath")
|
ifdef STATIC
|
||||||
FALLOCATE = $(shell $(CPPFIND) "fuse_fs_fallocate")
|
STATIC_FLAGS := -static
|
||||||
FLOCK = $(shell $(CPPFIND) "fuse_fs_flock")
|
else
|
||||||
READ_BUF = $(shell $(CPPFIND) "fuse_fs_read_buf")
|
STATIC_FLAGS :=
|
||||||
WRITE_BUF = $(shell $(CPPFIND) "fuse_fs_write_buf")
|
endif
|
||||||
|
|
||||||
UGID_USE_RWLOCK = 0
|
ifdef LTO
|
||||||
|
LTO_FLAGS := -flto
|
||||||
|
else
|
||||||
|
LTO_FLAGS :=
|
||||||
|
endif
|
||||||
|
|
||||||
OPTS = -O2
|
SRC := $(wildcard src/*.cpp)
|
||||||
SRC = $(wildcard src/*.cpp)
|
OBJS := $(SRC:src/%.cpp=build/.objs/%.cpp.o)
|
||||||
OBJ = $(SRC:src/%.cpp=obj/%.o)
|
DEPS := $(SRC:src/%.cpp=build/.objs/%.cpp.d)
|
||||||
DEPS = $(OBJ:obj/%.o=obj/%.d)
|
|
||||||
TARGET = mergerfs
|
TESTS := $(wildcard tests/*.cpp)
|
||||||
MANPAGE = $(TARGET).1
|
TESTS_OBJS := $(filter-out build/.objs/mergerfs.cpp.o,$(OBJS))
|
||||||
FUSE_CFLAGS = $(shell $(PKGCONFIG) --cflags fuse)
|
TESTS_OBJS += $(TESTS:tests/%.cpp=build/.test_objs/%.cpp.o)
|
||||||
CFLAGS = -g -Wall \
|
TESTS_DEPS := $(TESTS:tests/%.cpp=build/.test_objs/%.cpp.d)
|
||||||
$(OPTS) \
|
TESTS_DEPS += $(DEPS)
|
||||||
|
|
||||||
|
MANPAGE := mergerfs.1
|
||||||
|
CPPFLAGS ?=
|
||||||
|
override CPPFLAGS += \
|
||||||
|
-D_FILE_OFFSET_BITS=64 \
|
||||||
|
-DBOOST_UNORDERED_DISABLE_PARALLEL_ALGORITHMS
|
||||||
|
CFLAGS ?= \
|
||||||
|
$(OPT_FLAGS) \
|
||||||
|
-Wall \
|
||||||
-Wno-unused-result \
|
-Wno-unused-result \
|
||||||
$(FUSE_CFLAGS) \
|
-pipe
|
||||||
-DFUSE_USE_VERSION=26 \
|
override CFLAGS += \
|
||||||
-MMD \
|
-MMD \
|
||||||
-DFLAG_NOPATH=$(FLAG_NOPATH) \
|
-MP
|
||||||
-DFALLOCATE=$(FALLOCATE) \
|
CXXFLAGS ?= \
|
||||||
-DFLOCK=$(FLOCK) \
|
$(OPT_FLAGS) \
|
||||||
-DREAD_BUF=$(READ_BUF) \
|
$(STATIC_FLAGS) \
|
||||||
-DWRITE_BUF=$(WRITE_BUF) \
|
$(LTO_FLAGS) \
|
||||||
-DUGID_USE_RWLOCK=$(UGID_USE_RWLOCK)
|
-Wall \
|
||||||
LDFLAGS = $(shell $(PKGCONFIG) fuse --libs)
|
-Wpessimizing-move \
|
||||||
|
-Werror=pessimizing-move \
|
||||||
|
-Wredundant-move \
|
||||||
|
-Werror=redundant-move \
|
||||||
|
-Wno-unused-result \
|
||||||
|
-pipe
|
||||||
|
override CXXFLAGS += \
|
||||||
|
-std=c++20 \
|
||||||
|
-MMD \
|
||||||
|
-MP
|
||||||
|
override INC_FLAGS := \
|
||||||
|
-Isrc \
|
||||||
|
-Ivendored \
|
||||||
|
-Ivendored/libfuse/include
|
||||||
|
override MFS_FLAGS := \
|
||||||
|
-DUSE_XATTR=$(USE_XATTR)
|
||||||
|
override TESTS_FLAGS := \
|
||||||
|
-Isrc \
|
||||||
|
-Ivendored \
|
||||||
|
-Ivendored/acutest \
|
||||||
|
-DTESTS
|
||||||
|
|
||||||
PREFIX = /usr/local
|
LIBFUSE := vendored/libfuse/$(BUILDDIR)/libfuse.a
|
||||||
EXEC_PREFIX = $(PREFIX)
|
LDFLAGS ?=
|
||||||
DATAROOTDIR = $(PREFIX)/share
|
LDLIBS := \
|
||||||
DATADIR = $(DATAROOTDIR)
|
-lrt \
|
||||||
BINDIR = $(EXEC_PREFIX)/bin
|
-pthread
|
||||||
SBINDIR = $(EXEC_PREFIX)/sbin
|
override LDLIBS += \
|
||||||
MANDIR = $(DATAROOTDIR)/man
|
$(LIBFUSE)
|
||||||
MAN1DIR = $(MANDIR)/man1
|
ifeq ($(CXX),g++)
|
||||||
|
GCC_VERSION := $(shell $(CXX) -dumpversion | cut -f1 -d.)
|
||||||
INSTALLBINDIR = $(DESTDIR)$(BINDIR)
|
ifeq ($(shell test $(GCC_VERSION) -lt 9; echo $$?),0)
|
||||||
INSTALLSBINDIR = $(DESTDIR)$(SBINDIR)
|
override LDLIBS += -lstdc++fs
|
||||||
INSTALLMAN1DIR = $(DESTDIR)$(MAN1DIR)
|
endif
|
||||||
|
|
||||||
ifeq ($(XATTR_AVAILABLE),0)
|
|
||||||
$(warning "xattr not available: disabling")
|
|
||||||
CFLAGS += -DWITHOUT_XATTR
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: $(TARGET)
|
# https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
|
||||||
|
DESTDIR ?=
|
||||||
|
PREFIX ?= /usr/local
|
||||||
|
EXEC_PREFIX ?= $(PREFIX)
|
||||||
|
DATAROOTDIR ?= $(PREFIX)/share
|
||||||
|
DATADIR ?= $(DATAROOTDIR)
|
||||||
|
BINDIR ?= $(EXEC_PREFIX)/bin
|
||||||
|
SBINDIR ?= $(EXEC_PREFIX)/sbin
|
||||||
|
LIBDIR ?= $(EXEC_PREFIX)/lib
|
||||||
|
MANDIR ?= $(DATAROOTDIR)/man
|
||||||
|
MAN1DIR ?= $(MANDIR)/man1
|
||||||
|
|
||||||
|
INSTALLBINDIR ?= $(DESTDIR)$(BINDIR)
|
||||||
|
INSTALLSBINDIR ?= $(DESTDIR)$(SBINDIR)
|
||||||
|
INSTALLLIBDIR ?= $(DESTDIR)$(LIBDIR)/mergerfs
|
||||||
|
INSTALLMAN1DIR ?= $(DESTDIR)$(MAN1DIR)
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: libfuse $(BUILDDIR)/mergerfs $(BUILDDIR)/fsck.mergerfs $(BUILDDIR)/mergerfs.collect-info
|
||||||
|
|
||||||
|
.PHONY: help
|
||||||
help:
|
help:
|
||||||
@echo "usage: make"
|
@echo "usage: make ARG\n"
|
||||||
@echo "make XATTR_AVAILABLE=0 - to build program without xattrs functionality (auto discovered otherwise)"
|
@echo "USE_XATTR=0 - build program without xattrs functionality"
|
||||||
|
@echo "STATIC=1 - build static binary"
|
||||||
|
@echo "LTO=1 - build with link time optimization"
|
||||||
|
@echo "SANITIZE=1 - build with sanitizers (address,undefined,leak)"
|
||||||
|
@echo "SANITIZE=list - build with custom sanitizers (comma separated)"
|
||||||
|
@echo "CLEANUP=1 - cleanup images between release build process"
|
||||||
|
@echo "PKGDIR=/dir/ - location for release build pkgs"
|
||||||
|
@echo "GITREF=gitref - gitref to use for release builds"
|
||||||
|
|
||||||
$(TARGET): src/version.hpp obj/obj-stamp $(OBJ)
|
|
||||||
$(CXX) $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS)
|
|
||||||
|
|
||||||
mount.mergerfs: $(TARGET)
|
$(BUILDDIR)/mergerfs: $(LIBFUSE) src/version.hpp $(OBJS)
|
||||||
$(LN) -fs "$<" "$@"
|
$(CXX) $(CXXFLAGS) $(INC_FLAGS) $(MFS_FLAGS) $(CPPFLAGS) $(OBJS) -o $@ $(LDFLAGS) $(LDLIBS)
|
||||||
|
|
||||||
|
$(BUILDDIR)/fsck.mergerfs: $(BUILDDIR)/mergerfs
|
||||||
|
$(LN) -sf "mergerfs" $@
|
||||||
|
|
||||||
|
$(BUILDDIR)/mergerfs.collect-info: $(BUILDDIR)/mergerfs
|
||||||
|
$(LN) -sf "mergerfs" $@
|
||||||
|
|
||||||
|
$(BUILDDIR)/tests: $(BUILDDIR)/mergerfs $(TESTS_OBJS)
|
||||||
|
$(CXX) $(CXXFLAGS) $(TESTS_FLAGS) $(INC_FLAGS) $(MFS_FLAGS) $(CPPFLAGS) $(TESTS_OBJS) -o $@ $(LDFLAGS) $(LDLIBS)
|
||||||
|
|
||||||
|
.PHONY: libfuse
|
||||||
|
libfuse: $(LIBFUSE)
|
||||||
|
$(MAKE) -C vendored/libfuse
|
||||||
|
|
||||||
|
$(LIBFUSE):
|
||||||
|
$(MAKE) -C vendored/libfuse $(BUILDDIR)/libfuse.a RELEASE=$(RELEASE)
|
||||||
|
|
||||||
|
tests: $(BUILDDIR)/tests
|
||||||
|
|
||||||
|
.PHONY:
|
||||||
changelog:
|
changelog:
|
||||||
$(GIT2DEBCL) --name $(TARGET) > ChangeLog
|
ifdef GIT_REPO
|
||||||
|
$(GIT2DEBCL) --name mergerfs > ChangeLog
|
||||||
|
else
|
||||||
|
@echo "WARNING: need git repo to generate ChangeLog"
|
||||||
|
endif
|
||||||
|
|
||||||
authors:
|
.PHONY: version
|
||||||
$(GIT) log --format='%aN <%aE>' | sort -f | uniq > AUTHORS
|
version: src/version.hpp
|
||||||
|
|
||||||
src/version.hpp:
|
src/version.hpp:
|
||||||
$(eval VERSION := $(shell $(GIT) describe --always --tags --dirty))
|
./buildtools/update-version
|
||||||
@echo "#ifndef _VERSION_HPP" > src/version.hpp
|
|
||||||
@echo "#define _VERSION_HPP" >> src/version.hpp
|
|
||||||
@echo "static const char MERGERFS_VERSION[] = \"$(VERSION)\";" >> src/version.hpp
|
|
||||||
@echo "#endif" >> src/version.hpp
|
|
||||||
|
|
||||||
obj/obj-stamp:
|
$(BUILDDIR)/stamp:
|
||||||
$(MKDIR) -p obj
|
$(MKDIR) -p $(BUILDDIR)/.objs
|
||||||
|
$(MKDIR) -p $(BUILDDIR)/.test_objs
|
||||||
$(TOUCH) $@
|
$(TOUCH) $@
|
||||||
|
|
||||||
obj/%.o: src/%.cpp
|
$(BUILDDIR)/.objs/%.cpp.o: src/%.cpp $(BUILDDIR)/stamp
|
||||||
$(CXX) $(CFLAGS) -c $< -o $@
|
$(CXX) $(CXXFLAGS) $(INC_FLAGS) $(MFS_FLAGS) $(CPPFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
$(BUILDDIR)/.test_objs/%.cpp.o: tests/%.cpp | $(BUILDDIR)/stamp
|
||||||
|
$(CXX) $(CXXFLAGS) $(TESTS_FLAGS) $(INC_FLAGS) $(MFS_FLAGS) $(CPPFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
$(BUILDDIR)/preload.so: $(BUILDDIR)/stamp tools/preload.c
|
||||||
|
$(CC) -shared -fPIC $(CFLAGS) -o $@ tools/preload.c
|
||||||
|
|
||||||
|
preload: $(BUILDDIR)/preload.so
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean: rpm-clean
|
clean: rpm-clean
|
||||||
$(RM) -rf obj
|
$(RM) -rf $(BUILDDIR)
|
||||||
$(RM) -f src/version.hpp
|
|
||||||
$(RM) -f "$(TARGET)" "$(MANPAGE)" mount.mergerfs
|
|
||||||
$(FIND) . -name "*~" -delete
|
$(FIND) . -name "*~" -delete
|
||||||
|
$(MAKE) -C vendored/libfuse clean
|
||||||
|
|
||||||
|
.PHONY: distclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
$(GIT) clean -fd
|
ifdef GIT_REPO
|
||||||
|
$(GIT) clean -xfd
|
||||||
|
endif
|
||||||
|
|
||||||
install: install-base install-mount.mergerfs install-man
|
.PHONY: install
|
||||||
|
install: install-base install-mount-tools install-preload install-man
|
||||||
|
|
||||||
install-base: $(TARGET)
|
.PHONY: install-base
|
||||||
$(INSTALL) -v -m 0755 -D "$(TARGET)" "$(INSTALLBINDIR)/$(TARGET)"
|
install-base: all
|
||||||
|
|
||||||
install-mount.mergerfs: mount.mergerfs
|
|
||||||
$(MKDIR) -p "$(INSTALLBINDIR)"
|
$(MKDIR) -p "$(INSTALLBINDIR)"
|
||||||
$(CP) -a "$<" "$(INSTALLBINDIR)/$<"
|
$(INSTALL) -v -m 0755 "$(BUILDDIR)/mergerfs" "$(INSTALLBINDIR)/mergerfs"
|
||||||
|
$(LN) -fs "mergerfs" "${INSTALLBINDIR}/fsck.mergerfs"
|
||||||
|
$(LN) -fs "mergerfs" "${INSTALLBINDIR}/mergerfs.collect-info"
|
||||||
|
|
||||||
install-man: $(MANPAGE)
|
.PHONY: install-mount-tools
|
||||||
$(INSTALL) -v -m 0644 -D "$(MANPAGE)" "$(INSTALLMAN1DIR)/$(MANPAGE)"
|
install-mount-tools: install-base
|
||||||
|
$(MKDIR) -p "$(INSTALLBINDIR)"
|
||||||
|
$(MAKE) -C vendored/libfuse install
|
||||||
|
|
||||||
|
.PHONY: install-man
|
||||||
|
install-man: man/$(MANPAGE)
|
||||||
|
$(MKDIR) -p "$(INSTALLMAN1DIR)"
|
||||||
|
$(INSTALL) -v -m 0644 "man/$(MANPAGE)" "$(INSTALLMAN1DIR)/$(MANPAGE)"
|
||||||
|
|
||||||
|
.PHONY: install-preload
|
||||||
|
install-preload: preload
|
||||||
|
$(MKDIR) -p "$(INSTALLLIBDIR)"
|
||||||
|
$(INSTALL) -v -m 444 "$(BUILDDIR)/preload.so" "$(INSTALLLIBDIR)/preload.so"
|
||||||
|
|
||||||
|
.PHONY: install-strip
|
||||||
install-strip: install-base
|
install-strip: install-base
|
||||||
$(STRIP) "$(INSTALLBINDIR)/$(TARGET)"
|
$(STRIP) "$(INSTALLBINDIR)/mergerfs"
|
||||||
|
|
||||||
uninstall: uninstall-base uninstall-mount.mergerfs uninstall-man
|
.PHONY: uninstall
|
||||||
|
uninstall: uninstall-base uninstall-mount.mergerfs uninstall-preload uninstall-man
|
||||||
|
|
||||||
uninstall-base:
|
uninstall-base:
|
||||||
$(RM) -f "$(INSTALLBINDIR)/$(TARGET)"
|
$(RM) -f "$(INSTALLBINDIR)/mergerfs"
|
||||||
|
$(RM) -f "$(INSTALLBINDIR)/fsck.mergerfs"
|
||||||
|
$(RM) -f "$(INSTALLBINDIR)/mergerfs.collect-info"
|
||||||
|
|
||||||
uninstall-mount.mergerfs:
|
uninstall-mount.mergerfs:
|
||||||
$(RM) -f "$(INSTALLBINDIR)/mount.mergerfs"
|
$(RM) -f "$(INSTALLBINDIR)/mount.mergerfs"
|
||||||
|
|
@ -166,47 +292,118 @@ uninstall-mount.mergerfs:
|
||||||
uninstall-man:
|
uninstall-man:
|
||||||
$(RM) -f "$(INSTALLMAN1DIR)/$(MANPAGE)"
|
$(RM) -f "$(INSTALLMAN1DIR)/$(MANPAGE)"
|
||||||
|
|
||||||
$(MANPAGE): README.md
|
uninstall-preload:
|
||||||
ifneq (,$(PANDOC))
|
$(RM) -f "$(INSTALLLIBDIR)/preload.so"
|
||||||
$(PANDOC) -s -t man -o $(MANPAGE) README.md
|
|
||||||
else
|
|
||||||
$(CP) man/mergerfs.1 .
|
|
||||||
endif
|
|
||||||
|
|
||||||
man: $(MANPAGE)
|
.PHONY: tarball
|
||||||
|
tarball: changelog version
|
||||||
tarball: clean man changelog authors src/version.hpp
|
$(eval VERSION := $(shell cat VERSION))
|
||||||
$(eval VERSION := $(shell $(GIT) describe --always --tags --dirty))
|
|
||||||
$(eval VERSION := $(subst -,_,$(VERSION)))
|
$(eval VERSION := $(subst -,_,$(VERSION)))
|
||||||
$(eval FILENAME := $(TARGET)-$(VERSION))
|
$(eval FILENAME := mergerfs-$(VERSION))
|
||||||
$(eval TMPDIR := $(shell $(MKTEMP) --tmpdir -d .$(FILENAME).XXXXXXXX))
|
$(eval TMPDIR := $(shell $(MKTEMP) --tmpdir -d .$(FILENAME).XXXXXXXX))
|
||||||
$(MKDIR) $(TMPDIR)/$(FILENAME)
|
$(MKDIR) $(TMPDIR)/$(FILENAME)
|
||||||
$(CP) -ar . $(TMPDIR)/$(FILENAME)
|
$(CP) -ar . $(TMPDIR)/$(FILENAME)
|
||||||
$(TAR) --exclude=.git -cz -C $(TMPDIR) -f $(FILENAME).tar.gz $(FILENAME)
|
$(TAR) --exclude=.git -cz -C $(TMPDIR) -f $(FILENAME).tar.gz $(FILENAME)
|
||||||
$(RM) -rf $(TMPDIR)
|
$(RM) -rf $(TMPDIR)
|
||||||
|
|
||||||
|
.PHONY: debian-changelog
|
||||||
debian-changelog:
|
debian-changelog:
|
||||||
$(GIT2DEBCL) --name $(TARGET) > debian/changelog
|
ifdef GIT_REPO
|
||||||
|
$(GIT2DEBCL) --name mergerfs > debian/changelog
|
||||||
|
else
|
||||||
|
$(CP) -v ChangeLog debian/changelog
|
||||||
|
$(eval DISTRO := $(shell lsb_release -i -s | tr '[:upper:]' '[:lower:]'))
|
||||||
|
$(eval CODENAME := $(shell lsb_release -c -s | tr '[:upper:]' '[:lower:]'))
|
||||||
|
sed -i 's/~unknown-unknown/~$(DISTRO)-$(CODENAME)/g' debian/changelog
|
||||||
|
sed -i 's/ unknown; / $(CODENAME); /g' debian/changelog
|
||||||
|
endif
|
||||||
|
|
||||||
signed-deb: debian-changelog
|
.PHONY: signed-deb
|
||||||
dpkg-buildpackage
|
signed-deb:
|
||||||
|
$(MAKE) distclean
|
||||||
|
$(MAKE) debian-changelog
|
||||||
|
$(FAKEROOT) dpkg-buildpackage -nc
|
||||||
|
|
||||||
deb: debian-changelog
|
.PHONY: deb
|
||||||
dpkg-buildpackage -uc -us
|
deb:
|
||||||
|
$(MAKE) distclean
|
||||||
|
$(MAKE) debian-changelog
|
||||||
|
$(MAKE) version
|
||||||
|
$(FAKEROOT) dpkg-buildpackage -nc -uc -us
|
||||||
|
$(MKDIR) -p ./$(BUILDDIR)/pkgs/
|
||||||
|
$(MV) -v ../mergerfs*deb ./$(BUILDDIR)/pkgs/
|
||||||
|
|
||||||
|
.PHONY: rpm-clean
|
||||||
rpm-clean:
|
rpm-clean:
|
||||||
$(RM) -rf rpmbuild
|
$(RM) -rf rpmbuild
|
||||||
|
|
||||||
|
.PHONY: rpm
|
||||||
rpm: tarball
|
rpm: tarball
|
||||||
$(eval VERSION := $(shell $(GIT) describe --always --tags --dirty))
|
$(eval VERSION := $(shell cat VERSION))
|
||||||
$(eval VERSION := $(subst -,_,$(VERSION)))
|
$(eval VERSION := $(subst -,_,$(VERSION)))
|
||||||
$(MKDIR) -p rpmbuild/BUILD rpmbuild/RPMS rpmbuild/SOURCES
|
$(MKDIR) -p rpmbuild/BUILD rpmbuild/RPMS rpmbuild/SOURCES
|
||||||
$(SED) 's/__VERSION__/$(VERSION)/g' $(TARGET).spec > \
|
$(SED) 's/__VERSION__/$(VERSION)/g' mergerfs.spec > \
|
||||||
rpmbuild/SOURCES/$(TARGET).spec
|
rpmbuild/SOURCES/mergerfs.spec
|
||||||
cp -ar $(TARGET)-$(VERSION).tar.gz rpmbuild/SOURCES
|
cp -ar mergerfs-$(VERSION).tar.gz rpmbuild/SOURCES
|
||||||
$(RPMBUILD) -ba rpmbuild/SOURCES/$(TARGET).spec \
|
$(RPMBUILD) $(RPMBUILD_FLAGS) -ba rpmbuild/SOURCES/mergerfs.spec \
|
||||||
--define "_topdir $(CURDIR)/rpmbuild"
|
--define "_topdir $(CURDIR)/rpmbuild"
|
||||||
|
|
||||||
.PHONY: all clean install help
|
.PHONY: install-build-pkgs
|
||||||
|
install-build-pkgs:
|
||||||
|
./buildtools/install-build-pkgs
|
||||||
|
|
||||||
include $(wildcard obj/*.d)
|
.PHONY: install-build-tools
|
||||||
|
install-build-tools:
|
||||||
|
./buildtools/install-build-tools
|
||||||
|
|
||||||
|
define build_release
|
||||||
|
$(eval GITREF ?= $(shell git describe --exact-match --tags HEAD 2>/dev/null || git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD))
|
||||||
|
@echo "GITREF=$(GITREF)"
|
||||||
|
./buildtools/build-release \
|
||||||
|
--target=$(1) \
|
||||||
|
$(if $(CLEANUP),--cleanup) \
|
||||||
|
$(if $(PKGDIR),--pkgdirpath=$(PKGDIR)) \
|
||||||
|
--git-repo=$(if $(REMOTE_REPO),$(GITHUB_REPO),".") \
|
||||||
|
--branch=$(GITREF)
|
||||||
|
endef
|
||||||
|
|
||||||
|
.PHONY: release release-all
|
||||||
|
.PHONY: release-amd64 release-arm64 release-armhf release-riscv64
|
||||||
|
.PHONY: release-sample release-static release-tarball release-installer
|
||||||
|
release:
|
||||||
|
$(MAKE) RELEASE=1 CPPFLAGS="$(CPPFLAGS) -DNDEBUG" all
|
||||||
|
release-all:
|
||||||
|
$(call build_release,"all")
|
||||||
|
release-sample:
|
||||||
|
$(if $(TARGET),,$(eval TARGET := $(shell ./buildtools/detect-local-target 2>/dev/null)))
|
||||||
|
$(call build_release,$(if $(TARGET),$(TARGET),$(DEFAULT_TARGET)))
|
||||||
|
release-amd64:
|
||||||
|
$(call build_release,"amd64")
|
||||||
|
release-arm64:
|
||||||
|
$(call build_release,"arm64")
|
||||||
|
release-armhf:
|
||||||
|
$(call build_release,"armhf")
|
||||||
|
release-riscv64:
|
||||||
|
$(call build_release,"riscv64")
|
||||||
|
release-static:
|
||||||
|
$(call build_release,"static")
|
||||||
|
release-tarball:
|
||||||
|
$(call build_release,"tarball")
|
||||||
|
release-installer:
|
||||||
|
$(call build_release,"installer")
|
||||||
|
|
||||||
|
container:
|
||||||
|
$(eval GITREF ?= $(shell git describe --exact-match --tags HEAD 2>/dev/null || git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD))
|
||||||
|
@echo "GITREF=$(GITREF)"
|
||||||
|
./buildtools/build-containerimage "$(GITREF)"
|
||||||
|
|
||||||
|
.PHONY: tags
|
||||||
|
tags:
|
||||||
|
rm -fv TAGS
|
||||||
|
find . -name "*.c" -print | etags --append -
|
||||||
|
find . -name "*.h" -print | etags --append -
|
||||||
|
find . -name "*.cpp" -print | etags --append -
|
||||||
|
find . -name "*.hpp" -print | etags --append -
|
||||||
|
|
||||||
|
|
||||||
|
-include $(DEPS)
|
||||||
|
|
|
||||||
436
README.md
436
README.md
|
|
@ -1,371 +1,125 @@
|
||||||
% mergerfs(1) mergerfs user manual
|
# mergerfs - a featureful union filesystem
|
||||||
% Antonio SJ Musumeci <trapexit@spawn.link>
|
|
||||||
% 2016-02-21
|
|
||||||
|
|
||||||
# NAME
|
**mergerfs** is a
|
||||||
|
[FUSE](https://en.wikipedia.org/wiki/Filesystem_in_Userspace) based
|
||||||
|
[union filesystem](https://en.wikipedia.org/wiki/Union_mount) geared
|
||||||
|
towards simplifying storage and management of files across numerous
|
||||||
|
commodity storage devices. It is similar to [**mhddfs**, **unionfs**,
|
||||||
|
**aufs**, **DrivePool**,
|
||||||
|
etc.](https://trapexit.github.io/mergerfs/latest/project_comparisons/)
|
||||||
|
|
||||||
mergerfs - another (FUSE based) union filesystem
|
|
||||||
|
|
||||||
# SYNOPSIS
|
## Features
|
||||||
|
|
||||||
mergerfs -o<options> <srcmounts> <mountpoint>
|
* Logically combine numerous filesystems/paths into a single
|
||||||
|
mount point (JBOFS: Just a Bunch of FileSystems)
|
||||||
# DESCRIPTION
|
* Combine paths of the same or different filesystems
|
||||||
|
* Ability to add or remove filesystems/paths without impacting the
|
||||||
**mergerfs** is a union filesystem geared towards simplifing storage and management of files across numerous commodity storage devices. It is similar to **mhddfs**, **unionfs**, and **aufs**.
|
rest of the data
|
||||||
|
* Unaffected by individual filesystem failure
|
||||||
# FEATURES
|
* Configurable file selection and creation placement
|
||||||
|
* File IO
|
||||||
* Runs in userspace (FUSE)
|
[passthrough](https://trapexit.github.io/mergerfs/latest/config/passthrough/)
|
||||||
* Configurable behaviors
|
for near native IO performance (where supported)
|
||||||
|
* Works with filesystems of any size
|
||||||
|
* Works with filesystems of [almost any
|
||||||
|
type](https://trapexit.github.io/mergerfs/latest/faq/compatibility_and_integration/#what-filesystems-can-be-used-as-branches)
|
||||||
|
* Ignore read-only filesystems when creating files
|
||||||
|
* [Hard links](https://trapexit.github.io/mergerfs/latest/faq/technical_behavior_and_limitations/#do-hard-links-work)
|
||||||
|
* Hard link [copy-on-write /
|
||||||
|
CoW](https://trapexit.github.io/mergerfs/latest/config/link_cow/)
|
||||||
|
* [Runtime configurable](https://trapexit.github.io/mergerfs/latest/runtime_interface/)
|
||||||
* Support for extended attributes (xattrs)
|
* Support for extended attributes (xattrs)
|
||||||
* Support for file attributes (chattr)
|
* Support for file attributes (chattr)
|
||||||
* Runtime configurable (via xattrs)
|
* Support for POSIX ACLs
|
||||||
* Safe to run as root
|
|
||||||
* Opportunistic credential caching
|
|
||||||
* Works with heterogeneous filesystem types
|
|
||||||
* Handling of writes to full drives
|
|
||||||
* Handles pool of readonly and read/write drives
|
|
||||||
|
|
||||||
# OPTIONS
|
|
||||||
|
|
||||||
###options###
|
## Non-features
|
||||||
|
|
||||||
* **defaults**: a shortcut for FUSE's **atomic_o_trunc**, **auto_cache**, **big_writes**, **default_permissions**, **splice_move**, **splice_read**, and **splice_write**. These options seem to provide the best performance.
|
* Read/write overlay on top of read-only filesystem like OverlayFS
|
||||||
* **direct_io**: causes FUSE to bypass an addition caching step which can increase write speeds at the detriment of read speed.
|
* File whiteout
|
||||||
* **minfreespace**: the minimum space value used for the **lfs**, **fwfs**, **eplfs**, & **epmfs** policies. Understands 'K', 'M', and 'G' to represent kilobyte, megabyte, and gigabyte respectively. (default: 4G)
|
* RAID like parity calculation (see [SnapRAID](https://www.snapraid.it))
|
||||||
* **moveonenospc**: when enabled (set to **true**) if a **write** fails with **ENOSPC** a scan of all drives will be done looking for the drive with most free space which is at least the size of the file plus the amount which failed to write. An attempt to move the file to that drive will occur (keeping all metadata possible) and if successful the original is unlinked and the write retried. (default: false)
|
* Redundancy
|
||||||
* **func.<func>=<policy>**: sets the specific FUSE function's policy. See below for the list of value types. Example: **func.getattr=newest**
|
* Splitting of files across branches
|
||||||
* **category.<category>=<policy>**: Sets policy of all FUSE functions in the provided category. Example: **category.create=mfs**
|
|
||||||
|
|
||||||
**NOTE:** Options are evaluated in the order listed so if the options are **func.rmdir=rand,category.action=ff** the **action** category setting will override the **rmdir** setting.
|
|
||||||
|
|
||||||
###srcmounts###
|
## How it works
|
||||||
|
|
||||||
The source mounts argument is a colon (':') delimited list of paths. To make it simpler to include multiple source mounts without having to modify your [fstab](http://linux.die.net/man/5/fstab) we also support [globbing](http://linux.die.net/man/7/glob). **The globbing tokens MUST be escaped when using via the shell else the shell itself will probably expand it.**
|
mergerfs logically merges multiple filesystem paths together. Not
|
||||||
|
block devices, not filesystem mounts, just paths. It acts as a proxy
|
||||||
|
to the underlying filesystem paths. Combining the behaviors of some
|
||||||
|
functions and being a selector for others.
|
||||||
|
|
||||||
|
When the contents of a directory are requested mergerfs combines the
|
||||||
|
list of files from each directory, deduplicating entries, and returns
|
||||||
|
that list.
|
||||||
|
|
||||||
|
When a file or directory is created a policy is first run to determine
|
||||||
|
which branch will be selected for the creation.
|
||||||
|
|
||||||
|
For functions which change attributes or remove the file the behavior
|
||||||
|
may be applied to all instances found.
|
||||||
|
|
||||||
|
The way in which mergerfs behaves is controlled by the
|
||||||
|
[config/options/settings](https://trapexit.github.io/mergerfs/latest/config/options). More
|
||||||
|
specifically by
|
||||||
|
[policies](https://trapexit.github.io/mergerfs/latest/config/functions_categories_policies/).
|
||||||
|
|
||||||
|
|
||||||
|
### Visualization
|
||||||
|
|
||||||
```
|
```
|
||||||
$ mergerfs /mnt/disk\*:/mnt/cdrom /media/drives
|
A + B = C
|
||||||
|
/disk1 /disk2 /merged
|
||||||
|
| | |
|
||||||
|
+-- /dir1 +-- /dir1 +-- /dir1
|
||||||
|
| | | | | |
|
||||||
|
| +-- file1 | | | +-- file1
|
||||||
|
| | +-- file2 | +-- file2
|
||||||
|
| | +-- file3 | +-- file3
|
||||||
|
| | |
|
||||||
|
+-- /dir2 | +-- /dir2
|
||||||
|
| | | | |
|
||||||
|
| +-- file4 | | +-- file4
|
||||||
|
| | |
|
||||||
|
| +-- /dir3 +-- /dir3
|
||||||
|
| | | | |
|
||||||
|
| | +-- file5 | +-- file5
|
||||||
|
| | |
|
||||||
|
+-- file6 | +-- file6
|
||||||
|
+-- file7 +-- file7 +-- file7
|
||||||
```
|
```
|
||||||
|
|
||||||
The above line will use all mount points in /mnt prefixed with *disk* and the directory *cdrom*.
|
|
||||||
|
|
||||||
In /etc/fstab it'd look like the following:
|
## QuickStart
|
||||||
|
|
||||||
```
|
https://trapexit.github.io/mergerfs/latest/quickstart/
|
||||||
# <file system> <mount point> <type> <options> <dump> <pass>
|
|
||||||
/mnt/disk*:/mnt/cdrom /media/drives fuse.mergerfs defaults,allow_other 0 0
|
|
||||||
```
|
|
||||||
|
|
||||||
**NOTE:** the globbing is done at mount or xattr update time. If a new directory is added matching the glob after the fact it will not be included.
|
|
||||||
|
|
||||||
# FUNCTIONS / POLICIES / CATEGORIES
|
## Documentation
|
||||||
|
|
||||||
The filesystem has a number of functions. Those functions are grouped into 3 categories: **action**, **create**, **search**. These functions and categories can be assigned a policy which dictates how **mergerfs** behaves. Any policy can be assigned to a function or category though some are not very practical. For instance: **rand** (Random) may be useful for file creation (create) but could lead to very odd behavior if used for `chmod`.
|
https://trapexit.github.io/mergerfs
|
||||||
|
|
||||||
All policies when used to create will ignore drives which are mounted readonly. This allows for read/write and readonly drives to be mixed together.
|
|
||||||
|
|
||||||
#### Function / Category classifications ####
|
## Support
|
||||||
|
|
||||||
| Category | FUSE Functions |
|
https://trapexit.github.io/mergerfs/latest/support/
|
||||||
|----------|----------------|
|
|
||||||
| action | chmod, chown, link, removexattr, rename, rmdir, setxattr, truncate, unlink, utimens |
|
|
||||||
| create | create, mkdir, mknod, symlink |
|
|
||||||
| search | access, getattr, getxattr, ioctl, listxattr, open, readlink |
|
|
||||||
| N/A | fallocate, fgetattr, fsync, ftruncate, ioctl, read, readdir, release, statfs, write |
|
|
||||||
|
|
||||||
**ioctl** behaves differently if its acting on a directory. It'll use the **getattr** policy to find and open the directory before issuing the **ioctl**. In other cases where something may be searched (to confirm a directory exists across all source mounts) then **getattr** will be used.
|
|
||||||
|
|
||||||
#### Policy descriptions ####
|
## Sponsorship and Donations
|
||||||
|
|
||||||
| Policy | Description |
|
[https://github.com/trapexit/support](https://github.com/trapexit/support)
|
||||||
|--------------|-------------|
|
|
||||||
| all | Applies action to all found. For searches it will behave like first found **ff**. For `create` functions it will only apply to `mkdir`, `mkdnod`, and `symlink`. |
|
|
||||||
| eplfs (existing path, least free space) | If the path exists on multiple drives use the one with the least free space and is greater than **minfreespace**. Falls back to **lfs**. |
|
|
||||||
| epmfs (existing path, most free space) | If the path exists on multiple drives use the one with the most free space and is greater than **minfreespace**. Falls back to **mfs**. |
|
|
||||||
| erofs | Exclusively return `-1` with `errno` set to EROFS. By setting `create` functions to this you can in effect turn the filesystem readonly. |
|
|
||||||
| ff (first found) | Given the order of the drives, as defined at mount time or when configured via xattr interface, act on the first one found. |
|
|
||||||
| fwfs (first with free space) | Pick the first drive which has at least **minfreespace**. Falls back to **mfs**. |
|
|
||||||
| lfs (least free space) | Pick the drive with the least available free space but more than **minfreespace**. Falls back to **mfs**. |
|
|
||||||
| mfs (most free space) | Use the drive with the most available free space. Falls back to **ff**. |
|
|
||||||
| newest (newest file) | Pick the file / directory with the largest mtime. |
|
|
||||||
| rand (random) | Calls **all** and then randomizes. |
|
|
||||||
|
|
||||||
#### Defaults ####
|
Development and support of a project like mergerfs requires a
|
||||||
|
significant amount of time and effort. The software is released under
|
||||||
|
the very liberal [ISC](https://opensource.org/license/isc-license-txt)
|
||||||
|
license and is therefore free to use for personal or commercial uses.
|
||||||
|
|
||||||
| Category | Policy |
|
If you are a non-commercial user and find mergerfs and its support valuable
|
||||||
|----------|--------|
|
and would like to support the project financially it would be very
|
||||||
| action | all |
|
much appreciated.
|
||||||
| create | epmfs |
|
|
||||||
| search | ff |
|
|
||||||
|
|
||||||
#### rename & link ####
|
If you are using mergerfs commercially please consider sponsoring the
|
||||||
|
project to ensure it continues to be maintained and receive
|
||||||
[rename](http://man7.org/linux/man-pages/man2/rename.2.html) is a tricky function in a merged system. Normally if a rename can't be done atomically due to the source and destination paths existing on different mount points it will return `-1` with `errno = EXDEV`. The atomic rename is most critical for replacing files in place atomically (such as securing writing to a temp file and then replacing a target). The problem is that by merging multiple paths you can have N instances of the source and destinations on different drives. This can lead to several undesirable situtations with or without errors and it's not entirely obvious what to do when an error occurs.
|
updates. If custom features are needed feel free to [contact me
|
||||||
|
directly](mailto:support@spawn.link).
|
||||||
Originally mergerfs would return EXDEV whenever a rename was requested which was cross directory in any way. This made the code simple and was technically complient with POSIX requirements. However, many applications fail to handle EXDEV at all and treat it as a normal error or they only partially support EXDEV (don't respond the same as `mv` would). Such apps include: gvfsd-fuse v1.20.3 and prior, Finder / CIFS/SMB client in Apple OSX 10.9+, NZBGet, Samba's recycling bin feature.
|
|
||||||
|
|
||||||
* If using a policy which tries to preserve directories (epmfs,eplfs)
|
|
||||||
* Using the `rename` policy get the list of files to rename
|
|
||||||
* For each file attempt rename:
|
|
||||||
* If failure with ENOENT run `create` policy
|
|
||||||
* If create policy returns the same drive as currently evaluating then clone the path
|
|
||||||
* Re-attempt rename
|
|
||||||
* If **any** of the renames succeed the higher level rename is considered a success
|
|
||||||
* If **no** renames succeed the first error encountered will be returned
|
|
||||||
* On success:
|
|
||||||
* Remove the target from all drives with no source file
|
|
||||||
* Remove the source from all drives which failed to rename
|
|
||||||
* If using a policy which does **not** try to preserve directories
|
|
||||||
* Using the `rename` policy get the list of files to rename
|
|
||||||
* Using the `getattr` policy get the target path
|
|
||||||
* For each file attempt rename:
|
|
||||||
* If the source drive != target drive:
|
|
||||||
* Clone target path from target drive to source drive
|
|
||||||
* Rename
|
|
||||||
* If **any** of the renames succeed the higher level rename is considered a success
|
|
||||||
* If **no** renames succeed the first error encountered will be returned
|
|
||||||
* On success:
|
|
||||||
* Remove the target from all drives with no source file
|
|
||||||
* Remove the source from all drives which failed to rename
|
|
||||||
|
|
||||||
The the removals are subject to normal entitlement checks.
|
|
||||||
|
|
||||||
The above behavior will help minimize the likelihood of EXDEV being returned but it will still be possible. To remove the possibility all together mergerfs would need to perform the as `mv` does when it receives EXDEV normally.
|
|
||||||
|
|
||||||
`link` uses the same basic strategy.
|
|
||||||
|
|
||||||
#### readdir ####
|
|
||||||
|
|
||||||
[readdir](http://linux.die.net/man/3/readdir) is different from all other filesystem functions. It certainly could have it's own set of policies to tweak its behavior. At this time it provides a simple **first found** merging of directories and files found. That is: only the first file or directory found for a directory is returned. Given how FUSE works though the data representing the returned entry comes from **getattr**.
|
|
||||||
|
|
||||||
It could be extended to offer the ability to see all files found. Perhaps concatenating **#** and a number to the name. But to really be useful you'd need to be able to access them which would complicate file lookup.
|
|
||||||
|
|
||||||
#### statvfs ####
|
|
||||||
|
|
||||||
[statvfs](http://linux.die.net/man/2/statvfs) normalizes the source drives based on the fragment size and sums the number of adjusted blocks and inodes. This means you will see the combined space of all sources. Total, used, and free. The sources however are dedupped based on the drive so multiple sources on the same drive will not result in double counting it's space.
|
|
||||||
|
|
||||||
# BUILDING
|
|
||||||
|
|
||||||
**NOTE:** Prebuilt packages can be found at: https://github.com/trapexit/mergerfs/releases
|
|
||||||
|
|
||||||
First get the code from [github](http://github.com/trapexit/mergerfs).
|
|
||||||
|
|
||||||
```
|
|
||||||
$ git clone https://github.com/trapexit/mergerfs.git
|
|
||||||
$ # or
|
|
||||||
$ wget https://github.com/trapexit/mergerfs/archive/master.zip
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Debian / Ubuntu
|
|
||||||
```
|
|
||||||
$ sudo apt-get install g++ pkg-config git git-buildpackage pandoc debhelper libfuse-dev libattr1-dev python
|
|
||||||
$ cd mergerfs
|
|
||||||
$ make deb
|
|
||||||
$ sudo dpkg -i ../mergerfs_version_arch.deb
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Fedora
|
|
||||||
```
|
|
||||||
$ su -
|
|
||||||
# dnf install rpm-build fuse-devel libattr-devel pandoc gcc-c++ git make which python
|
|
||||||
# cd mergerfs
|
|
||||||
# make rpm
|
|
||||||
# rpm -i rpmbuild/RPMS/<arch>/mergerfs-<verion>.<arch>.rpm
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Generically
|
|
||||||
|
|
||||||
Have git, python, pkg-config, pandoc, libfuse, libattr1 installed.
|
|
||||||
|
|
||||||
```
|
|
||||||
$ cd mergerfs
|
|
||||||
$ make
|
|
||||||
$ make man
|
|
||||||
$ sudo make install
|
|
||||||
```
|
|
||||||
|
|
||||||
# RUNTIME
|
|
||||||
|
|
||||||
#### .mergerfs pseudo file ####
|
|
||||||
```
|
|
||||||
<mountpoint>/.mergerfs
|
|
||||||
```
|
|
||||||
|
|
||||||
There is a pseudo file available at the mount point which allows for the runtime modification of certain **mergerfs** options. The file will not show up in **readdir** but can be **stat**'ed and manipulated via [{list,get,set}xattrs](http://linux.die.net/man/2/listxattr) calls.
|
|
||||||
|
|
||||||
Even if xattrs are disabled the [{list,get,set}xattrs](http://linux.die.net/man/2/listxattr) calls will still work.
|
|
||||||
|
|
||||||
##### Keys #####
|
|
||||||
|
|
||||||
Use `xattr -l /mount/point/.mergerfs` to see all supported keys.
|
|
||||||
|
|
||||||
##### user.mergerfs.srcmounts #####
|
|
||||||
|
|
||||||
For **user.mergerfs.srcmounts** there are several instructions available for manipulating the list. The value provided is just as the value used at mount time. A colon (':') delimited list of full path globs.
|
|
||||||
|
|
||||||
| Instruction | Description |
|
|
||||||
|--------------|-------------|
|
|
||||||
| [list] | set |
|
|
||||||
| +<[list] | prepend |
|
|
||||||
| +>[list] | append |
|
|
||||||
| -[list] | remove all values provided |
|
|
||||||
| -< | remove first in list |
|
|
||||||
| -> | remove last in list |
|
|
||||||
|
|
||||||
##### minfreespace #####
|
|
||||||
|
|
||||||
Input: interger with an optional multiplier suffix. **K**, **M**, or **G**.
|
|
||||||
|
|
||||||
Output: value in bytes
|
|
||||||
|
|
||||||
##### moveonenospc #####
|
|
||||||
|
|
||||||
Input: **true** and **false**
|
|
||||||
|
|
||||||
Ouput: **true** or **false**
|
|
||||||
|
|
||||||
##### categories / funcs #####
|
|
||||||
|
|
||||||
Input: short policy string as described elsewhere in this document
|
|
||||||
|
|
||||||
Output: the policy string except for categories where its funcs have multiple types. In that case it will be a comma separated list
|
|
||||||
|
|
||||||
##### Example #####
|
|
||||||
|
|
||||||
```
|
|
||||||
[trapexit:/tmp/mount] $ xattr -l .mergerfs
|
|
||||||
user.mergerfs.srcmounts: /tmp/a:/tmp/b
|
|
||||||
user.mergerfs.minfreespace: 4294967295
|
|
||||||
user.mergerfs.moveonenospc: false
|
|
||||||
...
|
|
||||||
|
|
||||||
[trapexit:/tmp/mount] $ xattr -p user.mergerfs.category.search .mergerfs
|
|
||||||
ff
|
|
||||||
|
|
||||||
[trapexit:/tmp/mount] $ xattr -w user.mergerfs.category.search fwfs .mergerfs
|
|
||||||
[trapexit:/tmp/mount] $ xattr -p user.mergerfs.category.search .mergerfs
|
|
||||||
fwfs
|
|
||||||
|
|
||||||
[trapexit:/tmp/mount] $ xattr -w user.mergerfs.srcmounts +/tmp/c .mergerfs
|
|
||||||
[trapexit:/tmp/mount] $ xattr -p user.mergerfs.srcmounts .mergerfs
|
|
||||||
/tmp/a:/tmp/b:/tmp/c
|
|
||||||
|
|
||||||
[trapexit:/tmp/mount] $ xattr -w user.mergerfs.srcmounts =/tmp/c .mergerfs
|
|
||||||
[trapexit:/tmp/mount] $ xattr -p user.mergerfs.srcmounts .mergerfs
|
|
||||||
/tmp/c
|
|
||||||
|
|
||||||
[trapexit:/tmp/mount] $ xattr -w user.mergerfs.srcmounts '+</tmp/a:/tmp/b' .mergerfs
|
|
||||||
[trapexit:/tmp/mount] $ xattr -p user.mergerfs.srcmounts .mergerfs
|
|
||||||
/tmp/a:/tmp/b:/tmp/c
|
|
||||||
```
|
|
||||||
|
|
||||||
#### mergerfs file xattrs ####
|
|
||||||
|
|
||||||
While they won't show up when using [listxattr](http://linux.die.net/man/2/listxattr) **mergerfs** offers a number of special xattrs to query information about the files served. To access the values you will need to issue a [getxattr](http://linux.die.net/man/2/getxattr) for one of the following:
|
|
||||||
|
|
||||||
* **user.mergerfs.basepath:** the base mount point for the file given the current getattr policy
|
|
||||||
* **user.mergerfs.relpath:** the relative path of the file from the perspective of the mount point
|
|
||||||
* **user.mergerfs.fullpath:** the full path of the original file given the getattr policy
|
|
||||||
* **user.mergerfs.allpaths:** a NUL ('\0') separated list of full paths to all files found
|
|
||||||
|
|
||||||
```
|
|
||||||
[trapexit:/tmp/mount] $ ls
|
|
||||||
A B C
|
|
||||||
[trapexit:/tmp/mount] $ xattr -p user.mergerfs.fullpath A
|
|
||||||
/mnt/a/full/path/to/A
|
|
||||||
[trapexit:/tmp/mount] $ xattr -p user.mergerfs.basepath A
|
|
||||||
/mnt/a
|
|
||||||
[trapexit:/tmp/mount] $ xattr -p user.mergerfs.relpath A
|
|
||||||
/full/path/to/A
|
|
||||||
[trapexit:/tmp/mount] $ xattr -p user.mergerfs.allpaths A | tr '\0' '\n'
|
|
||||||
/mnt/a/full/path/to/A
|
|
||||||
/mnt/b/full/path/to/A
|
|
||||||
```
|
|
||||||
|
|
||||||
# TOOLING
|
|
||||||
|
|
||||||
Find tooling to help with managing `mergerfs` at: https://github.com/trapexit/mergerfs-tools
|
|
||||||
|
|
||||||
* fsck.mergerfs: Provides permissions and ownership auditing and the ability to fix them
|
|
||||||
* mergerfs.mktrash: Creates FreeDesktop.org Trash specification compatible directories on a mergerfs mount
|
|
||||||
|
|
||||||
# TIPS / NOTES
|
|
||||||
|
|
||||||
* If you don't see some directories / files you expect in a merged point be sure the user has permission to all the underlying directories. If `/drive0/a` has is owned by `root:root` with ACLs set to `0700` and `/drive1/a` is `root:root` and `0755` you'll see only `/drive1/a`. Use `fsck.mergerfs` to audit the drive for out of sync permissions.
|
|
||||||
* Since POSIX gives you only error or success on calls its difficult to determine the proper behavior when applying the behavior to multiple targets. **mergerfs** will return an error only if all attempts of an action fail. Any success will lead to a success returned.
|
|
||||||
* The recommended options are **defaults,allow_other**. The **allow_other** is to allow users who are not the one which executed mergerfs access to the mountpoint. **defaults** is described above and should offer the best performance. It's possible that if you're running on an older platform the **splice** features aren't available and could error. In that case simply use the other options manually.
|
|
||||||
* If write performance is valued more than read it may be useful to enable **direct_io**. Best to benchmark with and without and choose appropriately.
|
|
||||||
* Remember: some policies mixed with some functions may result in strange behaviors. Not that some of these behaviors and race conditions couldn't happen outside **mergerfs** but that they are far more likely to occur on account of attempt to merge together multiple sources of data which could be out of sync due to the different policies.
|
|
||||||
* An example: [Kodi](http://kodi.tv) and [Plex](http://plex.tv) can use directory [mtime](http://linux.die.net/man/2/stat) to more efficiently determine whether to scan for new content rather than simply performing a full scan. If using the current default **getattr** policy of **ff** its possible **Kodi** will miss an update on account of it returning the first directory found's **stat** info and its a later directory on another mount which had the **mtime** recently updated. To fix this you will want to set **func.getattr=newest**. Remember though that this is just **stat**. If the file is later **open**'ed or **unlink**'ed and the policy is different for those then a completely different file or directory could be acted on.
|
|
||||||
* Due to previously mentioned issues its generally best to set **category** wide policies rather than individual **func**'s. This will help limit the confusion of tools such as [rsync](http://linux.die.net/man/1/rsync).
|
|
||||||
|
|
||||||
# KNOWN ISSUES / BUGS
|
|
||||||
|
|
||||||
#### Trashing files occasionally fails
|
|
||||||
|
|
||||||
This is the same issue as with Samba. `rename` returns `EXDEV` (in our case that will really only happen with path preserving policies like `epmfs`) and the software doesn't handle the situtation well. This is unfortunately a common failure of software which moves files around. The standard indicates that an implementation `MAY` choose to support non-user home directory trashing of files (which is a `MUST`). The implementation `MAY` also support "top directory trashes" which many probably do.
|
|
||||||
|
|
||||||
To create a `$topdir/.Trash` directory as defined in the standard use the [mergerfs-tools](https://github.com/trapexit/mergerfs-tools) tool `mergerfs.mktrash`.
|
|
||||||
|
|
||||||
#### Samba: Moving files / directories fails
|
|
||||||
|
|
||||||
Workaround: Copy the file/directory and then remove the original rather than move.
|
|
||||||
|
|
||||||
This isn't an issue with Samba but some SMB clients. GVFS-fuse v1.20.3 and prior (found in Ubuntu 14.04 among others) failed to handle certain error codes correctly. Particularly **STATUS_NOT_SAME_DEVICE** which comes from the **EXDEV** which is returned by **rename** when the call is crossing mount points. When a program gets an **EXDEV** it needs to explicitly take an alternate action to accomplish it's goal. In the case of **mv** or similar it tries **rename** and on **EXDEV** falls back to a manual copying of data between the two locations and unlinking the source. In these older versions of GVFS-fuse if it received **EXDEV** it would translate that into **EIO**. This would cause **mv** or most any application attempting to move files around on that SMB share to fail with a IO error.
|
|
||||||
|
|
||||||
[GVFS-fuse v1.22.0](https://bugzilla.gnome.org/show_bug.cgi?id=734568) and above fixed this issue but a large number of systems use the older release. On Ubuntu the version can be checked by issuing `apt-cache showpkg gvfs-fuse`. Most distros released in 2015 seem to have the updated release and will work fine but older systems may not. Upgrading gvfs-fuse or the distro in general will address the problem.
|
|
||||||
|
|
||||||
In Apple's MacOSX 10.9 they replaced Samba (client and server) with their own product. It appears their new client does not handle **EXDEV** either and responds similar to older release of gvfs on Linux.
|
|
||||||
|
|
||||||
#### Supplemental user groups
|
|
||||||
|
|
||||||
Due to the overhead of [getgroups/setgroups](http://linux.die.net/man/2/setgroups) mergerfs utilizes a cache. This cache is opportunistic and per thread. Each thread will query the supplemental groups for a user when that particular thread needs to change credentials and will keep that data for the lifetime of the thread. This means that if a user is added to a group it may not be picked up without the restart of mergerfs. However, since the high level FUSE API's (at least the standard version) thread pool dynamically grows and shrinks it's possible that over time a thread will be killed and later a new thread with no cache will start and query the new data.
|
|
||||||
|
|
||||||
The gid cache uses fixed storage to simplify the design and be compatible with older systems which may not have C++11 compilers. There is enough storage for 256 users' supplemental groups. Each user is allowed upto 32 supplemental groups. Linux >= 2.6.3 allows upto 65535 groups per user but most other *nixs allow far less. NFS allowing only 16. The system does handle overflow gracefully. If the user has more than 32 supplemental groups only the first 32 will be used. If more than 256 users are using the system when an uncached user is found it will evict an existing user's cache at random. So long as there aren't more than 256 active users this should be fine. If either value is too low for your needs you will have to modify `gidcache.hpp` to increase the values. Note that doing so will increase the memory needed by each thread.
|
|
||||||
|
|
||||||
#### mergerfs or libfuse crashing
|
|
||||||
|
|
||||||
If suddenly the mergerfs mount point disappears and `Transport endpoint is not connected` is returned when attempting to perform actions within the mount directory **and** the version of libfuse (use `mergerfs -v` to find the version) is older than `2.9.4` its likely due to a bug in libfuse. Affected versions of libfuse can be found in Debian Wheezy, Ubuntu Precise and others.
|
|
||||||
|
|
||||||
In order to fix this please install newer versions of libfuse. If using a Debian based distro (Debian,Ubuntu,Mint) you can likely just install newer versions of [libfuse](https://packages.debian.org/unstable/libfuse2) and [fuse](https://packages.debian.org/unstable/fuse) from the repo of a newer release.
|
|
||||||
|
|
||||||
# FAQ
|
|
||||||
|
|
||||||
#### Why use mergerfs over mhddfs?
|
|
||||||
|
|
||||||
mhddfs is no longer maintained and has some known stability and security issues (see below).
|
|
||||||
|
|
||||||
#### Why use mergerfs over aufs?
|
|
||||||
|
|
||||||
While aufs can offer better peak performance mergerfs offers more configurability and is generally easier to use. mergerfs however doesn't offer the overlay features which tends to result in whiteout files being left around the underlying filesystems.
|
|
||||||
|
|
||||||
#### Why use mergerfs over LVM/ZFS/BTRFS/RAID0 drive concatenation / striping?
|
|
||||||
|
|
||||||
A single drive failure will lead to full pool failure without additional redundancy. mergerfs performs a similar behavior without the catastrophic failure and lack of recovery. Drives can fail and all other data will continue to be accessable.
|
|
||||||
|
|
||||||
#### It's mentioned that there are some security issues with mhddfs. What are they? How does mergerfs address them?
|
|
||||||
|
|
||||||
[mhddfs](https://github.com/trapexit/mhddfs) tries to handle being run as **root** by calling [getuid()](https://github.com/trapexit/mhddfs/blob/cae96e6251dd91e2bdc24800b4a18a74044f6672/src/main.c#L319) and if it returns **0** then it will [chown](http://linux.die.net/man/1/chown) the file. Not only is that a race condition but it doesn't handle many other situations. Rather than attempting to simulate POSIX ACL behaviors the proper behavior is to use [seteuid](http://linux.die.net/man/2/seteuid) and [setegid](http://linux.die.net/man/2/setegid), become the user making the original call and perform the action as them. This is how [mergerfs](https://github.com/trapexit/mergerfs) handles things.
|
|
||||||
|
|
||||||
If you are familiar with POSIX standards you'll know that this behavior poses a problem. **seteuid** and **setegid** affect the whole process and **libfuse** is multithreaded by default. We'd need to lock access to **seteuid** and **setegid** with a mutex so that the several threads aren't stepping on one another and files end up with weird permissions and ownership. This however wouldn't scale well. With lots of calls the contention on that mutex would be extremely high. Thankfully on Linux and OSX we have a better solution.
|
|
||||||
|
|
||||||
OSX has a [non-portable pthread extension](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/pthread_setugid_np.2.html) for per-thread user and group impersonation.
|
|
||||||
|
|
||||||
Linux does not support [pthread_setugid_np](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/pthread_setugid_np.2.html) but user and group IDs are a per-thread attribute though documentation on that fact or how to manipulate them is not well distributed. From the **4.00** release of the Linux man-pages project for [setuid](http://man7.org/linux/man-pages/man2/setuid.2.html).
|
|
||||||
|
|
||||||
> At the kernel level, user IDs and group IDs are a per-thread attribute. However, POSIX requires that all threads in a process share the same credentials. The NPTL threading implementation handles the POSIX requirements by providing wrapper functions for the various system calls that change process UIDs and GIDs. These wrapper functions (including the one for setuid()) employ a signal-based technique to ensure that when one thread changes credentials, all of the other threads in the process also change their credentials. For details, see nptl(7).
|
|
||||||
|
|
||||||
Turns out the setreuid syscalls apply only to the thread. GLIBC hides this away using RT signals to inform all threads to change credentials. Taking after **Samba** mergerfs uses **syscall(SYS_setreuid,...)** to set the callers credentials for that thread only. Jumping back to **root** as necessary should escalated privileges be needed (for instance: to clone paths).
|
|
||||||
|
|
||||||
For non-Linux systems mergerfs uses a read-write lock and changes credentials only when necessary. If multiple threads are to be user X then only the first one will need to change the processes credentials. So long as the other threads need to be user X they will take a readlock allow multiple threads to share the credentials. Once a request comes in to run as user Y that thread will attempt a write lock and change to Y's credentials when it can. If the ability to give writers priority is supported then that flag will be used so threads trying to change credentials don't starve. This isn't the best solution but should work reasonably well. As new platforms are supported if they offer per thread credentials those APIs will be adopted.
|
|
||||||
|
|
||||||
# SUPPORT
|
|
||||||
|
|
||||||
#### Issues with the software
|
|
||||||
* github.com: https://github.com/trapexit/mergerfs/issues
|
|
||||||
* email: trapexit@spawn.link
|
|
||||||
|
|
||||||
#### Support development
|
|
||||||
* Gratipay: https://gratipay.com/~trapexit
|
|
||||||
* BitCoin: 12CdMhEPQVmjz3SSynkAEuD5q9JmhTDCZA
|
|
||||||
|
|
|
||||||
16
buildtools/build-containerimage
Executable file
16
buildtools/build-containerimage
Executable file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
GIT_BRANCH="${1:-master}"
|
||||||
|
|
||||||
|
set -x
|
||||||
|
podman \
|
||||||
|
build \
|
||||||
|
--squash \
|
||||||
|
--no-cache \
|
||||||
|
--force-rm \
|
||||||
|
--build-arg="GIT_REPO=file:///mnt" \
|
||||||
|
--build-arg="BRANCH=${GIT_BRANCH}" \
|
||||||
|
-v "${PWD}":/mnt:ro \
|
||||||
|
-f "buildtools/containerimage/Containerfile" \
|
||||||
|
--tag "ghcr.io/trapexit/mergerfs:${GIT_BRANCH}" \
|
||||||
|
buildtools/
|
||||||
76
buildtools/build-mergerfs
Executable file
76
buildtools/build-mergerfs
Executable file
|
|
@ -0,0 +1,76 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ -e /tmp/build-env ]; then
|
||||||
|
. /tmp/build-env
|
||||||
|
fi
|
||||||
|
|
||||||
|
rpmbuild_flags()
|
||||||
|
{
|
||||||
|
case "$(command -v "${CXX:-g++}")" in
|
||||||
|
/opt/rh/*)
|
||||||
|
printf '%s' '--undefine _annotated_build'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ $# -ne 2 ]; then
|
||||||
|
echo "usage: $0 <branch> <git_repo>"
|
||||||
|
echo "argv: $@"
|
||||||
|
echo "argc: $#"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
GIT_REPO="${1}"
|
||||||
|
BRANCH="${2}"
|
||||||
|
BUILDDIR="/tmp/build"
|
||||||
|
|
||||||
|
echo "Clone source from ${GIT_REPO} to ${BUILDDIR}"
|
||||||
|
git \
|
||||||
|
clone \
|
||||||
|
--single-branch \
|
||||||
|
--branch="${BRANCH}" \
|
||||||
|
"${GIT_REPO}" \
|
||||||
|
"${BUILDDIR}"
|
||||||
|
|
||||||
|
cd "${BUILDDIR}"
|
||||||
|
|
||||||
|
git log HEAD^1..
|
||||||
|
|
||||||
|
mkdir "/build"
|
||||||
|
if [ -e /usr/bin/apt-get ]; then
|
||||||
|
make deb
|
||||||
|
elif [ -e /usr/bin/dnf ]; then
|
||||||
|
make RPMBUILD_FLAGS="$(rpmbuild_flags)" rpm
|
||||||
|
elif [ -e /usr/bin/yum ]; then
|
||||||
|
make RPMBUILD_FLAGS="$(rpmbuild_flags)" rpm
|
||||||
|
elif [ -e /sbin/apk ]; then
|
||||||
|
echo "NOT YET SUPPORTED"
|
||||||
|
exit 1
|
||||||
|
elif [ -e /usr/sbin/pkg ]; then
|
||||||
|
echo "NOT YET SUPPORTED"
|
||||||
|
exit 1
|
||||||
|
elif [ -e /usr/bin/pacman ]; then
|
||||||
|
make tarball
|
||||||
|
else
|
||||||
|
echo "NOT YET SUPPORTED"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Copy packages to host..."
|
||||||
|
if [ -e /usr/bin/pacman ]; then
|
||||||
|
find "${BUILDDIR}" \
|
||||||
|
-type f \
|
||||||
|
-name "*.tar.gz" \
|
||||||
|
-exec cp -v {} /build/ \;
|
||||||
|
else
|
||||||
|
find "${BUILDDIR}" \
|
||||||
|
-type f \
|
||||||
|
\( -name "*.deb" -or -name "*.rpm" \) \
|
||||||
|
-not -name "*dbgsym*" \
|
||||||
|
-not -name "*sym*" \
|
||||||
|
-not -name "*src.rpm" \
|
||||||
|
-exec cp -v {} /build/ \;
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
178
buildtools/build-release
Executable file
178
buildtools/build-release
Executable file
|
|
@ -0,0 +1,178 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
import argparse
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
|
def build(git_repo,
|
||||||
|
branch,
|
||||||
|
containerfile,
|
||||||
|
pkgdirpath):
|
||||||
|
timestamp = time.time_ns()
|
||||||
|
args = ['podman',
|
||||||
|
'build',
|
||||||
|
'--pull=always',
|
||||||
|
'--force-rm']
|
||||||
|
if os.path.exists(git_repo):
|
||||||
|
git_repo = os.path.realpath(git_repo)
|
||||||
|
args += ['-v',f'{git_repo}:/tmp/mergerfs.git:ro:z']
|
||||||
|
args += ['--build-arg=GIT_REPO=file:///tmp/mergerfs.git']
|
||||||
|
else:
|
||||||
|
args += [f'--build-arg=GIT_REPO={git_repo}']
|
||||||
|
os.makedirs(pkgdirpath,exist_ok=True)
|
||||||
|
args += ['-v',f'{os.path.realpath(pkgdirpath)}:/pkgs:ro']
|
||||||
|
args += ['-o',pkgdirpath,
|
||||||
|
'-f',containerfile,
|
||||||
|
f'--build-arg=BRANCH={branch}',
|
||||||
|
f'--build-arg=BUILD_TIMESTAMP={timestamp}',
|
||||||
|
'buildtools/']
|
||||||
|
# TODO: Capture output and write to log
|
||||||
|
print(args)
|
||||||
|
rv = subprocess.run(args)
|
||||||
|
report_filepath = os.path.join(pkgdirpath,"build-report.txt")
|
||||||
|
with open(report_filepath,"a+") as f:
|
||||||
|
build = os.path.basename(containerfile)
|
||||||
|
f.write(build + ": ")
|
||||||
|
f.write(f"branch={branch}; ")
|
||||||
|
f.write(f"timestamp={timestamp}; ")
|
||||||
|
f.write("rv=")
|
||||||
|
if rv.returncode == 0:
|
||||||
|
f.write("success;")
|
||||||
|
else:
|
||||||
|
f.write("fail;")
|
||||||
|
f.write("\n")
|
||||||
|
|
||||||
|
|
||||||
|
def setup():
|
||||||
|
# Detect distribution
|
||||||
|
if os.path.exists('/usr/bin/apt-get'):
|
||||||
|
args = ['sudo',
|
||||||
|
'apt-get',
|
||||||
|
'install',
|
||||||
|
'-fy',
|
||||||
|
'qemu-user-static',
|
||||||
|
'qemu-user-binfmt']
|
||||||
|
elif os.path.exists('/usr/bin/pacman'):
|
||||||
|
args = ['sudo',
|
||||||
|
'pacman',
|
||||||
|
'-Sy',
|
||||||
|
'--noconfirm',
|
||||||
|
'qemu-user-static']
|
||||||
|
else:
|
||||||
|
print("Unsupported distribution for setup")
|
||||||
|
sys.exit(1)
|
||||||
|
print(args)
|
||||||
|
subprocess.run(args)
|
||||||
|
setup_binfmt()
|
||||||
|
|
||||||
|
|
||||||
|
def setup_binfmt():
|
||||||
|
"""Register qemu-user-static binfmt handlers (needed on Arch, etc.)."""
|
||||||
|
binfmt_conf = """\
|
||||||
|
:qemu-aarch64:M::\\x7fELF\\x02\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\xb7\\x00:\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xfe\\xff\\xff\\xff:/usr/bin/qemu-aarch64-static:F
|
||||||
|
:qemu-arm:M::\\x7fELF\\x01\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\x28\\x00:\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xfe\\xff\\xff\\xff:/usr/bin/qemu-arm-static:F
|
||||||
|
:qemu-armeb:M::\\x7fELF\\x01\\x02\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\x28:\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xfe\\xff\\xff:/usr/bin/qemu-armeb-static:F
|
||||||
|
:qemu-riscv64:M::\\x7fELF\\x02\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\xf3\\x00:\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xfe\\xff\\xff\\xff:/usr/bin/qemu-riscv64-static:F
|
||||||
|
:qemu-i386:M::\\x7fELF\\x01\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\x03\\x00:\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xfe\\xff\\xff\\xff:/usr/bin/qemu-i386-static:F
|
||||||
|
"""
|
||||||
|
conf_path = '/etc/binfmt.d/qemu-static.conf'
|
||||||
|
print(f"Writing {conf_path}")
|
||||||
|
try:
|
||||||
|
with open(conf_path, 'w') as f:
|
||||||
|
f.write(binfmt_conf)
|
||||||
|
except PermissionError:
|
||||||
|
print(f"Permission denied writing {conf_path}; trying with sudo...")
|
||||||
|
subprocess.run(['sudo', 'tee', conf_path],
|
||||||
|
input=binfmt_conf.encode(), check=True)
|
||||||
|
|
||||||
|
print("Restarting systemd-binfmt...")
|
||||||
|
subprocess.run(['sudo', 'systemctl', 'restart', 'systemd-binfmt'])
|
||||||
|
|
||||||
|
|
||||||
|
def podman_cleanup():
|
||||||
|
args = ['podman',
|
||||||
|
'system',
|
||||||
|
'prune',
|
||||||
|
'-af']
|
||||||
|
print(args)
|
||||||
|
subprocess.run(args)
|
||||||
|
|
||||||
|
|
||||||
|
def parse_args():
|
||||||
|
p = argparse.ArgumentParser()
|
||||||
|
p.add_argument('--target',
|
||||||
|
default='debian:13.amd64')
|
||||||
|
p.add_argument('--pkgdirpath',
|
||||||
|
default='build/pkgs/')
|
||||||
|
p.add_argument('--branch',
|
||||||
|
default='master')
|
||||||
|
p.add_argument('--setup',
|
||||||
|
required=False,
|
||||||
|
action='store_true')
|
||||||
|
p.add_argument('--cleanup',
|
||||||
|
required=False,
|
||||||
|
action='store_true')
|
||||||
|
p.add_argument('--git-repo',
|
||||||
|
required=False,
|
||||||
|
type=str)
|
||||||
|
|
||||||
|
return p.parse_args()
|
||||||
|
|
||||||
|
|
||||||
|
def should_skip(filename):
|
||||||
|
if filename.endswith('~'):
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
args = parse_args()
|
||||||
|
print(args)
|
||||||
|
|
||||||
|
if args.setup:
|
||||||
|
setup()
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
if not args.git_repo:
|
||||||
|
print("error: the following arguments are required: --git-repo")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
containerfiles = []
|
||||||
|
basepath = 'buildtools/containerfiles'
|
||||||
|
if os.path.exists(f'{basepath}/{args.target}'):
|
||||||
|
containerfiles.append(f'{basepath}/{args.target}')
|
||||||
|
elif args.target == 'all':
|
||||||
|
for root,dirnames,filenames in os.walk(basepath):
|
||||||
|
filenames.sort()
|
||||||
|
for filename in filenames:
|
||||||
|
if should_skip(filename):
|
||||||
|
continue
|
||||||
|
containerfile = f'buildtools/containerfiles/{filename}'
|
||||||
|
containerfiles.append(containerfile)
|
||||||
|
else:
|
||||||
|
for root,dirnames,filenames in os.walk(basepath):
|
||||||
|
filenames.sort()
|
||||||
|
for filename in filenames:
|
||||||
|
if args.target not in filename:
|
||||||
|
continue
|
||||||
|
if should_skip(filename):
|
||||||
|
continue
|
||||||
|
containerfile = f'buildtools/containerfiles/{filename}'
|
||||||
|
containerfiles.append(containerfile)
|
||||||
|
|
||||||
|
for containerfile in containerfiles:
|
||||||
|
if args.cleanup:
|
||||||
|
podman_cleanup()
|
||||||
|
build(git_repo=args.git_repo,
|
||||||
|
branch=args.branch,
|
||||||
|
containerfile=containerfile,
|
||||||
|
pkgdirpath=args.pkgdirpath)
|
||||||
|
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
10
buildtools/containerfiles/debian:12.amd64
Normal file
10
buildtools/containerfiles/debian:12.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 debian:12 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:12.arm64
Normal file
10
buildtools/containerfiles/debian:12.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 debian:12 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:12.armhf
Normal file
10
buildtools/containerfiles/debian:12.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf debian:12 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:12.i386
Normal file
10
buildtools/containerfiles/debian:12.i386
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=i386 debian:12 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:13.amd64
Normal file
10
buildtools/containerfiles/debian:13.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 debian:13 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:13.arm64
Normal file
10
buildtools/containerfiles/debian:13.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 debian:13 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:13.armhf
Normal file
10
buildtools/containerfiles/debian:13.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf debian:13 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:13.i386
Normal file
10
buildtools/containerfiles/debian:13.i386
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=i386 debian:13 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/debian:13.riscv64
Normal file
10
buildtools/containerfiles/debian:13.riscv64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=riscv64 debian:13 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:40.amd64
Normal file
10
buildtools/containerfiles/fedora:40.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 fedora:40 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:40.arm64
Normal file
10
buildtools/containerfiles/fedora:40.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 fedora:40 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:41.amd64
Normal file
10
buildtools/containerfiles/fedora:41.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 fedora:41 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:41.arm64
Normal file
10
buildtools/containerfiles/fedora:41.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 fedora:41 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:42.amd64
Normal file
10
buildtools/containerfiles/fedora:42.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 fedora:42 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:42.arm64
Normal file
10
buildtools/containerfiles/fedora:42.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 fedora:42 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:43.amd64
Normal file
10
buildtools/containerfiles/fedora:43.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 fedora:43 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:43.arm64
Normal file
10
buildtools/containerfiles/fedora:43.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 fedora:43 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:44.amd64
Normal file
10
buildtools/containerfiles/fedora:44.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 fedora:44 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:44.arm64
Normal file
10
buildtools/containerfiles/fedora:44.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 fedora:44 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:45.amd64
Normal file
10
buildtools/containerfiles/fedora:45.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 fedora:45 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/fedora:45.arm64
Normal file
10
buildtools/containerfiles/fedora:45.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 fedora:45 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/rockylinux:10.amd64
Normal file
10
buildtools/containerfiles/rockylinux:10.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 quay.io/rockylinux/rockylinux:10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/rockylinux:10.arm64
Normal file
10
buildtools/containerfiles/rockylinux:10.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 quay.io/rockylinux/rockylinux:10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/rockylinux:8.amd64
Normal file
10
buildtools/containerfiles/rockylinux:8.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 quay.io/rockylinux/rockylinux:8 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/rockylinux:8.arm64
Normal file
10
buildtools/containerfiles/rockylinux:8.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 quay.io/rockylinux/rockylinux:8 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/rockylinux:9.amd64
Normal file
10
buildtools/containerfiles/rockylinux:9.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 quay.io/rockylinux/rockylinux:9 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/rockylinux:9.arm64
Normal file
10
buildtools/containerfiles/rockylinux:9.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 quay.io/rockylinux/rockylinux:9 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
15
buildtools/containerfiles/static.amd64
Normal file
15
buildtools/containerfiles/static.amd64
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
FROM --platform=linux/amd64 alpine:latest as build
|
||||||
|
COPY install-build-pkgs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN git clone --single-branch --branch="${BRANCH}" ${GIT_REPO} /tmp/mergerfs
|
||||||
|
WORKDIR /tmp/mergerfs
|
||||||
|
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install
|
||||||
|
RUN mkdir /build
|
||||||
|
RUN /tmp/usr/local/bin/mergerfs --version | head -n1 | cut -c 11- | tee /tmp/version
|
||||||
|
RUN tar cvfz /build/mergerfs-$(cat /tmp/version)-static-linux_amd64.tar.gz --directory=/tmp usr sbin
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
15
buildtools/containerfiles/static.arm64
Normal file
15
buildtools/containerfiles/static.arm64
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
FROM --platform=linux/arm64 alpine:latest as build
|
||||||
|
COPY install-build-pkgs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN git clone --single-branch --branch="${BRANCH}" ${GIT_REPO} /tmp/mergerfs
|
||||||
|
WORKDIR /tmp/mergerfs
|
||||||
|
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install
|
||||||
|
RUN mkdir /build
|
||||||
|
RUN /tmp/usr/local/bin/mergerfs --version | head -n1 | cut -c 11- | tee /tmp/version
|
||||||
|
RUN tar cvfz /build/mergerfs-$(cat /tmp/version)-static-linux_arm64.tar.gz --directory=/tmp usr sbin
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
15
buildtools/containerfiles/static.armhf
Normal file
15
buildtools/containerfiles/static.armhf
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
FROM --platform=linux/armhf alpine:latest as build
|
||||||
|
COPY install-build-pkgs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN git clone --single-branch --branch="${BRANCH}" ${GIT_REPO} /tmp/mergerfs
|
||||||
|
WORKDIR /tmp/mergerfs
|
||||||
|
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install
|
||||||
|
RUN mkdir /build
|
||||||
|
RUN /tmp/usr/local/bin/mergerfs --version | head -n1 | cut -c 11- | tee /tmp/version
|
||||||
|
RUN tar cvfz /build/mergerfs-$(cat /tmp/version)-static-linux_armhf.tar.gz --directory=/tmp usr sbin
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
15
buildtools/containerfiles/static.i386
Normal file
15
buildtools/containerfiles/static.i386
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
FROM --platform=linux/i386 alpine:latest as build
|
||||||
|
COPY install-build-pkgs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN git clone --single-branch --branch="${BRANCH}" ${GIT_REPO} /tmp/mergerfs
|
||||||
|
WORKDIR /tmp/mergerfs
|
||||||
|
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install
|
||||||
|
RUN mkdir /build
|
||||||
|
RUN /tmp/usr/local/bin/mergerfs --version | head -n1 | cut -c 11- | tee /tmp/version
|
||||||
|
RUN tar cvfz /build/mergerfs-$(cat /tmp/version)-static-linux_i386.tar.gz --directory=/tmp usr sbin
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
14
buildtools/containerfiles/static.installer
Normal file
14
buildtools/containerfiles/static.installer
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
FROM --platform=linux/amd64 ubuntu:latest as build
|
||||||
|
COPY install-build-pkgs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs && \
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get -qy --no-install-suggests --no-install-recommends install \
|
||||||
|
makeself
|
||||||
|
RUN mkdir -p /tmp/mergerfs/
|
||||||
|
RUN ls -lhd /pkgs
|
||||||
|
RUN cp -v /pkgs/*static*.gz /tmp/mergerfs/
|
||||||
|
RUN mkdir -p /build
|
||||||
|
RUN makeself /tmp/mergerfs/ /build/mergerfs-installer.run "mergerfs" echo "foo"
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
15
buildtools/containerfiles/static.riscv64
Normal file
15
buildtools/containerfiles/static.riscv64
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
FROM --platform=linux/riscv64 alpine:latest as build
|
||||||
|
COPY install-build-pkgs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN git clone --single-branch --branch="${BRANCH}" ${GIT_REPO} /tmp/mergerfs
|
||||||
|
WORKDIR /tmp/mergerfs
|
||||||
|
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install
|
||||||
|
RUN mkdir /build
|
||||||
|
RUN /tmp/usr/local/bin/mergerfs --version | head -n1 | cut -c 11- | tee /tmp/version
|
||||||
|
RUN tar cvfz /build/mergerfs-$(cat /tmp/version)-static-linux_riscv64.tar.gz --directory=/tmp usr sbin
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
17
buildtools/containerfiles/tarball
Normal file
17
buildtools/containerfiles/tarball
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
FROM alpine:latest as tarball
|
||||||
|
|
||||||
|
COPY install-build-pkgs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG BRANCH=master
|
||||||
|
ARG GIT_REPO
|
||||||
|
|
||||||
|
RUN git clone --single-branch "${GIT_REPO}" /tmp/mergerfs --branch="${BRANCH}"
|
||||||
|
RUN cd /tmp/mergerfs && make version tarball
|
||||||
|
|
||||||
|
RUN mkdir /build
|
||||||
|
RUN cp -v /tmp/mergerfs/*.tar.gz /build/
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=tarball /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:22.04.amd64
Normal file
10
buildtools/containerfiles/ubuntu:22.04.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 ubuntu:22.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:22.04.arm64
Normal file
10
buildtools/containerfiles/ubuntu:22.04.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 ubuntu:22.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:22.04.armhf
Normal file
10
buildtools/containerfiles/ubuntu:22.04.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf ubuntu:22.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:22.04.riscv64
Normal file
10
buildtools/containerfiles/ubuntu:22.04.riscv64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=riscv64 ubuntu:22.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:24.04.amd64
Normal file
10
buildtools/containerfiles/ubuntu:24.04.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 ubuntu:24.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:24.04.arm64
Normal file
10
buildtools/containerfiles/ubuntu:24.04.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 ubuntu:24.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:24.04.armhf
Normal file
10
buildtools/containerfiles/ubuntu:24.04.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf ubuntu:24.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:24.04.riscv64
Normal file
10
buildtools/containerfiles/ubuntu:24.04.riscv64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=riscv64 ubuntu:24.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:25.04.amd64
Normal file
10
buildtools/containerfiles/ubuntu:25.04.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 ubuntu:25.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:25.04.arm64
Normal file
10
buildtools/containerfiles/ubuntu:25.04.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 ubuntu:25.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:25.04.armhf
Normal file
10
buildtools/containerfiles/ubuntu:25.04.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf ubuntu:25.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:25.04.riscv64
Normal file
10
buildtools/containerfiles/ubuntu:25.04.riscv64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=riscv64 ubuntu:25.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:25.10.amd64
Normal file
10
buildtools/containerfiles/ubuntu:25.10.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 ubuntu:25.10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:25.10.arm64
Normal file
10
buildtools/containerfiles/ubuntu:25.10.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 ubuntu:25.10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:25.10.armhf
Normal file
10
buildtools/containerfiles/ubuntu:25.10.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf ubuntu:25.10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:25.10.riscv64
Normal file
10
buildtools/containerfiles/ubuntu:25.10.riscv64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=riscv64 ubuntu:25.10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:26.04.amd64
Normal file
10
buildtools/containerfiles/ubuntu:26.04.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 ubuntu:26.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:26.04.arm64
Normal file
10
buildtools/containerfiles/ubuntu:26.04.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 ubuntu:26.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:26.04.armhf
Normal file
10
buildtools/containerfiles/ubuntu:26.04.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf ubuntu:26.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:26.04.riscv64
Normal file
10
buildtools/containerfiles/ubuntu:26.04.riscv64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=riscv64 ubuntu:26.04 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:26.10.amd64
Normal file
10
buildtools/containerfiles/ubuntu:26.10.amd64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=amd64 ubuntu:26.10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:26.10.arm64
Normal file
10
buildtools/containerfiles/ubuntu:26.10.arm64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=arm64 ubuntu:26.10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:26.10.armhf
Normal file
10
buildtools/containerfiles/ubuntu:26.10.armhf
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=armhf ubuntu:26.10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
10
buildtools/containerfiles/ubuntu:26.10.riscv64
Normal file
10
buildtools/containerfiles/ubuntu:26.10.riscv64
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM --platform=riscv64 ubuntu:26.10 as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs $GIT_REPO $BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
19
buildtools/containerimage/Containerfile
Normal file
19
buildtools/containerimage/Containerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
FROM --platform=linux/amd64 alpine:latest as build
|
||||||
|
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
|
||||||
|
RUN <<EOF
|
||||||
|
apk add git gcc g++ make linux-headers
|
||||||
|
git clone --single-branch --branch="${BRANCH}" "${GIT_REPO}" /tmp/mergerfs
|
||||||
|
cd /tmp/mergerfs
|
||||||
|
make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp/install -j$(nproc) install
|
||||||
|
tar cvfz /tmp/mergerfs.tgz --directory=/tmp/install usr sbin
|
||||||
|
EOF
|
||||||
|
|
||||||
|
FROM --platform=linux/amd64 alpine:latest
|
||||||
|
RUN --mount=from=build,source=/tmp/mergerfs.tgz,target=/tmp/mergerfs.tgz <<EOF
|
||||||
|
tar xvf /tmp/mergerfs.tgz -C /
|
||||||
|
EOF
|
||||||
|
ENTRYPOINT ["/usr/local/bin/mergerfs"]
|
||||||
|
CMD ["--help"]
|
||||||
14
buildtools/create-branches
Executable file
14
buildtools/create-branches
Executable file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -x
|
||||||
|
|
||||||
|
BASEPATH="/tmp"
|
||||||
|
|
||||||
|
for x in $(seq -w 2)
|
||||||
|
do
|
||||||
|
FILEPATH="${BASEPATH}/mergerfs-${x}.img"
|
||||||
|
MOUNTPOINT="${BASEPATH}/mergerfs-${x}"
|
||||||
|
truncate -s 1G "${FILEPATH}"
|
||||||
|
mkdir -p "${MOUNTPOINT}"
|
||||||
|
mkfs.ext4 -m0 -L "mergerfs${x}" "${FILEPATH}"
|
||||||
|
sudo mount "${FILEPATH}" "${MOUNTPOINT}"
|
||||||
|
done
|
||||||
119
buildtools/detect-local-target
Executable file
119
buildtools/detect-local-target
Executable file
|
|
@ -0,0 +1,119 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Detects local OS and maps to containerfiles target
|
||||||
|
# Returns target if found in buildtools/containerfiles/, empty string otherwise
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
CONTAINERFILES_DIR="buildtools/containerfiles"
|
||||||
|
|
||||||
|
# Detect system architecture and map to containerfiles format
|
||||||
|
detect_arch() {
|
||||||
|
local arch
|
||||||
|
arch=$(uname -m)
|
||||||
|
case "$arch" in
|
||||||
|
x86_64) echo "amd64" ;;
|
||||||
|
aarch64) echo "arm64" ;;
|
||||||
|
armv7l) echo "armhf" ;;
|
||||||
|
i686|i386) echo "i386" ;;
|
||||||
|
riscv64) echo "riscv64" ;;
|
||||||
|
*) echo "" ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
# Detect distro and version from os-release
|
||||||
|
detect_distro() {
|
||||||
|
local os_release="${1:-}"
|
||||||
|
if [[ ! -r "$os_release" ]]; then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Source the file safely - ID and VERSION_ID are environment variables
|
||||||
|
. "$os_release"
|
||||||
|
|
||||||
|
local distro="$ID"
|
||||||
|
local version="$VERSION_ID"
|
||||||
|
|
||||||
|
# Map distro ID to containerfiles naming convention
|
||||||
|
case "$distro" in
|
||||||
|
ubuntu|debian|fedora) ;;
|
||||||
|
rocky|rhel|centos|almalinux) distro="rockylinux" ;;
|
||||||
|
*)
|
||||||
|
# Fallback to ID_LIKE for derivatives
|
||||||
|
if [[ -n "${ID_LIKE:-}" ]]; then
|
||||||
|
case "$ID_LIKE" in
|
||||||
|
*ubuntu*) distro="ubuntu" ;;
|
||||||
|
*debian*) distro="debian" ;;
|
||||||
|
*fedora*) distro="fedora" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Only return if we have valid distro and version
|
||||||
|
if [[ -n "$distro" && -n "$version" ]]; then
|
||||||
|
echo "$distro:$version"
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Try to find a matching containerfile target
|
||||||
|
find_containerfile() {
|
||||||
|
local target="$1"
|
||||||
|
local containerfile="${CONTAINERFILES_DIR}/${target}"
|
||||||
|
|
||||||
|
# Direct match
|
||||||
|
if [[ -d "$containerfile" || -f "$containerfile" ]]; then
|
||||||
|
echo "$target"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# Main detection logic
|
||||||
|
main() {
|
||||||
|
local arch
|
||||||
|
|
||||||
|
# Detect architecture
|
||||||
|
arch=$(detect_arch)
|
||||||
|
if [[ -z "$arch" ]]; then
|
||||||
|
echo "WARNING: Could not detect system architecture" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Try to detect distro from multiple locations
|
||||||
|
local distro_ver
|
||||||
|
distro_ver=$(detect_distro "/etc/os-release") || \
|
||||||
|
distro_ver=$(detect_distro "/usr/lib/os-release") || {
|
||||||
|
echo "WARNING: Could not detect distro from os-release" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# Build target string
|
||||||
|
local target="${distro_ver}.${arch}"
|
||||||
|
|
||||||
|
# Try to find matching containerfile
|
||||||
|
if find_containerfile "$target"; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Try with partial version matching (e.g., 25.10 → 25)
|
||||||
|
local distro="${distro_ver%%:*}"
|
||||||
|
local version="${distro_ver##*:}"
|
||||||
|
|
||||||
|
# Strip last minor version number and try again
|
||||||
|
local short_version="${version%.*}"
|
||||||
|
if [[ -n "$short_version" ]]; then
|
||||||
|
target="${distro}:${short_version}.${arch}"
|
||||||
|
if find_containerfile "$target"; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# No match found
|
||||||
|
echo "WARNING: No containerfile found for target: ${distro_ver}.${arch}" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
main "$@"
|
||||||
27
buildtools/gen-containerfiles
Executable file
27
buildtools/gen-containerfiles
Executable file
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
input_file="${1}"
|
||||||
|
|
||||||
|
while IFS= read -r line || [ -n "$line" ]; do
|
||||||
|
# Skip empty lines
|
||||||
|
if [ -z "$line" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
image=$(echo "$line" | cut -d' ' -f1)
|
||||||
|
platform=$(echo "$line" | cut -d' ' -f2-)
|
||||||
|
|
||||||
|
echo "${image} ${platform}"
|
||||||
|
cat <<EOF > "containerfiles/${image##*/}.${platform}"
|
||||||
|
FROM --platform=${platform} ${image} as build
|
||||||
|
COPY install-build-pkgs build-mergerfs /tmp/
|
||||||
|
RUN /tmp/install-build-pkgs
|
||||||
|
ARG BUILD_TIMESTAMP=0
|
||||||
|
ARG GIT_REPO
|
||||||
|
ARG BRANCH
|
||||||
|
RUN /tmp/build-mergerfs \$GIT_REPO \$BRANCH
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=build /build/ /
|
||||||
|
EOF
|
||||||
|
done < "$input_file"
|
||||||
202
buildtools/git2debcl
Executable file
202
buildtools/git2debcl
Executable file
|
|
@ -0,0 +1,202 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link>
|
||||||
|
|
||||||
|
# Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
|
# copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
# Default values
|
||||||
|
NAME=""
|
||||||
|
VERSION="::guess::"
|
||||||
|
DISTRO="::guess::"
|
||||||
|
CODENAME="::guess::"
|
||||||
|
URGENCY="medium"
|
||||||
|
|
||||||
|
# Function to display usage
|
||||||
|
usage() {
|
||||||
|
cat << EOF
|
||||||
|
Usage: $0 --name NAME [OPTIONS]
|
||||||
|
|
||||||
|
Generated debian/changelog from git log
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--name NAME Name of package (required)
|
||||||
|
--version VERSION Place in git history to include upto (default: ::guess::)
|
||||||
|
--distro DISTRO Distribution name (default: ::guess::)
|
||||||
|
--codename NAME Distribution codename (default: ::guess::)
|
||||||
|
--urgency URGENCY Urgency (default: medium)
|
||||||
|
-h, --help Show this help message
|
||||||
|
EOF
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# Parse command line arguments
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case "$1" in
|
||||||
|
--name)
|
||||||
|
NAME="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
--version)
|
||||||
|
VERSION="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
--distro)
|
||||||
|
DISTRO="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
--codename)
|
||||||
|
CODENAME="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
--urgency)
|
||||||
|
URGENCY="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
-h|--help)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unknown option: $1" >&2
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
# Check required arguments
|
||||||
|
if [ -z "$NAME" ]; then
|
||||||
|
echo "Error: --name is required" >&2
|
||||||
|
usage
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Function to get git tags sorted in reverse order
|
||||||
|
git_tags() {
|
||||||
|
git tag -l | sort -rV
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to get git log between two tags
|
||||||
|
git_log() {
|
||||||
|
local fromtag="$1"
|
||||||
|
local totag="$2"
|
||||||
|
git log --no-merges --oneline "${fromtag}...${totag}" 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to get author and time for a tag
|
||||||
|
git_author_and_time() {
|
||||||
|
local tag="$1"
|
||||||
|
git log -1 --format="-- %an <%ae> %cD" "$tag"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to get git version
|
||||||
|
git_version() {
|
||||||
|
git describe --always --tags --dirty 2>/dev/null || echo "unknown"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to guess distribution
|
||||||
|
guess_distro() {
|
||||||
|
if command -v lsb_release >/dev/null 2>&1; then
|
||||||
|
lsb_release -i -s 2>/dev/null | tr '[:upper:]' '[:lower:]'
|
||||||
|
else
|
||||||
|
echo "unknown"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to guess codename
|
||||||
|
guess_codename() {
|
||||||
|
if command -v lsb_release >/dev/null 2>&1; then
|
||||||
|
lsb_release -c -s 2>/dev/null | tr '[:upper:]' '[:lower:]'
|
||||||
|
else
|
||||||
|
echo "unknown"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Handle guessing of values
|
||||||
|
if [ "$DISTRO" = "::guess::" ]; then
|
||||||
|
DISTRO=$(guess_distro)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$CODENAME" = "::guess::" ]; then
|
||||||
|
CODENAME=$(guess_codename)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$VERSION" = "::guess::" ]; then
|
||||||
|
VERSION=$(git_version)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Version suffix
|
||||||
|
VERSUFFIX="~${DISTRO}-${CODENAME}"
|
||||||
|
|
||||||
|
# Get all tags
|
||||||
|
TAGS=$(git_tags)
|
||||||
|
|
||||||
|
# Create temporary file for tag pairs
|
||||||
|
TMPFILE=$(mktemp)
|
||||||
|
trap 'rm -f "$TMPFILE"' EXIT
|
||||||
|
|
||||||
|
# Check if version is in tags
|
||||||
|
if echo "$TAGS" | grep -q "^${VERSION}$"; then
|
||||||
|
# If version is a tag, start from that tag
|
||||||
|
echo "$TAGS" | awk -v ver="$VERSION" 'BEGIN{found=0} {if($0==ver)found=1; if(found)print}' > "$TMPFILE"
|
||||||
|
else
|
||||||
|
# If version is not a tag, use HEAD as starting point
|
||||||
|
echo "$VERSION HEAD" > "$TMPFILE"
|
||||||
|
echo "$TAGS" >> "$TMPFILE"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Process tags and generate changelog
|
||||||
|
PREV_TAG=""
|
||||||
|
PREV_REF=""
|
||||||
|
FIRST=1
|
||||||
|
|
||||||
|
while IFS= read -r line; do
|
||||||
|
if [ -z "$line" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Handle the special case of VERSION HEAD
|
||||||
|
if [ "$line" = "$VERSION HEAD" ]; then
|
||||||
|
TAG="$VERSION"
|
||||||
|
REF="HEAD"
|
||||||
|
else
|
||||||
|
TAG="$line"
|
||||||
|
REF="$line"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$PREV_TAG" ]; then
|
||||||
|
# Get log entries between current and previous tag
|
||||||
|
LOG_ENTRIES=$(git_log "$REF" "$PREV_REF")
|
||||||
|
|
||||||
|
# Skip if no changes
|
||||||
|
if [ -z "$LOG_ENTRIES" ] || [ "$LOG_ENTRIES" = "" ]; then
|
||||||
|
PREV_TAG="$TAG"
|
||||||
|
PREV_REF="$REF"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Print package header
|
||||||
|
printf "%s (%s%s) %s; urgency=%s\n\n" "$NAME" "$PREV_TAG" "$VERSUFFIX" "$CODENAME" "$URGENCY"
|
||||||
|
|
||||||
|
# Print each log entry
|
||||||
|
echo "$LOG_ENTRIES" | while IFS= read -r entry; do
|
||||||
|
if [ -n "$entry" ]; then
|
||||||
|
printf " * %s\n" "$entry"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Print author and time
|
||||||
|
AUTHOR_TIME=$(git_author_and_time "$PREV_REF")
|
||||||
|
printf "\n %s\n\n" "$AUTHOR_TIME"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PREV_TAG="$TAG"
|
||||||
|
PREV_REF="$REF"
|
||||||
|
done < "$TMPFILE"
|
||||||
166
buildtools/install-build-pkgs
Executable file
166
buildtools/install-build-pkgs
Executable file
|
|
@ -0,0 +1,166 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
BUILD_ENV=/tmp/build-env
|
||||||
|
|
||||||
|
write_gcc_env()
|
||||||
|
{
|
||||||
|
{
|
||||||
|
printf 'export CC=%s\n' "$1"
|
||||||
|
printf 'export CXX=%s\n' "$2"
|
||||||
|
} > "$BUILD_ENV"
|
||||||
|
}
|
||||||
|
|
||||||
|
write_toolset_env()
|
||||||
|
{
|
||||||
|
{
|
||||||
|
printf '. %s\n' "$1"
|
||||||
|
printf 'export CC=gcc\n'
|
||||||
|
printf 'export CXX=g++\n'
|
||||||
|
} > "$BUILD_ENV"
|
||||||
|
}
|
||||||
|
|
||||||
|
latest_apt_gxx()
|
||||||
|
{
|
||||||
|
apt-cache --names-only search '^g[+][+]-[0-9]' \
|
||||||
|
| sed -n 's/^\(g++-[0-9][0-9]*\) .*/\1/p' \
|
||||||
|
| sort -t- -k2,2V \
|
||||||
|
| tail -n 1
|
||||||
|
}
|
||||||
|
|
||||||
|
latest_dnf_toolset()
|
||||||
|
{
|
||||||
|
dnf -q list --showduplicates 'gcc-toolset-*-gcc-c++' 2>/dev/null \
|
||||||
|
| sed -n 's/^gcc-toolset-\([0-9][0-9]*\)-gcc-c++\..*/\1/p' \
|
||||||
|
| sort -V \
|
||||||
|
| tail -n 1
|
||||||
|
}
|
||||||
|
|
||||||
|
latest_yum_toolset()
|
||||||
|
{
|
||||||
|
yum -q list available 'devtoolset-*-gcc-c++' 2>/dev/null \
|
||||||
|
| sed -n 's/^devtoolset-\([0-9][0-9]*\)-gcc-c++\..*/\1/p' \
|
||||||
|
| sort -V \
|
||||||
|
| tail -n 1
|
||||||
|
}
|
||||||
|
|
||||||
|
version_gt()
|
||||||
|
{
|
||||||
|
highest="$(printf '%s\n%s\n' "$1" "$2" | sort -V | tail -n 1)"
|
||||||
|
[ "$highest" = "$1" ] && [ "$1" != "$2" ]
|
||||||
|
}
|
||||||
|
|
||||||
|
check_cxx20()
|
||||||
|
{
|
||||||
|
cxx="${CXX:-g++}"
|
||||||
|
test_src=/tmp/mergerfs-cxx20-check.cpp
|
||||||
|
test_bin=/tmp/mergerfs-cxx20-check
|
||||||
|
|
||||||
|
cat > "$test_src" <<'EOF'
|
||||||
|
template <typename T>
|
||||||
|
concept Incrementable = requires(T value) { value + 1; };
|
||||||
|
|
||||||
|
static_assert(Incrementable<int>);
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if ! "$cxx" -std=c++20 "$test_src" -o "$test_bin" >/dev/null 2>&1; then
|
||||||
|
echo "error: $cxx does not support C++20" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f "$test_src" "$test_bin"
|
||||||
|
}
|
||||||
|
|
||||||
|
: > "$BUILD_ENV"
|
||||||
|
|
||||||
|
if [ -e /usr/bin/apt-get ]; then
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
apt-get -qy update
|
||||||
|
cxx_pkg="$(latest_apt_gxx)"
|
||||||
|
if [ -n "$cxx_pkg" ]; then
|
||||||
|
gcc_pkg="gcc-${cxx_pkg#g++-}"
|
||||||
|
compiler_pkgs="$gcc_pkg $cxx_pkg"
|
||||||
|
write_gcc_env "$gcc_pkg" "$cxx_pkg"
|
||||||
|
else
|
||||||
|
compiler_pkgs="g++"
|
||||||
|
write_gcc_env gcc g++
|
||||||
|
fi
|
||||||
|
apt-get -qy --force-yes --no-install-suggests --no-install-recommends \
|
||||||
|
install \
|
||||||
|
ca-certificates \
|
||||||
|
build-essential \
|
||||||
|
dpkg-dev \
|
||||||
|
git \
|
||||||
|
$compiler_pkgs \
|
||||||
|
debhelper \
|
||||||
|
lsb-release \
|
||||||
|
fakeroot
|
||||||
|
. "$BUILD_ENV"
|
||||||
|
check_cxx20
|
||||||
|
elif [ -e /usr/bin/dnf ]; then
|
||||||
|
dnf -y update
|
||||||
|
toolset="$(latest_dnf_toolset)"
|
||||||
|
dnf -y install \
|
||||||
|
git rpm-build gcc-c++ make which libatomic
|
||||||
|
default_gxx_major="$(g++ -dumpversion | cut -f1 -d.)"
|
||||||
|
if [ -n "$toolset" ] && version_gt "$toolset" "$default_gxx_major"; then
|
||||||
|
dnf -y install \
|
||||||
|
"gcc-toolset-${toolset}-gcc" \
|
||||||
|
"gcc-toolset-${toolset}-gcc-c++"
|
||||||
|
if [ -f "/usr/lib/gcc-toolset/${toolset}-env.source" ]; then
|
||||||
|
write_toolset_env "/usr/lib/gcc-toolset/${toolset}-env.source"
|
||||||
|
else
|
||||||
|
write_toolset_env "/opt/rh/gcc-toolset-${toolset}/enable"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
write_gcc_env gcc g++
|
||||||
|
fi
|
||||||
|
. "$BUILD_ENV"
|
||||||
|
check_cxx20
|
||||||
|
elif [ -e /usr/bin/yum ]; then
|
||||||
|
yum -y update
|
||||||
|
yum -y install \
|
||||||
|
git rpm-build gcc-c++ make which
|
||||||
|
yum -y install centos-release-scl || true
|
||||||
|
yum -y update
|
||||||
|
toolset="$(latest_yum_toolset)"
|
||||||
|
default_gxx_major="$(g++ -dumpversion | cut -f1 -d.)"
|
||||||
|
if [ -n "$toolset" ] && version_gt "$toolset" "$default_gxx_major"; then
|
||||||
|
yum -y install \
|
||||||
|
"devtoolset-${toolset}-gcc" \
|
||||||
|
"devtoolset-${toolset}-gcc-c++"
|
||||||
|
write_toolset_env "/opt/rh/devtoolset-${toolset}/enable"
|
||||||
|
else
|
||||||
|
write_gcc_env gcc g++
|
||||||
|
fi
|
||||||
|
. "$BUILD_ENV"
|
||||||
|
check_cxx20
|
||||||
|
elif [ -e /usr/bin/zypper ]; then
|
||||||
|
zypper update -y
|
||||||
|
zypper install -y \
|
||||||
|
git rpm-build gcc-c++ make which
|
||||||
|
write_gcc_env gcc g++
|
||||||
|
. "$BUILD_ENV"
|
||||||
|
check_cxx20
|
||||||
|
elif [ -e /sbin/apk ]; then
|
||||||
|
apk add \
|
||||||
|
abuild git gcc g++ make \
|
||||||
|
linux-headers
|
||||||
|
write_gcc_env gcc g++
|
||||||
|
. "$BUILD_ENV"
|
||||||
|
check_cxx20
|
||||||
|
elif [ -e /usr/sbin/pkg ]; then
|
||||||
|
pkg install \
|
||||||
|
git gmake gcc
|
||||||
|
elif [ -e /usr/bin/pacman ]; then
|
||||||
|
pacman -Sy --noconfirm base-devel git fakeroot
|
||||||
|
write_gcc_env gcc g++
|
||||||
|
. "$BUILD_ENV"
|
||||||
|
check_cxx20
|
||||||
|
fi
|
||||||
32
buildtools/install-build-tools
Executable file
32
buildtools/install-build-tools
Executable file
|
|
@ -0,0 +1,32 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
|
SUDO=
|
||||||
|
elif command -v sudo >/dev/null 2>&1; then
|
||||||
|
SUDO=sudo
|
||||||
|
elif command -v doas >/dev/null 2>&1; then
|
||||||
|
SUDO=doas
|
||||||
|
else
|
||||||
|
printf '%s\n' "error: need root privileges; run as root or install sudo/doas" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e /usr/bin/apt-get ]; then
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
${SUDO} apt-get -qy update
|
||||||
|
${SUDO} apt-get -qy --no-install-suggests --no-install-recommends install \
|
||||||
|
qemu-user-static \
|
||||||
|
podman
|
||||||
|
elif [ -e /usr/bin/dnf ]; then
|
||||||
|
${SUDO} dnf -y update
|
||||||
|
${SUDO} dnf -y install \
|
||||||
|
qemu-user-static \
|
||||||
|
podman
|
||||||
|
elif [ -e /sbin/apk ]; then
|
||||||
|
${SUDO} apk add \
|
||||||
|
python3 \
|
||||||
|
qemu-user-static \
|
||||||
|
podman
|
||||||
|
elif [ -e /usr/bin/pacman ]; then
|
||||||
|
${SUDO} pacman -Sy --noconfirm qemu-user-static podman
|
||||||
|
fi
|
||||||
51
buildtools/target-containers.txt
Normal file
51
buildtools/target-containers.txt
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
debian:12 amd64
|
||||||
|
debian:12 arm64
|
||||||
|
debian:12 armhf
|
||||||
|
debian:12 i386
|
||||||
|
debian:13 amd64
|
||||||
|
debian:13 arm64
|
||||||
|
debian:13 armhf
|
||||||
|
debian:13 i386
|
||||||
|
debian:13 riscv64
|
||||||
|
fedora:40 amd64
|
||||||
|
fedora:40 arm64
|
||||||
|
fedora:41 amd64
|
||||||
|
fedora:41 arm64
|
||||||
|
fedora:42 amd64
|
||||||
|
fedora:42 arm64
|
||||||
|
fedora:43 amd64
|
||||||
|
fedora:43 arm64
|
||||||
|
fedora:44 amd64
|
||||||
|
fedora:44 arm64
|
||||||
|
fedora:45 amd64
|
||||||
|
fedora:45 arm64
|
||||||
|
quay.io/rockylinux/rockylinux:10 amd64
|
||||||
|
quay.io/rockylinux/rockylinux:10 arm64
|
||||||
|
quay.io/rockylinux/rockylinux:8 amd64
|
||||||
|
quay.io/rockylinux/rockylinux:8 arm64
|
||||||
|
quay.io/rockylinux/rockylinux:9 amd64
|
||||||
|
quay.io/rockylinux/rockylinux:9 arm64
|
||||||
|
ubuntu:22.04 amd64
|
||||||
|
ubuntu:22.04 arm64
|
||||||
|
ubuntu:22.04 armhf
|
||||||
|
ubuntu:22.04 riscv64
|
||||||
|
ubuntu:24.04 amd64
|
||||||
|
ubuntu:24.04 arm64
|
||||||
|
ubuntu:24.04 armhf
|
||||||
|
ubuntu:24.04 riscv64
|
||||||
|
ubuntu:25.04 amd64
|
||||||
|
ubuntu:25.04 arm64
|
||||||
|
ubuntu:25.04 armhf
|
||||||
|
ubuntu:25.04 riscv64
|
||||||
|
ubuntu:25.10 amd64
|
||||||
|
ubuntu:25.10 arm64
|
||||||
|
ubuntu:25.10 armhf
|
||||||
|
ubuntu:25.10 riscv64
|
||||||
|
ubuntu:26.04 amd64
|
||||||
|
ubuntu:26.04 arm64
|
||||||
|
ubuntu:26.04 armhf
|
||||||
|
ubuntu:26.04 riscv64
|
||||||
|
ubuntu:26.10 amd64
|
||||||
|
ubuntu:26.10 arm64
|
||||||
|
ubuntu:26.10 armhf
|
||||||
|
ubuntu:26.10 riscv64
|
||||||
20
buildtools/update-version
Executable file
20
buildtools/update-version
Executable file
|
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
VERSION=$(git describe --always --tags --dirty)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
VERSION=$(cat VERSION)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${VERSION}" = "" ]; then
|
||||||
|
VERSION="unknown"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "version = ${VERSION}"
|
||||||
|
echo -n "${VERSION}" > VERSION
|
||||||
|
grep -sq \"${VERSION}\" src/version.hpp
|
||||||
|
RV=$?
|
||||||
|
if [ $RV -ne 0 ]; then
|
||||||
|
echo "Writing 'src/version.hpp'"
|
||||||
|
echo "#pragma once" > src/version.hpp
|
||||||
|
echo "static const char MERGERFS_VERSION[] = \"${VERSION}\";" >> src/version.hpp
|
||||||
|
fi
|
||||||
1
debian/compat
vendored
1
debian/compat
vendored
|
|
@ -1 +0,0 @@
|
||||||
9
|
|
||||||
13
debian/control
vendored
13
debian/control
vendored
|
|
@ -2,10 +2,7 @@ Source: mergerfs
|
||||||
Section: utils
|
Section: utils
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Antonio SJ Musumeci <trapexit@spawn.link>
|
Maintainer: Antonio SJ Musumeci <trapexit@spawn.link>
|
||||||
Build-Depends: debhelper (>= 8.0.0),
|
Build-Depends: debhelper-compat (= 10)
|
||||||
libfuse-dev,
|
|
||||||
libattr1-dev,
|
|
||||||
pkg-config
|
|
||||||
Standards-Version: 3.9.4
|
Standards-Version: 3.9.4
|
||||||
Homepage: http://github.com/trapexit/mergerfs
|
Homepage: http://github.com/trapexit/mergerfs
|
||||||
|
|
||||||
|
|
@ -13,8 +10,8 @@ Package: mergerfs
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${shlibs:Depends},
|
Depends: ${shlibs:Depends},
|
||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
libfuse2
|
fuse [linux-any] | fuse4bsd [kfreebsd-any]
|
||||||
Description: another FUSE union filesystem
|
Description: another FUSE union filesystem
|
||||||
mergerfs is similar to mhddfs, unionfs, and aufs. Like mhddfs in that it too
|
mergerfs is a union filesystem geared towards simplifying storage and
|
||||||
uses FUSE. Like aufs in that it provides multiple policies for how to handle
|
management of files across numerous commodity storage devices. It is
|
||||||
behavior.
|
similar to mhddfs, unionfs, and aufs.
|
||||||
|
|
|
||||||
9
debian/mergerfs.postinst
vendored
Executable file
9
debian/mergerfs.postinst
vendored
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case "${1}" in
|
||||||
|
configure)
|
||||||
|
chmod 4755 /usr/bin/mergerfs-fusermount
|
||||||
|
;;
|
||||||
|
esac
|
||||||
11
debian/rules
vendored
11
debian/rules
vendored
|
|
@ -1,11 +1,16 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
# -*- makefile -*-
|
# -*- makefile -*-
|
||||||
|
|
||||||
# Uncomment this to turn on verbose mode.
|
export DH_VERBOSE=1
|
||||||
#export DH_VERBOSE=1
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
dh_auto_build --parallel -- release
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
$(MAKE) DESTDIR=$(CURDIR)/debian/mergerfs PREFIX=/usr install
|
$(MAKE) \
|
||||||
|
DESTDIR=$(CURDIR)/debian/mergerfs \
|
||||||
|
PREFIX=/usr \
|
||||||
|
install
|
||||||
948
man/mergerfs.1
948
man/mergerfs.1
|
|
@ -1,856 +1,120 @@
|
||||||
.\"t
|
.TH MERGERFS 1 "May 2025" "mergerfs" "User Commands"
|
||||||
.TH "mergerfs" "1" "2016\-02\-21" "mergerfs user manual" ""
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
.PP
|
mergerfs \- a featureful union filesystem
|
||||||
mergerfs \- another (FUSE based) union filesystem
|
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.PP
|
.B mergerfs
|
||||||
mergerfs \-o<options> <srcmounts> <mountpoint>
|
[options] <branches> <mountpoint>
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.PP
|
.B mergerfs
|
||||||
\f[B]mergerfs\f[] is a union filesystem geared towards simplifing
|
is a FUSE-based union filesystem geared towards simplifying storage and management of files across numerous commodity storage devices. It is similar to
|
||||||
storage and management of files across numerous commodity storage
|
.BR mhddfs ,
|
||||||
devices.
|
.BR unionfs ,
|
||||||
It is similar to \f[B]mhddfs\f[], \f[B]unionfs\f[], and \f[B]aufs\f[].
|
and
|
||||||
|
.BR aufs .
|
||||||
|
.SH QUICKSTART
|
||||||
|
.UR https://trapexit.github.io/mergerfs/latest/quickstart
|
||||||
|
.LI https://trapexit.github.io/mergerfs/latest/quickstart
|
||||||
|
.UE
|
||||||
|
.SH DOCUMENTATION
|
||||||
|
.UR https://trapexit.github.io/mergerfs
|
||||||
|
.LI https://trapexit.github.io/mergerfs
|
||||||
|
.UE
|
||||||
|
.SH SUPPORT
|
||||||
|
.UR https://trapexit.github.io/mergerfs/latest/support
|
||||||
|
.LI https://trapexit.github.io/mergerfs/latest/support
|
||||||
|
.UE
|
||||||
.SH FEATURES
|
.SH FEATURES
|
||||||
.IP \[bu] 2
|
.IP \[bu] 2
|
||||||
Runs in userspace (FUSE)
|
Logically combine numerous filesystems/paths into a single mount point
|
||||||
.IP \[bu] 2
|
.IP \[bu]
|
||||||
Configurable behaviors
|
Combine paths of the same or different filesystems
|
||||||
.IP \[bu] 2
|
.IP \[bu]
|
||||||
|
Ability to add or remove filesystems/paths without impacting the rest of the data
|
||||||
|
.IP \[bu]
|
||||||
|
Unaffected by individual filesystem failure
|
||||||
|
.IP \[bu]
|
||||||
|
Configurable file selection and creation placement
|
||||||
|
.IP \[bu]
|
||||||
|
Works with filesystems of any size
|
||||||
|
.IP \[bu]
|
||||||
|
Works with filesystems of almost any type
|
||||||
|
.IP \[bu]
|
||||||
|
Ignore read-only filesystems when creating files
|
||||||
|
.IP \[bu]
|
||||||
|
Hard link copy-on-write / CoW
|
||||||
|
.IP \[bu]
|
||||||
|
Runtime configurable
|
||||||
|
.IP \[bu]
|
||||||
Support for extended attributes (xattrs)
|
Support for extended attributes (xattrs)
|
||||||
.IP \[bu] 2
|
.IP \[bu]
|
||||||
Support for file attributes (chattr)
|
Support for file attributes (chattr)
|
||||||
|
.IP \[bu]
|
||||||
|
Support for POSIX ACLs
|
||||||
|
.SH NON-FEATURES
|
||||||
.IP \[bu] 2
|
.IP \[bu] 2
|
||||||
Runtime configurable (via xattrs)
|
Read/write overlay on top of read-only filesystem like OverlayFS
|
||||||
.IP \[bu] 2
|
.IP \[bu]
|
||||||
Safe to run as root
|
File whiteout
|
||||||
.IP \[bu] 2
|
.IP \[bu]
|
||||||
Opportunistic credential caching
|
RAID-like parity calculation
|
||||||
.IP \[bu] 2
|
.IP \[bu]
|
||||||
Works with heterogeneous filesystem types
|
Redundancy
|
||||||
.IP \[bu] 2
|
.IP \[bu]
|
||||||
Handling of writes to full drives
|
Splitting of files across branches
|
||||||
.IP \[bu] 2
|
.SH HOW IT WORKS
|
||||||
Handles pool of readonly and read/write drives
|
.B mergerfs
|
||||||
.SH OPTIONS
|
logically merges multiple filesystem paths together. It acts as a proxy to the underlying filesystem paths, combining the behaviors of some functions and being a selector for others.
|
||||||
.SS options
|
|
||||||
.IP \[bu] 2
|
|
||||||
\f[B]defaults\f[]: a shortcut for FUSE\[aq]s \f[B]atomic_o_trunc\f[],
|
|
||||||
\f[B]auto_cache\f[], \f[B]big_writes\f[], \f[B]default_permissions\f[],
|
|
||||||
\f[B]splice_move\f[], \f[B]splice_read\f[], and \f[B]splice_write\f[].
|
|
||||||
These options seem to provide the best performance.
|
|
||||||
.IP \[bu] 2
|
|
||||||
\f[B]direct_io\f[]: causes FUSE to bypass an addition caching step which
|
|
||||||
can increase write speeds at the detriment of read speed.
|
|
||||||
.IP \[bu] 2
|
|
||||||
\f[B]minfreespace\f[]: the minimum space value used for the
|
|
||||||
\f[B]lfs\f[], \f[B]fwfs\f[], \f[B]eplfs\f[], & \f[B]epmfs\f[] policies.
|
|
||||||
Understands \[aq]K\[aq], \[aq]M\[aq], and \[aq]G\[aq] to represent
|
|
||||||
kilobyte, megabyte, and gigabyte respectively.
|
|
||||||
(default: 4G)
|
|
||||||
.IP \[bu] 2
|
|
||||||
\f[B]moveonenospc\f[]: when enabled (set to \f[B]true\f[]) if a
|
|
||||||
\f[B]write\f[] fails with \f[B]ENOSPC\f[] a scan of all drives will be
|
|
||||||
done looking for the drive with most free space which is at least the
|
|
||||||
size of the file plus the amount which failed to write.
|
|
||||||
An attempt to move the file to that drive will occur (keeping all
|
|
||||||
metadata possible) and if successful the original is unlinked and the
|
|
||||||
write retried.
|
|
||||||
(default: false)
|
|
||||||
.IP \[bu] 2
|
|
||||||
\f[B]func.<func>=<policy>\f[]: sets the specific FUSE function\[aq]s
|
|
||||||
policy.
|
|
||||||
See below for the list of value types.
|
|
||||||
Example: \f[B]func.getattr=newest\f[]
|
|
||||||
.IP \[bu] 2
|
|
||||||
\f[B]category.<category>=<policy>\f[]: Sets policy of all FUSE functions
|
|
||||||
in the provided category.
|
|
||||||
Example: \f[B]category.create=mfs\f[]
|
|
||||||
.PP
|
|
||||||
\f[B]NOTE:\f[] Options are evaluated in the order listed so if the
|
|
||||||
options are \f[B]func.rmdir=rand,category.action=ff\f[] the
|
|
||||||
\f[B]action\f[] category setting will override the \f[B]rmdir\f[]
|
|
||||||
setting.
|
|
||||||
.SS srcmounts
|
|
||||||
.PP
|
|
||||||
The source mounts argument is a colon (\[aq]:\[aq]) delimited list of
|
|
||||||
paths.
|
|
||||||
To make it simpler to include multiple source mounts without having to
|
|
||||||
modify your fstab (http://linux.die.net/man/5/fstab) we also support
|
|
||||||
globbing (http://linux.die.net/man/7/glob).
|
|
||||||
\f[B]The globbing tokens MUST be escaped when using via the shell else
|
|
||||||
the shell itself will probably expand it.\f[]
|
|
||||||
.IP
|
|
||||||
.nf
|
|
||||||
\f[C]
|
|
||||||
$\ mergerfs\ /mnt/disk\\*:/mnt/cdrom\ /media/drives
|
|
||||||
\f[]
|
|
||||||
.fi
|
|
||||||
.PP
|
|
||||||
The above line will use all mount points in /mnt prefixed with
|
|
||||||
\f[I]disk\f[] and the directory \f[I]cdrom\f[].
|
|
||||||
.PP
|
|
||||||
In /etc/fstab it\[aq]d look like the following:
|
|
||||||
.IP
|
|
||||||
.nf
|
|
||||||
\f[C]
|
|
||||||
#\ <file\ system>\ \ \ \ \ \ \ \ <mount\ point>\ \ <type>\ \ \ \ \ \ \ \ \ <options>\ \ \ \ \ \ \ \ \ \ \ \ \ <dump>\ \ <pass>
|
|
||||||
/mnt/disk*:/mnt/cdrom\ \ /media/drives\ \ fuse.mergerfs\ \ defaults,allow_other\ \ 0\ \ \ \ \ \ \ 0
|
|
||||||
\f[]
|
|
||||||
.fi
|
|
||||||
.PP
|
|
||||||
\f[B]NOTE:\f[] the globbing is done at mount or xattr update time.
|
|
||||||
If a new directory is added matching the glob after the fact it will not
|
|
||||||
be included.
|
|
||||||
.SH FUNCTIONS / POLICIES / CATEGORIES
|
|
||||||
.PP
|
|
||||||
The filesystem has a number of functions.
|
|
||||||
Those functions are grouped into 3 categories: \f[B]action\f[],
|
|
||||||
\f[B]create\f[], \f[B]search\f[].
|
|
||||||
These functions and categories can be assigned a policy which dictates
|
|
||||||
how \f[B]mergerfs\f[] behaves.
|
|
||||||
Any policy can be assigned to a function or category though some are not
|
|
||||||
very practical.
|
|
||||||
For instance: \f[B]rand\f[] (Random) may be useful for file creation
|
|
||||||
(create) but could lead to very odd behavior if used for \f[C]chmod\f[].
|
|
||||||
.PP
|
|
||||||
All policies when used to create will ignore drives which are mounted
|
|
||||||
readonly.
|
|
||||||
This allows for read/write and readonly drives to be mixed together.
|
|
||||||
.SS Function / Category classifications
|
|
||||||
.PP
|
|
||||||
.TS
|
|
||||||
tab(@);
|
|
||||||
l l.
|
|
||||||
T{
|
|
||||||
Category
|
|
||||||
T}@T{
|
|
||||||
FUSE Functions
|
|
||||||
T}
|
|
||||||
_
|
|
||||||
T{
|
|
||||||
action
|
|
||||||
T}@T{
|
|
||||||
chmod, chown, link, removexattr, rename, rmdir, setxattr, truncate,
|
|
||||||
unlink, utimens
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
create
|
|
||||||
T}@T{
|
|
||||||
create, mkdir, mknod, symlink
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
search
|
|
||||||
T}@T{
|
|
||||||
access, getattr, getxattr, ioctl, listxattr, open, readlink
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
N/A
|
|
||||||
T}@T{
|
|
||||||
fallocate, fgetattr, fsync, ftruncate, ioctl, read, readdir, release,
|
|
||||||
statfs, write
|
|
||||||
T}
|
|
||||||
.TE
|
|
||||||
.PP
|
|
||||||
\f[B]ioctl\f[] behaves differently if its acting on a directory.
|
|
||||||
It\[aq]ll use the \f[B]getattr\f[] policy to find and open the directory
|
|
||||||
before issuing the \f[B]ioctl\f[].
|
|
||||||
In other cases where something may be searched (to confirm a directory
|
|
||||||
exists across all source mounts) then \f[B]getattr\f[] will be used.
|
|
||||||
.SS Policy descriptions
|
|
||||||
.PP
|
|
||||||
.TS
|
|
||||||
tab(@);
|
|
||||||
l l.
|
|
||||||
T{
|
|
||||||
Policy
|
|
||||||
T}@T{
|
|
||||||
Description
|
|
||||||
T}
|
|
||||||
_
|
|
||||||
T{
|
|
||||||
all
|
|
||||||
T}@T{
|
|
||||||
Applies action to all found.
|
|
||||||
For searches it will behave like first found \f[B]ff\f[].
|
|
||||||
For \f[C]create\f[] functions it will only apply to \f[C]mkdir\f[],
|
|
||||||
\f[C]mkdnod\f[], and \f[C]symlink\f[].
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
eplfs (existing path, least free space)
|
|
||||||
T}@T{
|
|
||||||
If the path exists on multiple drives use the one with the least free
|
|
||||||
space and is greater than \f[B]minfreespace\f[].
|
|
||||||
Falls back to \f[B]lfs\f[].
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
epmfs (existing path, most free space)
|
|
||||||
T}@T{
|
|
||||||
If the path exists on multiple drives use the one with the most free
|
|
||||||
space and is greater than \f[B]minfreespace\f[].
|
|
||||||
Falls back to \f[B]mfs\f[].
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
erofs
|
|
||||||
T}@T{
|
|
||||||
Exclusively return \f[C]\-1\f[] with \f[C]errno\f[] set to EROFS.
|
|
||||||
By setting \f[C]create\f[] functions to this you can in effect turn the
|
|
||||||
filesystem readonly.
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
ff (first found)
|
|
||||||
T}@T{
|
|
||||||
Given the order of the drives, as defined at mount time or when
|
|
||||||
configured via xattr interface, act on the first one found.
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
fwfs (first with free space)
|
|
||||||
T}@T{
|
|
||||||
Pick the first drive which has at least \f[B]minfreespace\f[].
|
|
||||||
Falls back to \f[B]mfs\f[].
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
lfs (least free space)
|
|
||||||
T}@T{
|
|
||||||
Pick the drive with the least available free space but more than
|
|
||||||
\f[B]minfreespace\f[].
|
|
||||||
Falls back to \f[B]mfs\f[].
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
mfs (most free space)
|
|
||||||
T}@T{
|
|
||||||
Use the drive with the most available free space.
|
|
||||||
Falls back to \f[B]ff\f[].
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
newest (newest file)
|
|
||||||
T}@T{
|
|
||||||
Pick the file / directory with the largest mtime.
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
rand (random)
|
|
||||||
T}@T{
|
|
||||||
Calls \f[B]all\f[] and then randomizes.
|
|
||||||
T}
|
|
||||||
.TE
|
|
||||||
.SS Defaults
|
|
||||||
.PP
|
|
||||||
.TS
|
|
||||||
tab(@);
|
|
||||||
l l.
|
|
||||||
T{
|
|
||||||
Category
|
|
||||||
T}@T{
|
|
||||||
Policy
|
|
||||||
T}
|
|
||||||
_
|
|
||||||
T{
|
|
||||||
action
|
|
||||||
T}@T{
|
|
||||||
all
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
create
|
|
||||||
T}@T{
|
|
||||||
epmfs
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
search
|
|
||||||
T}@T{
|
|
||||||
ff
|
|
||||||
T}
|
|
||||||
.TE
|
|
||||||
.SS rename & link
|
|
||||||
.PP
|
|
||||||
rename (http://man7.org/linux/man-pages/man2/rename.2.html) is a tricky
|
|
||||||
function in a merged system.
|
|
||||||
Normally if a rename can\[aq]t be done atomically due to the source and
|
|
||||||
destination paths existing on different mount points it will return
|
|
||||||
\f[C]\-1\f[] with \f[C]errno\ =\ EXDEV\f[].
|
|
||||||
The atomic rename is most critical for replacing files in place
|
|
||||||
atomically (such as securing writing to a temp file and then replacing a
|
|
||||||
target).
|
|
||||||
The problem is that by merging multiple paths you can have N instances
|
|
||||||
of the source and destinations on different drives.
|
|
||||||
This can lead to several undesirable situtations with or without errors
|
|
||||||
and it\[aq]s not entirely obvious what to do when an error occurs.
|
|
||||||
.PP
|
|
||||||
Originally mergerfs would return EXDEV whenever a rename was requested
|
|
||||||
which was cross directory in any way.
|
|
||||||
This made the code simple and was technically complient with POSIX
|
|
||||||
requirements.
|
|
||||||
However, many applications fail to handle EXDEV at all and treat it as a
|
|
||||||
normal error or they only partially support EXDEV (don\[aq]t respond the
|
|
||||||
same as \f[C]mv\f[] would).
|
|
||||||
Such apps include: gvfsd\-fuse v1.20.3 and prior, Finder / CIFS/SMB
|
|
||||||
client in Apple OSX 10.9+, NZBGet, Samba\[aq]s recycling bin feature.
|
|
||||||
.IP \[bu] 2
|
|
||||||
If using a policy which tries to preserve directories (epmfs,eplfs)
|
|
||||||
.IP \[bu] 2
|
|
||||||
Using the \f[C]rename\f[] policy get the list of files to rename
|
|
||||||
.IP \[bu] 2
|
|
||||||
For each file attempt rename:
|
|
||||||
.RS 2
|
|
||||||
.IP \[bu] 2
|
|
||||||
If failure with ENOENT run \f[C]create\f[] policy
|
|
||||||
.IP \[bu] 2
|
|
||||||
If create policy returns the same drive as currently evaluating then
|
|
||||||
clone the path
|
|
||||||
.IP \[bu] 2
|
|
||||||
Re\-attempt rename
|
|
||||||
.RE
|
|
||||||
.IP \[bu] 2
|
|
||||||
If \f[B]any\f[] of the renames succeed the higher level rename is
|
|
||||||
considered a success
|
|
||||||
.IP \[bu] 2
|
|
||||||
If \f[B]no\f[] renames succeed the first error encountered will be
|
|
||||||
returned
|
|
||||||
.IP \[bu] 2
|
|
||||||
On success:
|
|
||||||
.RS 2
|
|
||||||
.IP \[bu] 2
|
|
||||||
Remove the target from all drives with no source file
|
|
||||||
.IP \[bu] 2
|
|
||||||
Remove the source from all drives which failed to rename
|
|
||||||
.RE
|
|
||||||
.IP \[bu] 2
|
|
||||||
If using a policy which does \f[B]not\f[] try to preserve directories
|
|
||||||
.IP \[bu] 2
|
|
||||||
Using the \f[C]rename\f[] policy get the list of files to rename
|
|
||||||
.IP \[bu] 2
|
|
||||||
Using the \f[C]getattr\f[] policy get the target path
|
|
||||||
.IP \[bu] 2
|
|
||||||
For each file attempt rename:
|
|
||||||
.RS 2
|
|
||||||
.IP \[bu] 2
|
|
||||||
If the source drive != target drive:
|
|
||||||
.IP \[bu] 2
|
|
||||||
Clone target path from target drive to source drive
|
|
||||||
.IP \[bu] 2
|
|
||||||
Rename
|
|
||||||
.RE
|
|
||||||
.IP \[bu] 2
|
|
||||||
If \f[B]any\f[] of the renames succeed the higher level rename is
|
|
||||||
considered a success
|
|
||||||
.IP \[bu] 2
|
|
||||||
If \f[B]no\f[] renames succeed the first error encountered will be
|
|
||||||
returned
|
|
||||||
.IP \[bu] 2
|
|
||||||
On success:
|
|
||||||
.RS 2
|
|
||||||
.IP \[bu] 2
|
|
||||||
Remove the target from all drives with no source file
|
|
||||||
.IP \[bu] 2
|
|
||||||
Remove the source from all drives which failed to rename
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
The the removals are subject to normal entitlement checks.
|
|
||||||
.PP
|
|
||||||
The above behavior will help minimize the likelihood of EXDEV being
|
|
||||||
returned but it will still be possible.
|
|
||||||
To remove the possibility all together mergerfs would need to perform
|
|
||||||
the as \f[C]mv\f[] does when it receives EXDEV normally.
|
|
||||||
.PP
|
|
||||||
\f[C]link\f[] uses the same basic strategy.
|
|
||||||
.SS readdir
|
|
||||||
.PP
|
|
||||||
readdir (http://linux.die.net/man/3/readdir) is different from all other
|
|
||||||
filesystem functions.
|
|
||||||
It certainly could have it\[aq]s own set of policies to tweak its
|
|
||||||
behavior.
|
|
||||||
At this time it provides a simple \f[B]first found\f[] merging of
|
|
||||||
directories and files found.
|
|
||||||
That is: only the first file or directory found for a directory is
|
|
||||||
returned.
|
|
||||||
Given how FUSE works though the data representing the returned entry
|
|
||||||
comes from \f[B]getattr\f[].
|
|
||||||
.PP
|
|
||||||
It could be extended to offer the ability to see all files found.
|
|
||||||
Perhaps concatenating \f[B]#\f[] and a number to the name.
|
|
||||||
But to really be useful you\[aq]d need to be able to access them which
|
|
||||||
would complicate file lookup.
|
|
||||||
.SS statvfs
|
|
||||||
.PP
|
|
||||||
statvfs (http://linux.die.net/man/2/statvfs) normalizes the source
|
|
||||||
drives based on the fragment size and sums the number of adjusted blocks
|
|
||||||
and inodes.
|
|
||||||
This means you will see the combined space of all sources.
|
|
||||||
Total, used, and free.
|
|
||||||
The sources however are dedupped based on the drive so multiple sources
|
|
||||||
on the same drive will not result in double counting it\[aq]s space.
|
|
||||||
.SH BUILDING
|
|
||||||
.PP
|
|
||||||
\f[B]NOTE:\f[] Prebuilt packages can be found at:
|
|
||||||
https://github.com/trapexit/mergerfs/releases
|
|
||||||
.PP
|
|
||||||
First get the code from github (http://github.com/trapexit/mergerfs).
|
|
||||||
.IP
|
|
||||||
.nf
|
|
||||||
\f[C]
|
|
||||||
$\ git\ clone\ https://github.com/trapexit/mergerfs.git
|
|
||||||
$\ #\ or
|
|
||||||
$\ wget\ https://github.com/trapexit/mergerfs/archive/master.zip
|
|
||||||
\f[]
|
|
||||||
.fi
|
|
||||||
.SS Debian / Ubuntu
|
|
||||||
.IP
|
|
||||||
.nf
|
|
||||||
\f[C]
|
|
||||||
$\ sudo\ apt\-get\ install\ g++\ pkg\-config\ git\ git\-buildpackage\ pandoc\ debhelper\ libfuse\-dev\ libattr1\-dev\ python
|
|
||||||
$\ cd\ mergerfs
|
|
||||||
$\ make\ deb
|
|
||||||
$\ sudo\ dpkg\ \-i\ ../mergerfs_version_arch.deb
|
|
||||||
\f[]
|
|
||||||
.fi
|
|
||||||
.SS Fedora
|
|
||||||
.IP
|
|
||||||
.nf
|
|
||||||
\f[C]
|
|
||||||
$\ su\ \-
|
|
||||||
#\ dnf\ install\ rpm\-build\ fuse\-devel\ libattr\-devel\ pandoc\ gcc\-c++\ git\ make\ which\ python
|
|
||||||
#\ cd\ mergerfs
|
|
||||||
#\ make\ rpm
|
|
||||||
#\ rpm\ \-i\ rpmbuild/RPMS/<arch>/mergerfs\-<verion>.<arch>.rpm
|
|
||||||
\f[]
|
|
||||||
.fi
|
|
||||||
.SS Generically
|
|
||||||
.PP
|
|
||||||
Have git, python, pkg\-config, pandoc, libfuse, libattr1 installed.
|
|
||||||
.IP
|
|
||||||
.nf
|
|
||||||
\f[C]
|
|
||||||
$\ cd\ mergerfs
|
|
||||||
$\ make
|
|
||||||
$\ make\ man
|
|
||||||
$\ sudo\ make\ install
|
|
||||||
\f[]
|
|
||||||
.fi
|
|
||||||
.SH RUNTIME
|
|
||||||
.SS \&.mergerfs pseudo file
|
|
||||||
.IP
|
|
||||||
.nf
|
|
||||||
\f[C]
|
|
||||||
<mountpoint>/.mergerfs
|
|
||||||
\f[]
|
|
||||||
.fi
|
|
||||||
.PP
|
|
||||||
There is a pseudo file available at the mount point which allows for the
|
|
||||||
runtime modification of certain \f[B]mergerfs\f[] options.
|
|
||||||
The file will not show up in \f[B]readdir\f[] but can be
|
|
||||||
\f[B]stat\f[]\[aq]ed and manipulated via
|
|
||||||
{list,get,set}xattrs (http://linux.die.net/man/2/listxattr) calls.
|
|
||||||
.PP
|
|
||||||
Even if xattrs are disabled the
|
|
||||||
{list,get,set}xattrs (http://linux.die.net/man/2/listxattr) calls will
|
|
||||||
still work.
|
|
||||||
.SS Keys
|
|
||||||
.PP
|
|
||||||
Use \f[C]xattr\ \-l\ /mount/point/.mergerfs\f[] to see all supported
|
|
||||||
keys.
|
|
||||||
.SS user.mergerfs.srcmounts
|
|
||||||
.PP
|
|
||||||
For \f[B]user.mergerfs.srcmounts\f[] there are several instructions
|
|
||||||
available for manipulating the list.
|
|
||||||
The value provided is just as the value used at mount time.
|
|
||||||
A colon (\[aq]:\[aq]) delimited list of full path globs.
|
|
||||||
.PP
|
|
||||||
.TS
|
|
||||||
tab(@);
|
|
||||||
l l.
|
|
||||||
T{
|
|
||||||
Instruction
|
|
||||||
T}@T{
|
|
||||||
Description
|
|
||||||
T}
|
|
||||||
_
|
|
||||||
T{
|
|
||||||
[list]
|
|
||||||
T}@T{
|
|
||||||
set
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
+<[list]
|
|
||||||
T}@T{
|
|
||||||
prepend
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
+>[list]
|
|
||||||
T}@T{
|
|
||||||
append
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
\-[list]
|
|
||||||
T}@T{
|
|
||||||
remove all values provided
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
\-<
|
|
||||||
T}@T{
|
|
||||||
remove first in list
|
|
||||||
T}
|
|
||||||
T{
|
|
||||||
\->
|
|
||||||
T}@T{
|
|
||||||
remove last in list
|
|
||||||
T}
|
|
||||||
.TE
|
|
||||||
.SS minfreespace
|
|
||||||
.PP
|
|
||||||
Input: interger with an optional multiplier suffix.
|
|
||||||
\f[B]K\f[], \f[B]M\f[], or \f[B]G\f[].
|
|
||||||
.PP
|
|
||||||
Output: value in bytes
|
|
||||||
.SS moveonenospc
|
|
||||||
.PP
|
|
||||||
Input: \f[B]true\f[] and \f[B]false\f[]
|
|
||||||
.PP
|
|
||||||
Ouput: \f[B]true\f[] or \f[B]false\f[]
|
|
||||||
.SS categories / funcs
|
|
||||||
.PP
|
|
||||||
Input: short policy string as described elsewhere in this document
|
|
||||||
.PP
|
|
||||||
Output: the policy string except for categories where its funcs have
|
|
||||||
multiple types.
|
|
||||||
In that case it will be a comma separated list
|
|
||||||
.SS Example
|
|
||||||
.IP
|
|
||||||
.nf
|
|
||||||
\f[C]
|
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-l\ .mergerfs
|
|
||||||
user.mergerfs.srcmounts:\ /tmp/a:/tmp/b
|
|
||||||
user.mergerfs.minfreespace:\ 4294967295
|
|
||||||
user.mergerfs.moveonenospc:\ false
|
|
||||||
\&...
|
|
||||||
|
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-p\ user.mergerfs.category.search\ .mergerfs
|
When the contents of a directory are requested,
|
||||||
ff
|
.B mergerfs
|
||||||
|
combines the list of files from each directory, deduplicating entries, and returns that list.
|
||||||
|
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-w\ user.mergerfs.category.search\ fwfs\ .mergerfs
|
When a file or directory is created, a policy is first run to determine which branch will be selected for the creation.
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-p\ user.mergerfs.category.search\ .mergerfs
|
|
||||||
fwfs
|
|
||||||
|
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-w\ user.mergerfs.srcmounts\ +/tmp/c\ .mergerfs
|
For functions which change attributes or remove the file, the behavior may be applied to all instances found.
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-p\ user.mergerfs.srcmounts\ .mergerfs
|
|
||||||
/tmp/a:/tmp/b:/tmp/c
|
|
||||||
|
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-w\ user.mergerfs.srcmounts\ =/tmp/c\ .mergerfs
|
Read more about policies here:
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-p\ user.mergerfs.srcmounts\ .mergerfs
|
.UR https://trapexit.github.io/mergerfs/latest/config/functions_categories_policies
|
||||||
/tmp/c
|
.LI https://trapexit.github.io/mergerfs/latest/config/functions_categories_policies
|
||||||
|
.UE
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-w\ user.mergerfs.srcmounts\ \[aq]+</tmp/a:/tmp/b\[aq]\ .mergerfs
|
.SH VISUALIZATION
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-p\ user.mergerfs.srcmounts\ .mergerfs
|
|
||||||
/tmp/a:/tmp/b:/tmp/c
|
|
||||||
\f[]
|
|
||||||
.fi
|
|
||||||
.SS mergerfs file xattrs
|
|
||||||
.PP
|
|
||||||
While they won\[aq]t show up when using
|
|
||||||
listxattr (http://linux.die.net/man/2/listxattr) \f[B]mergerfs\f[]
|
|
||||||
offers a number of special xattrs to query information about the files
|
|
||||||
served.
|
|
||||||
To access the values you will need to issue a
|
|
||||||
getxattr (http://linux.die.net/man/2/getxattr) for one of the following:
|
|
||||||
.IP \[bu] 2
|
|
||||||
\f[B]user.mergerfs.basepath:\f[] the base mount point for the file given
|
|
||||||
the current getattr policy
|
|
||||||
.IP \[bu] 2
|
|
||||||
\f[B]user.mergerfs.relpath:\f[] the relative path of the file from the
|
|
||||||
perspective of the mount point
|
|
||||||
.IP \[bu] 2
|
|
||||||
\f[B]user.mergerfs.fullpath:\f[] the full path of the original file
|
|
||||||
given the getattr policy
|
|
||||||
.IP \[bu] 2
|
|
||||||
\f[B]user.mergerfs.allpaths:\f[] a NUL (\[aq]\[aq]) separated list of
|
|
||||||
full paths to all files found
|
|
||||||
.IP
|
|
||||||
.nf
|
.nf
|
||||||
\f[C]
|
A + B = C
|
||||||
[trapexit:/tmp/mount]\ $\ ls
|
/disk1 /disk2 /merged
|
||||||
A\ B\ C
|
| | |
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-p\ user.mergerfs.fullpath\ A
|
+-- /dir1 +-- /dir1 +-- /dir1
|
||||||
/mnt/a/full/path/to/A
|
| | | | | |
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-p\ user.mergerfs.basepath\ A
|
| +-- file1 | +-- file2 | +-- file1
|
||||||
/mnt/a
|
| | +-- file3 | +-- file2
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-p\ user.mergerfs.relpath\ A
|
+-- /dir2 | | +-- file3
|
||||||
/full/path/to/A
|
| | +-- /dir3 |
|
||||||
[trapexit:/tmp/mount]\ $\ xattr\ \-p\ user.mergerfs.allpaths\ A\ |\ tr\ \[aq]\\0\[aq]\ \[aq]\\n\[aq]
|
| +-- file4 | +-- /dir2
|
||||||
/mnt/a/full/path/to/A
|
| +-- file5 | |
|
||||||
/mnt/b/full/path/to/A
|
+-- file6 | +-- file4
|
||||||
\f[]
|
|
|
||||||
|
+-- /dir3
|
||||||
|
| |
|
||||||
|
| +-- file5
|
||||||
|
|
|
||||||
|
+-- file6
|
||||||
.fi
|
.fi
|
||||||
.SH TOOLING
|
.SH SPONSORSHIP AND DONATIONS
|
||||||
.PP
|
Development and support of a project like
|
||||||
Find tooling to help with managing \f[C]mergerfs\f[] at:
|
.B mergerfs
|
||||||
https://github.com/trapexit/mergerfs\-tools
|
require a significant amount of time and effort. The software is released under the very liberal ISC license and is therefore free to use for personal or commercial uses.
|
||||||
.IP \[bu] 2
|
|
||||||
fsck.mergerfs: Provides permissions and ownership auditing and the
|
If you are a non-commercial user and find
|
||||||
ability to fix them
|
.B mergerfs
|
||||||
.IP \[bu] 2
|
and its support valuable and would like to support the project financially, it would be very much appreciated.
|
||||||
mergerfs.mktrash: Creates FreeDesktop.org Trash specification compatible
|
|
||||||
directories on a mergerfs mount
|
If you are using
|
||||||
.SH TIPS / NOTES
|
.B mergerfs
|
||||||
.IP \[bu] 2
|
commercially, please consider sponsoring the project to ensure it continues to be maintained and receive updates. If custom features are needed, feel free to contact the maintainer directly.
|
||||||
If you don\[aq]t see some directories / files you expect in a merged
|
|
||||||
point be sure the user has permission to all the underlying directories.
|
.UR https://github.com/trapexit/support
|
||||||
If \f[C]/drive0/a\f[] has is owned by \f[C]root:root\f[] with ACLs set
|
.LI https://github.com/trapexit/support
|
||||||
to \f[C]0700\f[] and \f[C]/drive1/a\f[] is \f[C]root:root\f[] and
|
.UE
|
||||||
\f[C]0755\f[] you\[aq]ll see only \f[C]/drive1/a\f[].
|
.SH LICENSE
|
||||||
Use \f[C]fsck.mergerfs\f[] to audit the drive for out of sync
|
ISC License
|
||||||
permissions.
|
.SH AUTHOR
|
||||||
.IP \[bu] 2
|
Antonio SJ Musumeci (aka trapexit)
|
||||||
Since POSIX gives you only error or success on calls its difficult to
|
|
||||||
determine the proper behavior when applying the behavior to multiple
|
|
||||||
targets.
|
|
||||||
\f[B]mergerfs\f[] will return an error only if all attempts of an action
|
|
||||||
fail.
|
|
||||||
Any success will lead to a success returned.
|
|
||||||
.IP \[bu] 2
|
|
||||||
The recommended options are \f[B]defaults,allow_other\f[].
|
|
||||||
The \f[B]allow_other\f[] is to allow users who are not the one which
|
|
||||||
executed mergerfs access to the mountpoint.
|
|
||||||
\f[B]defaults\f[] is described above and should offer the best
|
|
||||||
performance.
|
|
||||||
It\[aq]s possible that if you\[aq]re running on an older platform the
|
|
||||||
\f[B]splice\f[] features aren\[aq]t available and could error.
|
|
||||||
In that case simply use the other options manually.
|
|
||||||
.IP \[bu] 2
|
|
||||||
If write performance is valued more than read it may be useful to enable
|
|
||||||
\f[B]direct_io\f[].
|
|
||||||
Best to benchmark with and without and choose appropriately.
|
|
||||||
.IP \[bu] 2
|
|
||||||
Remember: some policies mixed with some functions may result in strange
|
|
||||||
behaviors.
|
|
||||||
Not that some of these behaviors and race conditions couldn\[aq]t happen
|
|
||||||
outside \f[B]mergerfs\f[] but that they are far more likely to occur on
|
|
||||||
account of attempt to merge together multiple sources of data which
|
|
||||||
could be out of sync due to the different policies.
|
|
||||||
.IP \[bu] 2
|
|
||||||
An example: Kodi (http://kodi.tv) and Plex (http://plex.tv) can use
|
|
||||||
directory mtime (http://linux.die.net/man/2/stat) to more efficiently
|
|
||||||
determine whether to scan for new content rather than simply performing
|
|
||||||
a full scan.
|
|
||||||
If using the current default \f[B]getattr\f[] policy of \f[B]ff\f[] its
|
|
||||||
possible \f[B]Kodi\f[] will miss an update on account of it returning
|
|
||||||
the first directory found\[aq]s \f[B]stat\f[] info and its a later
|
|
||||||
directory on another mount which had the \f[B]mtime\f[] recently
|
|
||||||
updated.
|
|
||||||
To fix this you will want to set \f[B]func.getattr=newest\f[].
|
|
||||||
Remember though that this is just \f[B]stat\f[].
|
|
||||||
If the file is later \f[B]open\f[]\[aq]ed or \f[B]unlink\f[]\[aq]ed and
|
|
||||||
the policy is different for those then a completely different file or
|
|
||||||
directory could be acted on.
|
|
||||||
.IP \[bu] 2
|
|
||||||
Due to previously mentioned issues its generally best to set
|
|
||||||
\f[B]category\f[] wide policies rather than individual
|
|
||||||
\f[B]func\f[]\[aq]s.
|
|
||||||
This will help limit the confusion of tools such as
|
|
||||||
rsync (http://linux.die.net/man/1/rsync).
|
|
||||||
.SH KNOWN ISSUES / BUGS
|
|
||||||
.SS Trashing files occasionally fails
|
|
||||||
.PP
|
|
||||||
This is the same issue as with Samba.
|
|
||||||
\f[C]rename\f[] returns \f[C]EXDEV\f[] (in our case that will really
|
|
||||||
only happen with path preserving policies like \f[C]epmfs\f[]) and the
|
|
||||||
software doesn\[aq]t handle the situtation well.
|
|
||||||
This is unfortunately a common failure of software which moves files
|
|
||||||
around.
|
|
||||||
The standard indicates that an implementation \f[C]MAY\f[] choose to
|
|
||||||
support non\-user home directory trashing of files (which is a
|
|
||||||
\f[C]MUST\f[]).
|
|
||||||
The implementation \f[C]MAY\f[] also support "top directory trashes"
|
|
||||||
which many probably do.
|
|
||||||
.PP
|
|
||||||
To create a \f[C]$topdir/.Trash\f[] directory as defined in the standard
|
|
||||||
use the mergerfs\-tools (https://github.com/trapexit/mergerfs-tools)
|
|
||||||
tool \f[C]mergerfs.mktrash\f[].
|
|
||||||
.SS Samba: Moving files / directories fails
|
|
||||||
.PP
|
|
||||||
Workaround: Copy the file/directory and then remove the original rather
|
|
||||||
than move.
|
|
||||||
.PP
|
|
||||||
This isn\[aq]t an issue with Samba but some SMB clients.
|
|
||||||
GVFS\-fuse v1.20.3 and prior (found in Ubuntu 14.04 among others) failed
|
|
||||||
to handle certain error codes correctly.
|
|
||||||
Particularly \f[B]STATUS_NOT_SAME_DEVICE\f[] which comes from the
|
|
||||||
\f[B]EXDEV\f[] which is returned by \f[B]rename\f[] when the call is
|
|
||||||
crossing mount points.
|
|
||||||
When a program gets an \f[B]EXDEV\f[] it needs to explicitly take an
|
|
||||||
alternate action to accomplish it\[aq]s goal.
|
|
||||||
In the case of \f[B]mv\f[] or similar it tries \f[B]rename\f[] and on
|
|
||||||
\f[B]EXDEV\f[] falls back to a manual copying of data between the two
|
|
||||||
locations and unlinking the source.
|
|
||||||
In these older versions of GVFS\-fuse if it received \f[B]EXDEV\f[] it
|
|
||||||
would translate that into \f[B]EIO\f[].
|
|
||||||
This would cause \f[B]mv\f[] or most any application attempting to move
|
|
||||||
files around on that SMB share to fail with a IO error.
|
|
||||||
.PP
|
|
||||||
GVFS\-fuse v1.22.0 (https://bugzilla.gnome.org/show_bug.cgi?id=734568)
|
|
||||||
and above fixed this issue but a large number of systems use the older
|
|
||||||
release.
|
|
||||||
On Ubuntu the version can be checked by issuing
|
|
||||||
\f[C]apt\-cache\ showpkg\ gvfs\-fuse\f[].
|
|
||||||
Most distros released in 2015 seem to have the updated release and will
|
|
||||||
work fine but older systems may not.
|
|
||||||
Upgrading gvfs\-fuse or the distro in general will address the problem.
|
|
||||||
.PP
|
|
||||||
In Apple\[aq]s MacOSX 10.9 they replaced Samba (client and server) with
|
|
||||||
their own product.
|
|
||||||
It appears their new client does not handle \f[B]EXDEV\f[] either and
|
|
||||||
responds similar to older release of gvfs on Linux.
|
|
||||||
.SS Supplemental user groups
|
|
||||||
.PP
|
|
||||||
Due to the overhead of
|
|
||||||
getgroups/setgroups (http://linux.die.net/man/2/setgroups) mergerfs
|
|
||||||
utilizes a cache.
|
|
||||||
This cache is opportunistic and per thread.
|
|
||||||
Each thread will query the supplemental groups for a user when that
|
|
||||||
particular thread needs to change credentials and will keep that data
|
|
||||||
for the lifetime of the thread.
|
|
||||||
This means that if a user is added to a group it may not be picked up
|
|
||||||
without the restart of mergerfs.
|
|
||||||
However, since the high level FUSE API\[aq]s (at least the standard
|
|
||||||
version) thread pool dynamically grows and shrinks it\[aq]s possible
|
|
||||||
that over time a thread will be killed and later a new thread with no
|
|
||||||
cache will start and query the new data.
|
|
||||||
.PP
|
|
||||||
The gid cache uses fixed storage to simplify the design and be
|
|
||||||
compatible with older systems which may not have C++11 compilers.
|
|
||||||
There is enough storage for 256 users\[aq] supplemental groups.
|
|
||||||
Each user is allowed upto 32 supplemental groups.
|
|
||||||
Linux >= 2.6.3 allows upto 65535 groups per user but most other *nixs
|
|
||||||
allow far less.
|
|
||||||
NFS allowing only 16.
|
|
||||||
The system does handle overflow gracefully.
|
|
||||||
If the user has more than 32 supplemental groups only the first 32 will
|
|
||||||
be used.
|
|
||||||
If more than 256 users are using the system when an uncached user is
|
|
||||||
found it will evict an existing user\[aq]s cache at random.
|
|
||||||
So long as there aren\[aq]t more than 256 active users this should be
|
|
||||||
fine.
|
|
||||||
If either value is too low for your needs you will have to modify
|
|
||||||
\f[C]gidcache.hpp\f[] to increase the values.
|
|
||||||
Note that doing so will increase the memory needed by each thread.
|
|
||||||
.SS mergerfs or libfuse crashing
|
|
||||||
.PP
|
|
||||||
If suddenly the mergerfs mount point disappears and
|
|
||||||
\f[C]Transport\ endpoint\ is\ not\ connected\f[] is returned when
|
|
||||||
attempting to perform actions within the mount directory \f[B]and\f[]
|
|
||||||
the version of libfuse (use \f[C]mergerfs\ \-v\f[] to find the version)
|
|
||||||
is older than \f[C]2.9.4\f[] its likely due to a bug in libfuse.
|
|
||||||
Affected versions of libfuse can be found in Debian Wheezy, Ubuntu
|
|
||||||
Precise and others.
|
|
||||||
.PP
|
|
||||||
In order to fix this please install newer versions of libfuse.
|
|
||||||
If using a Debian based distro (Debian,Ubuntu,Mint) you can likely just
|
|
||||||
install newer versions of
|
|
||||||
libfuse (https://packages.debian.org/unstable/libfuse2) and
|
|
||||||
fuse (https://packages.debian.org/unstable/fuse) from the repo of a
|
|
||||||
newer release.
|
|
||||||
.SH FAQ
|
|
||||||
.SS Why use mergerfs over mhddfs?
|
|
||||||
.PP
|
|
||||||
mhddfs is no longer maintained and has some known stability and security
|
|
||||||
issues (see below).
|
|
||||||
.SS Why use mergerfs over aufs?
|
|
||||||
.PP
|
|
||||||
While aufs can offer better peak performance mergerfs offers more
|
|
||||||
configurability and is generally easier to use.
|
|
||||||
mergerfs however doesn\[aq]t offer the overlay features which tends to
|
|
||||||
result in whiteout files being left around the underlying filesystems.
|
|
||||||
.SS Why use mergerfs over LVM/ZFS/BTRFS/RAID0 drive concatenation /
|
|
||||||
striping?
|
|
||||||
.PP
|
|
||||||
A single drive failure will lead to full pool failure without additional
|
|
||||||
redundancy.
|
|
||||||
mergerfs performs a similar behavior without the catastrophic failure
|
|
||||||
and lack of recovery.
|
|
||||||
Drives can fail and all other data will continue to be accessable.
|
|
||||||
.SS It\[aq]s mentioned that there are some security issues with mhddfs.
|
|
||||||
What are they? How does mergerfs address them?
|
|
||||||
.PP
|
|
||||||
mhddfs (https://github.com/trapexit/mhddfs) tries to handle being run as
|
|
||||||
\f[B]root\f[] by calling
|
|
||||||
getuid() (https://github.com/trapexit/mhddfs/blob/cae96e6251dd91e2bdc24800b4a18a74044f6672/src/main.c#L319)
|
|
||||||
and if it returns \f[B]0\f[] then it will
|
|
||||||
chown (http://linux.die.net/man/1/chown) the file.
|
|
||||||
Not only is that a race condition but it doesn\[aq]t handle many other
|
|
||||||
situations.
|
|
||||||
Rather than attempting to simulate POSIX ACL behaviors the proper
|
|
||||||
behavior is to use seteuid (http://linux.die.net/man/2/seteuid) and
|
|
||||||
setegid (http://linux.die.net/man/2/setegid), become the user making the
|
|
||||||
original call and perform the action as them.
|
|
||||||
This is how mergerfs (https://github.com/trapexit/mergerfs) handles
|
|
||||||
things.
|
|
||||||
.PP
|
|
||||||
If you are familiar with POSIX standards you\[aq]ll know that this
|
|
||||||
behavior poses a problem.
|
|
||||||
\f[B]seteuid\f[] and \f[B]setegid\f[] affect the whole process and
|
|
||||||
\f[B]libfuse\f[] is multithreaded by default.
|
|
||||||
We\[aq]d need to lock access to \f[B]seteuid\f[] and \f[B]setegid\f[]
|
|
||||||
with a mutex so that the several threads aren\[aq]t stepping on one
|
|
||||||
another and files end up with weird permissions and ownership.
|
|
||||||
This however wouldn\[aq]t scale well.
|
|
||||||
With lots of calls the contention on that mutex would be extremely high.
|
|
||||||
Thankfully on Linux and OSX we have a better solution.
|
|
||||||
.PP
|
|
||||||
OSX has a non\-portable pthread
|
|
||||||
extension (https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/pthread_setugid_np.2.html)
|
|
||||||
for per\-thread user and group impersonation.
|
|
||||||
.PP
|
|
||||||
Linux does not support
|
|
||||||
pthread_setugid_np (https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/pthread_setugid_np.2.html)
|
|
||||||
but user and group IDs are a per\-thread attribute though documentation
|
|
||||||
on that fact or how to manipulate them is not well distributed.
|
|
||||||
From the \f[B]4.00\f[] release of the Linux man\-pages project for
|
|
||||||
setuid (http://man7.org/linux/man-pages/man2/setuid.2.html).
|
|
||||||
.RS
|
|
||||||
.PP
|
|
||||||
At the kernel level, user IDs and group IDs are a per\-thread attribute.
|
|
||||||
However, POSIX requires that all threads in a process share the same
|
|
||||||
credentials.
|
|
||||||
The NPTL threading implementation handles the POSIX requirements by
|
|
||||||
providing wrapper functions for the various system calls that change
|
|
||||||
process UIDs and GIDs.
|
|
||||||
These wrapper functions (including the one for setuid()) employ a
|
|
||||||
signal\-based technique to ensure that when one thread changes
|
|
||||||
credentials, all of the other threads in the process also change their
|
|
||||||
credentials.
|
|
||||||
For details, see nptl(7).
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
Turns out the setreuid syscalls apply only to the thread.
|
|
||||||
GLIBC hides this away using RT signals to inform all threads to change
|
|
||||||
credentials.
|
|
||||||
Taking after \f[B]Samba\f[] mergerfs uses
|
|
||||||
\f[B]syscall(SYS_setreuid,...)\f[] to set the callers credentials for
|
|
||||||
that thread only.
|
|
||||||
Jumping back to \f[B]root\f[] as necessary should escalated privileges
|
|
||||||
be needed (for instance: to clone paths).
|
|
||||||
.PP
|
|
||||||
For non\-Linux systems mergerfs uses a read\-write lock and changes
|
|
||||||
credentials only when necessary.
|
|
||||||
If multiple threads are to be user X then only the first one will need
|
|
||||||
to change the processes credentials.
|
|
||||||
So long as the other threads need to be user X they will take a readlock
|
|
||||||
allow multiple threads to share the credentials.
|
|
||||||
Once a request comes in to run as user Y that thread will attempt a
|
|
||||||
write lock and change to Y\[aq]s credentials when it can.
|
|
||||||
If the ability to give writers priority is supported then that flag will
|
|
||||||
be used so threads trying to change credentials don\[aq]t starve.
|
|
||||||
This isn\[aq]t the best solution but should work reasonably well.
|
|
||||||
As new platforms are supported if they offer per thread credentials
|
|
||||||
those APIs will be adopted.
|
|
||||||
.SH SUPPORT
|
|
||||||
.SS Issues with the software
|
|
||||||
.IP \[bu] 2
|
|
||||||
github.com: https://github.com/trapexit/mergerfs/issues
|
|
||||||
.IP \[bu] 2
|
|
||||||
email: trapexit\@spawn.link
|
|
||||||
.SS Support development
|
|
||||||
.IP \[bu] 2
|
|
||||||
Gratipay: https://gratipay.com/~trapexit
|
|
||||||
.IP \[bu] 2
|
|
||||||
BitCoin: 12CdMhEPQVmjz3SSynkAEuD5q9JmhTDCZA
|
|
||||||
.SH AUTHORS
|
|
||||||
Antonio SJ Musumeci <trapexit@spawn.link>.
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
Name: mergerfs
|
Name: mergerfs
|
||||||
Version: __VERSION__
|
Version: __VERSION__
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A FUSE union filesystem
|
Summary: A featureful FUSE based union filesystem
|
||||||
|
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
License: ISC
|
License: ISC
|
||||||
|
|
@ -10,32 +10,40 @@ URL: https://github.com/trapexit/mergerfs
|
||||||
Source: mergerfs-%{version}.tar.gz
|
Source: mergerfs-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libattr-devel
|
|
||||||
BuildRequires: fuse-devel
|
|
||||||
# rpmbuild driven by the Makefile uses git to generate a version number
|
# rpmbuild driven by the Makefile uses git to generate a version number
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
|
|
||||||
Requires: fuse
|
%global debug_package %{nil}
|
||||||
|
%undefine _debuginfo_subpackages
|
||||||
|
%global _enable_debug_packages 0
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%description
|
%description
|
||||||
mergerfs is similar to mhddfs, unionfs, and aufs. Like mhddfs in that it too
|
mergerfs is a union filesystem geared towards simplifying storage and
|
||||||
uses FUSE. Like aufs in that it provides multiple policies for how to handle
|
management of files across numerous commodity storage devices. It is
|
||||||
behavior.
|
similar to mhddfs, unionfs, and aufs.
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
|
make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/*
|
/usr/bin/mergerfs
|
||||||
|
/usr/bin/mergerfs-fusermount
|
||||||
|
/usr/bin/fsck.mergerfs
|
||||||
|
/usr/bin/mergerfs.collect-info
|
||||||
|
/sbin/mount.mergerfs
|
||||||
|
/usr/lib/mergerfs/preload.so
|
||||||
%doc %{_mandir}/*
|
%doc %{_mandir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 26 2019 Antonio SJ Musumeci <trapexit@spawn.link>
|
||||||
|
- Update description
|
||||||
|
|
||||||
* Mon Jan 25 2016 Antonio SJ Musumeci <trapexit@spawn.link>
|
* Mon Jan 25 2016 Antonio SJ Musumeci <trapexit@spawn.link>
|
||||||
- Remove sbin files
|
- Remove sbin files
|
||||||
|
|
||||||
|
|
|
||||||
29
mkdocs/README.md
Normal file
29
mkdocs/README.md
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# mkdocs
|
||||||
|
|
||||||
|
## Getting started
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python3 -m venv venv
|
||||||
|
source venv/bin/activate
|
||||||
|
pip3 install --no-cache-dir mkdocs mkdocs-material pymdown-extensions mike
|
||||||
|
mkdocs serve
|
||||||
|
```
|
||||||
|
|
||||||
|
Run these commands from `mkdocs/`. `mkdocs serve` previews your working
|
||||||
|
tree and reloads when you edit a page. `mike serve` instead serves the
|
||||||
|
versions already built on the local `gh-pages` branch. To preview your
|
||||||
|
changes there, run `mike deploy latest master` (without `--push`), then
|
||||||
|
open `/latest/` on the `mike serve` site.
|
||||||
|
|
||||||
|
## Deploy
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mike deploy --push <version_name> --allow-empty
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## References
|
||||||
|
|
||||||
|
* https://www.mkdocs.org/
|
||||||
|
* https://squidfunk.github.io/mkdocs-material/
|
||||||
|
|
||||||
7
mkdocs/build-venv
Executable file
7
mkdocs/build-venv
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -x
|
||||||
|
set -e
|
||||||
|
|
||||||
|
python3 -m venv venv
|
||||||
|
. ./venv/bin/activate
|
||||||
|
pip3 install --no-cache-dir 'mkdocs<2.0' mkdocs-material pymdown-extensions mike
|
||||||
111
mkdocs/docs/benchmarking.md
Normal file
111
mkdocs/docs/benchmarking.md
Normal file
|
|
@ -0,0 +1,111 @@
|
||||||
|
# Benchmarking
|
||||||
|
|
||||||
|
Filesystems are complicated. They do many things and many of those are
|
||||||
|
interconnected. Additionally, the OS, drivers, hardware, etc. can all
|
||||||
|
impact performance. Therefore, when benchmarking, it is **necessary**
|
||||||
|
that the test focuses as narrowly as possible.
|
||||||
|
|
||||||
|
For most throughput is the key benchmark. To test throughput `dd` is
|
||||||
|
useful but **must** be used with the correct settings in order to
|
||||||
|
ensure the filesystem or device is actually being tested. The OS can
|
||||||
|
and will cache data. Without forcing synchronous reads and writes
|
||||||
|
and/or disabling caching the values returned will not be
|
||||||
|
representative of the device's true performance.
|
||||||
|
|
||||||
|
When benchmarking through mergerfs ensure you only use 1 branch to
|
||||||
|
remove any possibility of the policies or differences in underlying
|
||||||
|
filesystems complicating the situation. Benchmark the underlying
|
||||||
|
filesystem first and then mount mergerfs with that same filesystem and
|
||||||
|
that. Throughput **will be** lower but if you are experiencing speeds
|
||||||
|
below your expectation you will need to narrow down precisely which
|
||||||
|
component is leading to the slowdown. Preferably test the following in
|
||||||
|
the order listed (but not combined).
|
||||||
|
|
||||||
|
1. Enable `nullrw` mode with `nullrw=true`. This will effectively make
|
||||||
|
reads and writes no-ops. Removing the underlying device /
|
||||||
|
filesystem from the equation. This will give us the top theoretical
|
||||||
|
speeds.
|
||||||
|
2. Configure mergerfs to use a `tmpfs` branch. `tmpfs` is a RAM
|
||||||
|
disk. Extremely high speed and very low latency. This is a more
|
||||||
|
realistic best case scenario. Example: `mount -t tmpfs -o size=2G
|
||||||
|
tmpfs /tmp/tmpfs`
|
||||||
|
3. Configure mergerfs to use a local device filesystem branch. NVMe,
|
||||||
|
SSD, HDD, etc. Test them individually. If you have different
|
||||||
|
interconnects / controllers use the same storage device when
|
||||||
|
testing to ensure consistency.
|
||||||
|
4. Configure mergerfs to use any network filesystems you plan to use
|
||||||
|
one at a time. It may also be worth trying a different network
|
||||||
|
filesystem. `NFS` vs `CIFS/SMB/Samba` vs `sshfs`, etc.
|
||||||
|
|
||||||
|
Once you find the component which has the performance issue you can do
|
||||||
|
further testing with different options to see if they impact
|
||||||
|
performance. If you find a specific system, device, filesystem,
|
||||||
|
controller, etc. that performs poorly contact the author so it can be
|
||||||
|
investigated further.
|
||||||
|
|
||||||
|
Sometimes the problem is really the application accessing or writing
|
||||||
|
data through mergerfs. Some software use small buffer sizes which can
|
||||||
|
lead to more requests and therefore greater overhead. You can test
|
||||||
|
this out yourself by replacing `bs=1M` in the examples below with
|
||||||
|
`ibs` or `obs` and using a size of `512` instead of `1M`. In one
|
||||||
|
example test using `nullrw` the write speed dropped from 4.9GB/s to
|
||||||
|
69.7MB/s when moving from `1M` to `512`. Similar results were had when
|
||||||
|
testing reads. Small writes overhead may be improved by leveraging a
|
||||||
|
write cache but in casual tests little gain was found. If you have an
|
||||||
|
app that appears slow with mergerfs it could be due to this. `strace`
|
||||||
|
can be used with the app in question or mergerfs to see the size of
|
||||||
|
read/writes. Contact the software author or worse case the mergerfs
|
||||||
|
author so it may be investigated further.
|
||||||
|
|
||||||
|
|
||||||
|
### Write Benchmark
|
||||||
|
|
||||||
|
```
|
||||||
|
$ dd if=/dev/zero of=/mnt/mergerfs/16GB.file bs=1M count=16384 oflag=nocache conv=fdatasync status=progress
|
||||||
|
```
|
||||||
|
|
||||||
|
### Read Benchmark
|
||||||
|
|
||||||
|
```
|
||||||
|
$ dd if=/mnt/mergerfs/16GB.file of=/dev/null bs=1M iflag=nocache conv=fdatasync status=progress
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### fio
|
||||||
|
|
||||||
|
`fio` is a popular and flexible benchmarking tool.
|
||||||
|
|
||||||
|
Below are some basic tests but also try setting `--direct=0`, changing
|
||||||
|
the `ioengine`, or playing with other options.
|
||||||
|
|
||||||
|
|
||||||
|
#### Write
|
||||||
|
|
||||||
|
```
|
||||||
|
$ fio --name=writetest --filename=/mnt/mergerfs/16GB.file --size=16Gb --rw=write --bs=1M --direct=1 --numjobs=1 --iodepth=8 --group_reporting --runtime=60 --startdelay=0 --ioengine=psync
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
#### Read
|
||||||
|
|
||||||
|
```
|
||||||
|
$ fio --name=readtest --filename=/mnt/mergerfs/16GB.file --size=16Gb --rw=read --bs=1M --direct=1 --numjobs=1 --iodepth=8 --group_reporting --runtime=60 --startdelay=0 --ioengine=psync
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Other Benchmarks
|
||||||
|
|
||||||
|
If you are attempting to benchmark other behaviors you must ensure you
|
||||||
|
clear kernel caches before runs. In fact it would be a good deal to
|
||||||
|
run before the read and write benchmarks as well just in case.
|
||||||
|
|
||||||
|
```
|
||||||
|
sync
|
||||||
|
echo 3 | sudo tee /proc/sys/vm/drop_caches
|
||||||
|
```
|
||||||
|
|
||||||
|
## Additional Reading
|
||||||
|
|
||||||
|
* [Tweaking Performance](performance.md)
|
||||||
|
* [Options](config/options.md)
|
||||||
|
* [Tips and Notes](tips_notes.md)
|
||||||
89
mkdocs/docs/config/branches-mount-timeout.md
Normal file
89
mkdocs/docs/config/branches-mount-timeout.md
Normal file
|
|
@ -0,0 +1,89 @@
|
||||||
|
# branches-mount-timeout
|
||||||
|
|
||||||
|
* type: `UINT` (seconds)
|
||||||
|
* default: `0`
|
||||||
|
|
||||||
|
mergerfs is compatible with any path, whether it be a mount point or a
|
||||||
|
directory on your [root
|
||||||
|
filesystem.](https://en.wikipedia.org/wiki/Root_directory) It doesn’t
|
||||||
|
require branch paths to be mounted or to match a specific filesystem
|
||||||
|
at startup, and it operates effectively without needing details about
|
||||||
|
the intended filesystem. This flexibility eliminates the need to
|
||||||
|
manage mount ordering, which is particularly advantageous on modern
|
||||||
|
systems where filesystems are mounted asynchronously, resulting in
|
||||||
|
unpredictable mount sequences. While
|
||||||
|
[systemd](https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html)
|
||||||
|
offers a way to enforce mount dependencies using the
|
||||||
|
[x-systemd.requires=PATH](https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html#x-systemd.requires=)
|
||||||
|
option in /etc/fstab, applying this to every branch path is both
|
||||||
|
cumbersome and susceptible to errors.
|
||||||
|
|
||||||
|
`branches-mount-timeout` will cause mergerfs to first attempt to mount
|
||||||
|
each branch if the branch appears to be on the same filesystem as the
|
||||||
|
`mergerfs` mount point and then wait for all branches to become
|
||||||
|
"mounted." The logic to determine "mounted" is as follows.
|
||||||
|
|
||||||
|
1. It is mounted if the branch directory has the extended attribute
|
||||||
|
`user.mergerfs.branch`
|
||||||
|
2. It is mounted if the branch directory contains a file named
|
||||||
|
`.mergerfs.branch`
|
||||||
|
3. It is **not** mounted if the branch directory has the extended
|
||||||
|
attribute `user.mergerfs.branch_mounts_here`
|
||||||
|
4. It is **not** mounted if the branch directory contains
|
||||||
|
a file named `.mergerfs.branch_mounts_here`
|
||||||
|
5. It is mounted if the `st_dev` value of the mergerfs mount point is
|
||||||
|
different from the branch path.
|
||||||
|
|
||||||
|
These files and xattrs are used to help `mergerfs` know whether or not
|
||||||
|
a directory happens to be a branch or is the underlying directory
|
||||||
|
mount point.
|
||||||
|
|
||||||
|
## Paths which appear after startup
|
||||||
|
|
||||||
|
The [`branches` resolution process](branches.md#resolution) runs before
|
||||||
|
this option starts waiting. A missing literal path is retained as a
|
||||||
|
branch, so a configuration such as `/mnt/hdd/disk0/foobar` can work
|
||||||
|
when `/mnt/hdd/disk0` is mounted asynchronously and `foobar` only
|
||||||
|
becomes visible afterward, provided the path then meets one of the
|
||||||
|
"mounted" conditions above.
|
||||||
|
|
||||||
|
For each branch which is not ready, mergerfs first runs `mount` once
|
||||||
|
with the full branch path as the target and then polls that same path
|
||||||
|
until the timeout expires. It does not create the path, try to mount
|
||||||
|
its parent, or rerun `mount`. In the example above, the initial
|
||||||
|
`mount /mnt/hdd/disk0/foobar` may fail while the path is absent. If
|
||||||
|
another service mounts `/mnt/hdd/disk0` and
|
||||||
|
`/mnt/hdd/disk0/foobar` appears and meets one of the "mounted"
|
||||||
|
conditions before the deadline, mergerfs detects it during polling
|
||||||
|
and continues.
|
||||||
|
|
||||||
|
Globs are different. If `/mnt/hdd/disk0/*` has no matches during
|
||||||
|
branch resolution, the literal path `/mnt/hdd/disk0/*` is retained.
|
||||||
|
The mount wait does not expand it again after `/mnt/hdd/disk0`
|
||||||
|
becomes available. Ensure the parent filesystem is mounted before
|
||||||
|
mergerfs, configure a literal branch path, or update `branches`
|
||||||
|
through the runtime API once the paths exist.
|
||||||
|
|
||||||
|
|
||||||
|
**NOTE:** If on a `systemd` based system and using `fstab` it is a
|
||||||
|
good idea to set the mount option
|
||||||
|
[x-systemd.mount-timeout](https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html#x-systemd.mount-timeout=)
|
||||||
|
to some value longer than `branches-mount-timeout` otherwise `systemd`
|
||||||
|
might kill `mergerfs` before it finishes waiting.
|
||||||
|
|
||||||
|
**NOTE:** The way `mergerfs` attempts to mount the branch is by
|
||||||
|
calling out to the system command `mount` with the branch as the
|
||||||
|
target. If that path is configured in `/etc/fstab` as a mount point
|
||||||
|
then `mount` should attempt to mount it with the settings defined in
|
||||||
|
`fstab`.
|
||||||
|
|
||||||
|
|
||||||
|
## branches-mount-timeout-fail
|
||||||
|
|
||||||
|
Default: `false`
|
||||||
|
|
||||||
|
When set to `true` mergerfs will fail entirely after
|
||||||
|
`branches-mount-timeout` expires without all branches being
|
||||||
|
mounted. If set to `false` it will simply ignore the mount status of
|
||||||
|
the branches and continue on. The details will be
|
||||||
|
[logged](../error_handling_and_logging.md).
|
||||||
237
mkdocs/docs/config/branches.md
Normal file
237
mkdocs/docs/config/branches.md
Normal file
|
|
@ -0,0 +1,237 @@
|
||||||
|
# branches
|
||||||
|
|
||||||
|
The `branches` argument is a colon (':') delimited list of paths to be
|
||||||
|
pooled together. It does not matter if the paths are on the same or
|
||||||
|
different filesystems nor does it matter [the filesystem
|
||||||
|
type](../faq/compatibility_and_integration.md/#what-filesystems-can-be-used-as-branches)
|
||||||
|
(within reason). Used and available space metrics will not be
|
||||||
|
duplicated for paths on the same filesystem and any features which
|
||||||
|
aren't supported by the underlying filesystem (such as file attributes
|
||||||
|
or extended attributes) will return the appropriate errors.
|
||||||
|
|
||||||
|
Branches currently have two options which can be set. A
|
||||||
|
[mode](#branch-mode) which impacts whether or not the branch is
|
||||||
|
included in a policy calculation and a individual
|
||||||
|
[minfreespace](#minfreespace) value. The values are set by
|
||||||
|
prepending an `=` at the end of a branch designation and using commas
|
||||||
|
as delimiters. Example: `/mnt/hdd/disk0=RW,1234`
|
||||||
|
|
||||||
|
|
||||||
|
### branch mode
|
||||||
|
|
||||||
|
- RW: (read/write) - Default behavior. Will be eligible in all policy
|
||||||
|
categories.
|
||||||
|
- RO: (read-only) - Will be excluded from `create` and `action`
|
||||||
|
policies. Same as a read-only mounted filesystem would be (though
|
||||||
|
faster to process).
|
||||||
|
- NC: (no-create) - Will be excluded from `create` policies. You can't
|
||||||
|
create on that branch but you can change or delete.
|
||||||
|
|
||||||
|
|
||||||
|
### minfreespace
|
||||||
|
|
||||||
|
Same purpose and syntax as the [global option](minfreespace.md) but
|
||||||
|
specific to the branch. Defaults to the global value.
|
||||||
|
|
||||||
|
|
||||||
|
### resolution
|
||||||
|
|
||||||
|
Each colon-delimited branch designation is resolved independently when
|
||||||
|
the `branches` option is parsed, both at startup and when it is updated
|
||||||
|
through the runtime API:
|
||||||
|
|
||||||
|
1. The path portion is expanded as a glob.
|
||||||
|
2. If the glob matches one or more directories, each match becomes a
|
||||||
|
branch.
|
||||||
|
3. If the glob has no matches, mergerfs logs a notice and keeps the
|
||||||
|
configured path unchanged as a single, literal branch.
|
||||||
|
4. mergerfs resolves each resulting path with `realpath`. If that
|
||||||
|
succeeds, the canonical path is stored. If it fails, typically
|
||||||
|
because the path does not exist yet, the unchanged path is stored.
|
||||||
|
5. A path which exists but is not a directory is logged and skipped. A
|
||||||
|
path which does not exist is logged but retained.
|
||||||
|
|
||||||
|
Consequently, a literal branch such as `/mnt/hdd/disk0/foobar` may be
|
||||||
|
configured before it exists and can become usable after
|
||||||
|
`/mnt/hdd/disk0` is mounted. Branch resolution is not repeated in the
|
||||||
|
background, however. If `/mnt/hdd/disk0/*` has no matches when it is
|
||||||
|
resolved, mergerfs stores the literal path `/mnt/hdd/disk0/*`;
|
||||||
|
directories which match it later are not discovered automatically.
|
||||||
|
Update `branches` through the runtime API or restart mergerfs to
|
||||||
|
resolve the glob again.
|
||||||
|
|
||||||
|
|
||||||
|
### globbing
|
||||||
|
|
||||||
|
To make it easier to include multiple branches mergerfs supports
|
||||||
|
[globbing](http://linux.die.net/man/7/glob). **The globbing tokens
|
||||||
|
MUST be escaped when using via the shell else the shell itself will
|
||||||
|
apply the glob itself.**
|
||||||
|
|
||||||
|
```
|
||||||
|
# mergerfs /mnt/hdd/\*:/mnt/ssd/\* /media
|
||||||
|
```
|
||||||
|
|
||||||
|
The above line will use all directories within `/mnt/hdd` and
|
||||||
|
`/mnt/ssd`.
|
||||||
|
|
||||||
|
To have the pool mounted at boot or otherwise accessible from related
|
||||||
|
tools use `/etc/fstab`.
|
||||||
|
|
||||||
|
```
|
||||||
|
# <file system> <mount point> <type> <options> <dump> <pass>
|
||||||
|
/mnt/hdd/*:/mnt/ssd/* /media mergerfs minfreespace=16G 0 0
|
||||||
|
```
|
||||||
|
|
||||||
|
**NOTE:** The globbing is done at mount or when updated using the
|
||||||
|
runtime API. If a new directory is added matching the glob after the
|
||||||
|
fact it will not be automatically included.
|
||||||
|
|
||||||
|
A convenient way to configure branches is to use
|
||||||
|
[symlinks](../quickstart.md/#etcfstab-w-config-file).
|
||||||
|
|
||||||
|
|
||||||
|
## branch setup
|
||||||
|
|
||||||
|
`mergerfs` does **not** require any special setup of branch paths in
|
||||||
|
order to be used however here are some suggestions.
|
||||||
|
|
||||||
|
|
||||||
|
### layout
|
||||||
|
|
||||||
|
When you have a large collection of storage devices, types of storage,
|
||||||
|
and types of interconnects it can be useful to have a verbose naming
|
||||||
|
convention. My preference is to create a directory within `/mnt/` for
|
||||||
|
each major type of storage device and/or interconnect. `hdd` for
|
||||||
|
traditional hard drives; `ssd` for slower SATA based SSDs; `nvme` for
|
||||||
|
M.2 or U.2 NVME SSDs; `remote` for NFS, SMB, sshfs, etc.
|
||||||
|
|
||||||
|
The mount points within those directories are named after the size of
|
||||||
|
the storage and its serial number in the case of physical storage and
|
||||||
|
the hostname and remote filesystem for remote.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ls -lh /mnt/
|
||||||
|
total 16K
|
||||||
|
drwxr-xr-x 8 root root 4.0K Aug 18 2024 hdd
|
||||||
|
drwxr-xr-x 6 root root 4.0K Oct 8 2024 nvme
|
||||||
|
drwxr-xr-x 3 root root 4.0K Aug 24 2024 remote
|
||||||
|
drwxr-xr-x 3 root root 4.0K Jul 14 2024 ssd
|
||||||
|
|
||||||
|
$ ls -lh /mnt/hdd/
|
||||||
|
total 8K
|
||||||
|
d--------- 2 root root 4.0K Apr 14 15:58 10T-01234567
|
||||||
|
d--------- 2 root root 4.0K Apr 12 20:51 20T-12345678
|
||||||
|
|
||||||
|
$ ls -lh /mnt/nvme/
|
||||||
|
total 8K
|
||||||
|
d--------- 2 root root 4.0K Apr 14 16:00 1T-ABCDEFGH
|
||||||
|
d--------- 2 root root 4.0K Apr 14 23:24 1T-BCDEFGHI
|
||||||
|
|
||||||
|
$ ls -lh /mnt/remote/
|
||||||
|
total 8K
|
||||||
|
d--------- 2 root root 4.0K Apr 12 20:23 foo-sshfs
|
||||||
|
d--------- 2 root root 4.0K Apr 12 20:24 bar-nfs
|
||||||
|
|
||||||
|
# You can find the serial number of a drive using lsblk
|
||||||
|
$ lsblk -d -o NAME,PATH,SIZE,SERIAL
|
||||||
|
NAME PATH SIZE SERIAL
|
||||||
|
sda /dev/sda 9.1T 01234567
|
||||||
|
sdb /dev/sdb 18.2T 12345678
|
||||||
|
nvme0n1 /dev/nvme0n1 953.9G ABCDEFGH
|
||||||
|
nvme1n1 /dev/nvme1n1 953.9G BCDEFGHI
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### permissions and mode
|
||||||
|
|
||||||
|
#### mount points
|
||||||
|
|
||||||
|
To ensure the directory is **only** used as a point to mount another
|
||||||
|
filesystem it is good to lock it down as much as possible. Be sure to
|
||||||
|
do this **before** mounting a filesystem to it.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sudo chown root:root /mnt/hdd/10T-XYZ
|
||||||
|
$ sudo chmod 0000 /mnt/hdd/10T-XYZ
|
||||||
|
$ sudo setfattr -n user.mergerfs.branch_mounts_here
|
||||||
|
$ sudo chattr +i /mnt/hdd/10T-XYZ
|
||||||
|
```
|
||||||
|
|
||||||
|
The extended attribute `user.mergerfs.branch_mounts_here` is used by
|
||||||
|
the [branches-mount-timeout](branches-mount-timeout.md) option to
|
||||||
|
recognize whether or not a mergerfs branch path points to the intended
|
||||||
|
filesystem.
|
||||||
|
|
||||||
|
The `chattr` is likely to only work on EXT{2,3,4} filesystems but will
|
||||||
|
restrict even `root` from modifying the directory or its content but
|
||||||
|
is still able to be a mount point.
|
||||||
|
|
||||||
|
|
||||||
|
#### mounted filesystems
|
||||||
|
|
||||||
|
For those new to Linux, intending to be the primary individual logged
|
||||||
|
into the system, or simply want to simplify permissions it is
|
||||||
|
recommended to set the root of mounted filesystems like `/tmp/` is set
|
||||||
|
to. Owned by `root`, `ugo+rwx` and [sticky
|
||||||
|
bit](https://en.wikipedia.org/wiki/Sticky_bit) set.
|
||||||
|
|
||||||
|
This must be done **after** mounting the filesystem to the target
|
||||||
|
mount point.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sudo chown root:root /mnt/hdd/10T-SERIALNUM
|
||||||
|
$ sudo chmod 1777 /mnt/hdd/10T-SERIALNUM
|
||||||
|
$ sudo setfattr -n user.mergerfs.branch /mnt/hdd/10T-SERIALNUM
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### formatting
|
||||||
|
|
||||||
|
While even less relevant to mergerfs than the details above the topic
|
||||||
|
does com up regularly with mergerfs users. When it comes to
|
||||||
|
partitioning and formatting it is suggested to keep things
|
||||||
|
simple. Most users of mergerfs will be using the whole drive capacity
|
||||||
|
and as such have a singular partition and filesystem on that
|
||||||
|
partition. Something many people don't realize is that the partition
|
||||||
|
is not necessary and actually can become problematic.
|
||||||
|
|
||||||
|
Rather than creating paritions just format the block device. Let's use
|
||||||
|
`/dev/sda` as an example.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ lsblk -d -o NAME,PATH,SERIAL /dev/sda
|
||||||
|
NAME PATH SERIAL
|
||||||
|
sda /dev/sda 01234567
|
||||||
|
|
||||||
|
$ sudo mkfs.ext4 -m0 -L 01234567 /dev/sda
|
||||||
|
mke2fs 1.47.0 (5-Feb-2023)
|
||||||
|
Discarding device blocks: done
|
||||||
|
Creating filesystem with 262144 4k blocks and 65536 inodes
|
||||||
|
Filesystem UUID: ede8bf96-9aff-464e-a4fb-a4ab8a197cd7
|
||||||
|
Superblock backups stored on blocks:
|
||||||
|
32768, 98304, 163840, 229376
|
||||||
|
|
||||||
|
Allocating group tables: done
|
||||||
|
Writing inode tables: done
|
||||||
|
Creating journal (8192 blocks): done
|
||||||
|
Writing superblocks and filesystem accounting information: done
|
||||||
|
```
|
||||||
|
|
||||||
|
You can then use the serial number as the identifier in `fstab`.
|
||||||
|
|
||||||
|
```
|
||||||
|
# <file system> <mount point> <type> <options> <dump> <pass>
|
||||||
|
LABEL=01234567 /mnt/hdd/10TB-01234567 auto nofail 0 2
|
||||||
|
```
|
||||||
|
|
||||||
|
Benefits of doing it this way?
|
||||||
|
|
||||||
|
* One less thing (partitions) to configure and worry about.
|
||||||
|
* Guarantees alignment of blocks
|
||||||
|
* Makes it easier to use the drive with different enclosures. Some
|
||||||
|
SATA to USB adapters use 4K blocks while the drive itself is using
|
||||||
|
512b. If you create partitions with one block size and move the
|
||||||
|
drive to a controller that uses the other the offset on the device
|
||||||
|
where the filesystem starts will be misinterpreted. It is possible
|
||||||
|
to manually fix this but it isn't well documented and avoidable.
|
||||||
193
mkdocs/docs/config/cache.md
Normal file
193
mkdocs/docs/config/cache.md
Normal file
|
|
@ -0,0 +1,193 @@
|
||||||
|
# caching
|
||||||
|
|
||||||
|
## cache.files
|
||||||
|
|
||||||
|
Controls how [page caching](https://en.wikipedia.org/wiki/Page_cache)
|
||||||
|
works for mergerfs itself. Not the underlying filesystems.
|
||||||
|
|
||||||
|
* `cache.files=off`: Disables page caching for mergerfs.
|
||||||
|
* `cache.files=partial`: Enables page caching. Files are cached
|
||||||
|
while open.
|
||||||
|
* `cache.files=full`: Enables page caching. Files are cached across
|
||||||
|
opens.
|
||||||
|
* `cache.files=auto-full`: Enables page caching. Files are cached
|
||||||
|
across opens if mtime and size are unchanged since previous
|
||||||
|
open. Cache is dropped if mtime or size change on open.
|
||||||
|
* `cache.files=per-process`: Enable page caching (equivalent to
|
||||||
|
`cache.files=partial`) only for processes whose 'comm' name matches
|
||||||
|
one of the values defined in cache.files.process-names. If the name
|
||||||
|
does not match the file open is equivalent to `cache.files=off`.
|
||||||
|
|
||||||
|
|
||||||
|
Generally, enabling the page cache actually *harms*
|
||||||
|
performance[^1]. In part because it can lead to buffer bloat due to
|
||||||
|
the kernel caching both the underlying filesystem's file content as
|
||||||
|
well as the file through mergerfs. However, if you want to confirm
|
||||||
|
performance differences it is recommended that you perform some
|
||||||
|
benchmark to confirm which option works best for your setup.
|
||||||
|
|
||||||
|
Why then would you want to enable page caching if it consumes ~2x the
|
||||||
|
RAM as normal and is on average slower? Because it is the only way to
|
||||||
|
support
|
||||||
|
[mmap](https://man7.org/linux/man-pages/man2/mmap.2.html). `mmap` is a
|
||||||
|
way for programs to treat a file as if it is a contiguous RAM buffer
|
||||||
|
which is regularly used by a number of programs such as those that
|
||||||
|
leverage **sqlite3**. Despite `mmap` not being supported by all
|
||||||
|
filesystems it is unfortunately common for software to not have an
|
||||||
|
option to use regular file IO instead of `mmap`.
|
||||||
|
|
||||||
|
The good thing is that in Linux v6.6[^2] and above FUSE can now
|
||||||
|
transparently enable page caching when mmap is requested. This means
|
||||||
|
it should be safe to set `cache.files=off`. However, on Linux v6.5 and
|
||||||
|
below you will need to configure `cache.files` as you need.
|
||||||
|
|
||||||
|
If [passthrough.io](passthrough.md) is enabled so must page
|
||||||
|
caching. mergerfs will set `cache.files=auto-full` if `passthrough.io`
|
||||||
|
is enabled. And when using `passthrough.io` the there is no double
|
||||||
|
page caching since it is in fact passing through the IO.
|
||||||
|
|
||||||
|
|
||||||
|
[^1]: This is not unique to mergerfs and affects all FUSE
|
||||||
|
filesystems. It is something that the FUSE community hopes to
|
||||||
|
investigate at some point but as of early 2025 there are a number
|
||||||
|
of major reworking going on with FUSE which needs to be finished
|
||||||
|
first.
|
||||||
|
[^2]: [https://kernelnewbies.org/Linux_6.6#FUSE](https://kernelnewbies.org/Linux_6.6#FUSE)
|
||||||
|
|
||||||
|
|
||||||
|
## cache.entry
|
||||||
|
|
||||||
|
* `cache.entry=UINT`: Sets the number of seconds to cache
|
||||||
|
entry queries. Defaults to `1`.
|
||||||
|
|
||||||
|
The kernel must ask mergerfs about the existence of files. The entry
|
||||||
|
cache caches that those details which limits the number of requests
|
||||||
|
sent to mergerfs.
|
||||||
|
|
||||||
|
The risk of setting this value, as with most any cache, is related to
|
||||||
|
[out-of-band](https://en.wikipedia.org/wiki/Out-of-band) changes. If
|
||||||
|
the filesystems are changed outside mergerfs there is a risk of files
|
||||||
|
which have been removed continuing to show as available. It will fail
|
||||||
|
gracefully if a phantom file is actioned on in some way so there is
|
||||||
|
little risk in setting the value much higher. Especially if there are
|
||||||
|
no out-of-band changes.
|
||||||
|
|
||||||
|
|
||||||
|
## cache.negative-entry
|
||||||
|
|
||||||
|
* `cache.negative-entry=UINT`: Sets the number of seconds to cache
|
||||||
|
negative entry queries. Defaults to `1`.
|
||||||
|
|
||||||
|
This is a cache for negative entry query responses. Such as when a
|
||||||
|
file which does not exist is referenced.
|
||||||
|
|
||||||
|
The risk of setting this value, as with most any cache, is related to
|
||||||
|
[out-of-band](https://en.wikipedia.org/wiki/Out-of-band) changes. If
|
||||||
|
the filesystems are changed outside mergerfs there is a risk of files
|
||||||
|
which have been added outside mergerfs not appearing correctly till
|
||||||
|
the cache entry times out if there had been a request for the same
|
||||||
|
name within mergerfs which didn't exist. This is mostly an
|
||||||
|
inconvenience.
|
||||||
|
|
||||||
|
|
||||||
|
## cache.attr
|
||||||
|
|
||||||
|
* `cache.attr=UINT`: Sets the number of seconds to cache file
|
||||||
|
attributes. Defaults to `1`.
|
||||||
|
|
||||||
|
This is a cache for file attributes and metadata such as that which is
|
||||||
|
collected by the
|
||||||
|
[stat](https://man7.org/linux/man-pages/man2/stat.2.html) system call
|
||||||
|
which is used when you run commands such as `find` or `ls -lh`.
|
||||||
|
|
||||||
|
As with other caches the risk of enabling the attribute cache is if
|
||||||
|
changes are made to the file out-of-band there could be
|
||||||
|
inconsistencies between the actual file and the cached details which
|
||||||
|
could result in different issues depending on how the data is used. If
|
||||||
|
the simultaneous writing of a file from inside and outside is unlikely
|
||||||
|
then you should be safe. That said any simultaneous, uncoordinated
|
||||||
|
manipulation of a file can lead to unexpected results.
|
||||||
|
|
||||||
|
|
||||||
|
## cache.statfs
|
||||||
|
|
||||||
|
* `cache.statfs=UINT`: Sets the number of seconds to cache `statfs`
|
||||||
|
calls used by policies. Defaults to `0`.
|
||||||
|
|
||||||
|
A number of policies require looking up the available space of the
|
||||||
|
branches being considered. This is accomplished by calling
|
||||||
|
[statfs](https://man7.org/linux/man-pages/man2/statfs.2.html). This
|
||||||
|
call however is a bit expensive so this cache reduces the overhead by
|
||||||
|
limiting how often the calls are actually made.
|
||||||
|
|
||||||
|
This will mean that if the available space of branches changed
|
||||||
|
somewhat rapidly there is a risk of `create` or `mkdir` calls made
|
||||||
|
within the timeout period ending up on the same branch. This however
|
||||||
|
should even itself out over time.
|
||||||
|
|
||||||
|
|
||||||
|
## cache.symlinks
|
||||||
|
|
||||||
|
* `cache.symlinks=BOOL`: Enable kernel caching of symlink
|
||||||
|
values. Defaults to `false`.
|
||||||
|
|
||||||
|
As of Linux v4.20 there is an ability to cache the value of symlinks
|
||||||
|
so that the kernel does not need to make a request to mergerfs every
|
||||||
|
single time a
|
||||||
|
[readlink](https://man7.org/linux/man-pages/man2/readlink.2.html)
|
||||||
|
request is made. While not a common usage pattern, if software very
|
||||||
|
regularly queries symlink values, the use of this cache could
|
||||||
|
significantly improve performance.
|
||||||
|
|
||||||
|
mergerfs will not error if the kernel used does not support symlink
|
||||||
|
caching.
|
||||||
|
|
||||||
|
As with other caches the main risk in enabling it is if you are
|
||||||
|
manipulating symlinks from both within and without the mergerfs
|
||||||
|
mount. Should the value be changed outside of mergerfs then it will
|
||||||
|
not be reflected in the mergerfs mount till the cached value is
|
||||||
|
invalidated.
|
||||||
|
|
||||||
|
|
||||||
|
## cache.readdir
|
||||||
|
|
||||||
|
* `cache.readdir=BOOL`: Enable kernel caching of readdir
|
||||||
|
results. Defaults to `false`.
|
||||||
|
|
||||||
|
As of Linux v4.20 it supports readdir caching. This can have a
|
||||||
|
significant impact on directory traversal. Especially when combined
|
||||||
|
with entry (`cache.entry`) and attribute (`cache.attr`) caching. If
|
||||||
|
the kernel doesn't support readdir caching setting the option to true
|
||||||
|
has no effect. This option is configurable at runtime via xattr
|
||||||
|
user.mergerfs.cache.readdir.
|
||||||
|
|
||||||
|
## cache.writeback
|
||||||
|
|
||||||
|
* `cache.writeback=BOOL`: Enable writeback cache. Defaults to `false`.
|
||||||
|
|
||||||
|
When `cache.files` is enabled the default is for it to perform
|
||||||
|
writethrough caching. This behavior won't help improve performance as
|
||||||
|
each write still goes one for one through the filesystem. By enabling
|
||||||
|
the FUSE writeback cache small writes *may* be aggregated by the
|
||||||
|
kernel and then sent to mergerfs as one larger request. This can
|
||||||
|
greatly improve the throughput for apps which write to files
|
||||||
|
inefficiently. The amount the kernel can aggregate is limited by the
|
||||||
|
size of a FUSE message. Read the [fuse-msg-size](fuse-msg-size.md)
|
||||||
|
section for more details.
|
||||||
|
|
||||||
|
There is a side effect as a result of enabling writeback
|
||||||
|
caching. Underlying files won't ever be opened with O_APPEND or
|
||||||
|
O_WRONLY. The former because the kernel then manages append mode and
|
||||||
|
the latter because the kernel may request file data from mergerfs to
|
||||||
|
populate the write cache. The O_APPEND change means that if a file is
|
||||||
|
changed outside of mergerfs it could lead to corruption as the kernel
|
||||||
|
won't know the end of the file has changed. That said any time you use
|
||||||
|
caching you should keep from writing to the same file outside of
|
||||||
|
mergerfs at the same time.
|
||||||
|
|
||||||
|
Note that if an application is properly sizing writes then writeback
|
||||||
|
caching will have little or no effect. It will only help with writes
|
||||||
|
of sizes below the FUSE message size (128K on older kernels, 1M on
|
||||||
|
newer). Even then its effectiveness might not be great. Given the side
|
||||||
|
effects of enabling this feature it is recommended that its benefits
|
||||||
|
be proved out with benchmarks.
|
||||||
26
mkdocs/docs/config/deprecated_options.md
Normal file
26
mkdocs/docs/config/deprecated_options.md
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# Deprecated Options
|
||||||
|
|
||||||
|
These are old, deprecated options which may no longer have any
|
||||||
|
function or have been replaced. **They should not be used.**
|
||||||
|
|
||||||
|
* **allow_other**: mergerfs v2.35.0 and above sets this FUSE option
|
||||||
|
automatically if running as root.
|
||||||
|
* **async_read**: Use `async-read=true`.
|
||||||
|
* **atomic_o_trunc**: Does nothing.
|
||||||
|
* **attr_timeout**: Use [cache.attr](cache.md).
|
||||||
|
* **auto_cache**: Use [cache.files=auto-full](cache.md).
|
||||||
|
* **big_writes**: Does nothing.
|
||||||
|
* **direct_io**: Use [cache.files=off](cache.md).
|
||||||
|
* **entry_timeout**: Use [cache.entry](cache.md).
|
||||||
|
* **hard_remove**: Does nothing.
|
||||||
|
* **kernel_cache**: Use [cache.files=full](cache.md).
|
||||||
|
* **negative_entry**: Use [cache.negative-entry](cache.md).
|
||||||
|
* **remember**: Use `never-forget-nodes`.
|
||||||
|
* **remember-nodes**: Use `never-forget-nodes`.
|
||||||
|
* **noforget**: Use `never-forget-nodes`.
|
||||||
|
* **nonempty**: Does nothing.
|
||||||
|
* **splice_move**: Does nothing.
|
||||||
|
* **splice_read**: Does nothing.
|
||||||
|
* **splice_write**: Does nothing.
|
||||||
|
* **sync_read**: Use `async-read=false`.
|
||||||
|
* **use_ino**: Use [inodecalc](inodecalc.md).
|
||||||
15
mkdocs/docs/config/export-support.md
Normal file
15
mkdocs/docs/config/export-support.md
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# export-support
|
||||||
|
|
||||||
|
* `export-support=true|false`
|
||||||
|
* Default: `true`
|
||||||
|
|
||||||
|
|
||||||
|
In theory, this flag should not be exposed to the end user. It is a
|
||||||
|
low-level FUSE flag which indicates whether or not the kernel can send
|
||||||
|
certain kinds of messages to it for the purposes of using it with
|
||||||
|
NFS. mergerfs does support these messages but due to bugs and quirks
|
||||||
|
found in the kernel and mergerfs this option is provided just in case
|
||||||
|
it is needed for debugging.
|
||||||
|
|
||||||
|
Given that this flag is set when the FUSE connection is first
|
||||||
|
initiated it is not possible to change during run time.
|
||||||
21
mkdocs/docs/config/flush-on-close.md
Normal file
21
mkdocs/docs/config/flush-on-close.md
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
# flush-on-close
|
||||||
|
|
||||||
|
By default, FUSE would issue a flush before the release of a file
|
||||||
|
descriptor. This was considered a bit aggressive and a feature added
|
||||||
|
to give the FUSE server the ability to choose when that happens.
|
||||||
|
|
||||||
|
* `flush-on-close=always`
|
||||||
|
* `flush-on-close=never`
|
||||||
|
* `flush-on-close=opened-for-write`
|
||||||
|
* Defaults to `opened-for-write`.
|
||||||
|
|
||||||
|
For now it defaults to `opened-for-write` which is less aggressive
|
||||||
|
than the behavior before this feature was added. It should not be a
|
||||||
|
problem because the flush is really only relevant when a file is
|
||||||
|
written to. Given flush is irrelevant for many filesystems in the
|
||||||
|
future a branch specific flag may be added so only files opened on a
|
||||||
|
specific branch would be flushed on close.
|
||||||
|
|
||||||
|
## References
|
||||||
|
|
||||||
|
* [https://lkml.kernel.org/linux-fsdevel/20211024132607.1636952-1-amir73il@gmail.com/T/](https://lkml.kernel.org/linux-fsdevel/20211024132607.1636952-1-amir73il@gmail.com/T/)
|
||||||
23
mkdocs/docs/config/follow-symlinks.md
Normal file
23
mkdocs/docs/config/follow-symlinks.md
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# follow-symlinks
|
||||||
|
|
||||||
|
This feature, when enabled, will cause symlinks to be interpreted by
|
||||||
|
mergerfs as their target.
|
||||||
|
|
||||||
|
When there is a getattr/stat request for a file mergerfs will check if
|
||||||
|
the file is a symlink and depending on the `follow-symlinks` setting
|
||||||
|
will replace the information about the symlink with that of that which
|
||||||
|
it points to.
|
||||||
|
|
||||||
|
When unlink'ing or rmdir'ing the followed symlink it will remove the
|
||||||
|
symlink itself and not that which it points to.
|
||||||
|
|
||||||
|
* `follow-symlinks=never`: Behave as normal. Symlinks are treated as such.
|
||||||
|
* `follow-symlinks=directory`: Resolve symlinks only which point to directories.
|
||||||
|
* `follow-symlinks=regular`: Resolve symlinks only which point to regular files.
|
||||||
|
* `follow-symlinks=all`: Resolve all symlinks to that which they point
|
||||||
|
to. Symlinks which do not point to anything are left as is.
|
||||||
|
* Defaults to `never`.
|
||||||
|
|
||||||
|
**WARNING:** This feature should be considered experimental. There
|
||||||
|
might be edge cases yet found. If you find any odd behaviors please
|
||||||
|
file a ticket on [github](https://github.com/trapexit/mergerfs/issues/new?assignees=&labels=bug%2C+investigating&projects=&template=bug_report.md&title=).
|
||||||
47
mkdocs/docs/config/func_readdir.md
Normal file
47
mkdocs/docs/config/func_readdir.md
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
# func.readdir
|
||||||
|
|
||||||
|
* type: `STR`
|
||||||
|
* default: `seq`
|
||||||
|
* examples: `func.readdir=seq`, `func.readdir=cor:4`
|
||||||
|
|
||||||
|
`readdir` has policies to control how to read directory content.
|
||||||
|
|
||||||
|
| Policy | Description |
|
||||||
|
| ------ | ----------- |
|
||||||
|
| seq | "sequential" : Iterate sequentially over branches in the order defined in `branches`. This is the default and traditional behavior found prior to the readdir policy introduction. This will be increasingly slower as more branches are added to the pool. Especially if needing to wait for drives to spin up or network filesystems to respond. |
|
||||||
|
| cosr:N:M | "concurrent open, sequential read" : Concurrently open branch directories using a thread pool and process them in the order defined in `branches`. This keeps memory and CPU usage low while also reducing the time spent waiting on branches to respond. `N` is the number of threads. If negative it will be the core count divided by `abs(N)`. `M` is the queue depth. If either value is `0` it will be decided based on system configuration. |
|
||||||
|
| cosr:N | cosr:N:M with M = 0 |
|
||||||
|
| cosr | cosr:N:M with N = 0 and M = 0 |
|
||||||
|
| cor:N:M | "concurrent open and read" : Concurrently open branch directories and immediately start reading their contents using a thread pool. This will result in slightly higher memory and CPU usage but reduced latency. Particularly when using higher latency / slower speed network filesystem branches. Unlike `seq` and `cosr` the order of files could change due the async nature of the thread pool. This should not be a problem since the order of files returned in not guaranteed. `N` is the number of threads. If negative it will be the core count divided by `abs(N)`. `M` is the queue depth. If either value is `0` it will be decided based on system configuration. |
|
||||||
|
| cor:N | cosr:N:M with M = 0 |
|
||||||
|
| cor | cosr:N:M with N = 0 and M = 0 |
|
||||||
|
|
||||||
|
Keep in mind that `readdir` mostly just provides a list of file names
|
||||||
|
in a directory and possibly some basic metadata about said files. To
|
||||||
|
know details about the files, as one would see from commands like
|
||||||
|
`find` or `ls`, it is required to call `stat` on the file which is
|
||||||
|
controlled by `fuse.getattr`.
|
||||||
|
|
||||||
|
Until Linux v6.16, despite being able to change the size of FUSE
|
||||||
|
messages, `readdir` requests were limited to 1 page (4KiB) in size per
|
||||||
|
message. This limitation limited throughput and therefore performance
|
||||||
|
of the `readdir` call. In v6.16 that was changed to be able to grow to
|
||||||
|
the [fuse-msg-size](fuse-msg-size.md) which allows a lot more data to
|
||||||
|
be sent per request and therefore much better performance in certain
|
||||||
|
situations.
|
||||||
|
|
||||||
|
|
||||||
|
## Technical Details
|
||||||
|
|
||||||
|
* On Linux
|
||||||
|
[getdents](https://man7.org/linux/man-pages/man2/getdents.2.html) is
|
||||||
|
used instead of
|
||||||
|
[readdir](https://man7.org/linux/man-pages/man2/readdir.2.html) in
|
||||||
|
order to leverage larger buffers for better performance on larger
|
||||||
|
directory reads as well as have more control in concurrent policies.
|
||||||
|
Individual branch `getdents64` requests are capped at 128 KiB to work
|
||||||
|
around problems with larger requests on virtiofs. This applies to
|
||||||
|
`seq`, `cosr`, and `cor`; it does not limit the total directory listing
|
||||||
|
or change [fuse-msg-size](fuse-msg-size.md).
|
||||||
|
* [readdir](https://man7.org/linux/man-pages/man2/readdir.2.html) is
|
||||||
|
used on FreeBSD.
|
||||||
157
mkdocs/docs/config/functions_categories_policies.md
Normal file
157
mkdocs/docs/config/functions_categories_policies.md
Normal file
|
|
@ -0,0 +1,157 @@
|
||||||
|
# functions, categories and policies
|
||||||
|
|
||||||
|
The POSIX filesystem API is made up of a number of functions. `creat`,
|
||||||
|
`stat`, `chown`, etc. For ease of configuration in mergerfs, most of
|
||||||
|
the core functions are grouped into 3 categories: `action`, `create`,
|
||||||
|
and `search`. These functions and categories can be assigned a policy
|
||||||
|
which dictates which branch is chosen when performing that
|
||||||
|
function. IE. When an application requests that a file or directory is
|
||||||
|
created how should mergerfs decide which branch to choose to attempt
|
||||||
|
the create? That is the policy.
|
||||||
|
|
||||||
|
Some functions, listed in the category `N/A` below, can not be
|
||||||
|
assigned the normal policies because they are directly related to a
|
||||||
|
file which has already been opened.
|
||||||
|
|
||||||
|
|
||||||
|
## Functions and their Category classifications
|
||||||
|
|
||||||
|
| Category | Functions |
|
||||||
|
| -------- | --------- |
|
||||||
|
| action | chmod, chown, link, removexattr, rename, rmdir, setxattr, truncate, unlink, utimens |
|
||||||
|
| create | create, mkdir, mknod, symlink |
|
||||||
|
| search | access, getattr, getxattr, ioctl (directories), listxattr, open, readlink |
|
||||||
|
| N/A | fchmod, fchown, futimens, ftruncate, fallocate, fgetattr, fsync, ioctl (files), read, readdir, release, statfs, write, copy_file_range |
|
||||||
|
|
||||||
|
In cases where something may be searched for (such as a path to clone)
|
||||||
|
`getattr` will usually be used.
|
||||||
|
|
||||||
|
|
||||||
|
## Policies
|
||||||
|
|
||||||
|
See below for [available policies and their descriptions](#policy-descriptions).
|
||||||
|
|
||||||
|
A policy is an algorithm designed to select one or more branches for a
|
||||||
|
function to operate on.
|
||||||
|
|
||||||
|
Policies do not actually manage the filesystem or layout. They are
|
||||||
|
strictly responsible for deciding which files or branches will be
|
||||||
|
worked on in relation to the function being performed. Once the branch
|
||||||
|
is chosen other parts of the system does what is necessary to
|
||||||
|
accomplish the function. Such as the cloning of directories between
|
||||||
|
branches.
|
||||||
|
|
||||||
|
When a directory path is cloned onto another branch, mergerfs attempts
|
||||||
|
to preserve its ownership, permissions (including setgid), timestamps,
|
||||||
|
and extended attributes. Permissions are restored after ownership so
|
||||||
|
new files in a setgid directory inherit its group on the new branch.
|
||||||
|
Directories which already exist on the destination branch are left
|
||||||
|
unchanged.
|
||||||
|
|
||||||
|
When using policies which are based on a branch's available space the
|
||||||
|
branch base path provided is used. Not the full path to the file or
|
||||||
|
directory in question. Meaning that mounts within the branch will not
|
||||||
|
be considered in the space calculations.
|
||||||
|
|
||||||
|
**NOTE:** While any policy can be assigned to a function or category,
|
||||||
|
some may not be very useful in practice. For instance: `rand` (random)
|
||||||
|
may be useful for file creation but could lead to very odd behavior if
|
||||||
|
used for `chmod` if there were more than one copy of the file. Unless
|
||||||
|
users find this flexibility useful it will likely be removed in the
|
||||||
|
future.
|
||||||
|
|
||||||
|
|
||||||
|
## Filtering
|
||||||
|
|
||||||
|
Most policies search branches and create a list of files / paths for
|
||||||
|
functions to work on. The policy is responsible for filtering and
|
||||||
|
sorting the branches. Filters include [minfreespace](minfreespace.md),
|
||||||
|
whether or not a branch is mounted read-only, and the branch mode
|
||||||
|
(RO,NC,RW). These filters are applied across most policies.
|
||||||
|
|
||||||
|
- No `search` function policies filter.
|
||||||
|
- All `action` function policies filter out branches which are
|
||||||
|
mounted **read-only** or mode is **RO (read-only)**.
|
||||||
|
- All `create` function policies filter out branches which are
|
||||||
|
mounted **read-only**, mode **RO (read-only)** or **NC (no
|
||||||
|
create)**, or has available space less than
|
||||||
|
[minfreespace](minfreespace.md).
|
||||||
|
|
||||||
|
Policies may have their own additional filtering such as those that
|
||||||
|
require relative paths to be present.
|
||||||
|
|
||||||
|
If all branches are filtered an error will be returned. Typically
|
||||||
|
`EROFS` (read-only filesystem) or `ENOSPC` (no space left on
|
||||||
|
device) depending on the most recent reason for filtering a
|
||||||
|
branch.
|
||||||
|
|
||||||
|
If `create`, `mkdir`, `mknod`, or `symlink` fail with `EROFS`
|
||||||
|
or other fundamental errors then mergerfs will mark any branch found
|
||||||
|
to be read-only as such (IE will set the mode `RO`) and will rerun the
|
||||||
|
policy and try again. This is mostly for `ext4` filesystems that can
|
||||||
|
suddenly become read-only when it encounters an error.
|
||||||
|
|
||||||
|
|
||||||
|
## Path Preservation
|
||||||
|
|
||||||
|
Policies, as described below, are of two basic classifications. `path
|
||||||
|
preserving` and `non-path preserving`.
|
||||||
|
|
||||||
|
All policies which start with `ep` (`epff`, `eplfs`, `eplus`, `epmfs`,
|
||||||
|
`eprand`) are `path preserving`. `ep` stands for `existing path`.
|
||||||
|
|
||||||
|
A path preserving policy will only consider branches where the relative
|
||||||
|
path being accessed already exists.
|
||||||
|
|
||||||
|
With the `msp` or `most shared path` policies they are defined as
|
||||||
|
`path preserving` for the purpose of controlling `link` and `rename`'s
|
||||||
|
behaviors since `ignorepponrename` is available to disable that
|
||||||
|
behavior.
|
||||||
|
|
||||||
|
|
||||||
|
## Policy descriptions
|
||||||
|
|
||||||
|
A policy's behavior differs, as mentioned above, based on the function
|
||||||
|
it is used with. Sometimes it really might not make sense to even
|
||||||
|
offer certain policies because they are literally the same as others
|
||||||
|
but it makes things a bit more uniform.
|
||||||
|
|
||||||
|
| Policy | Description |
|
||||||
|
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| pfrd (percentage free random distribution) | Selects a branch randomly, with the probability of selection proportional to its available space relative to the total available space across all branches. For instance, if Branch A has 100 GB free and Branch B has 50 GB free, Branch A is twice as likely to be chosen. |
|
||||||
|
| rand (random) | Calls **all** and then randomizes. Returns 1 branch. |
|
||||||
|
| mfs (most free space) | Pick the branch with the most available free space. |
|
||||||
|
| ff (first found) | Given the order of the branches, as defined at mount time or configured at runtime, act on the first one found. |
|
||||||
|
| lfs (least free space) | Pick the branch with the least available free space. |
|
||||||
|
| lup (least used percent) | Pick the branch with the least used percentage of space |
|
||||||
|
| lus (least used space) | Pick the branch with the least used space. |
|
||||||
|
| all | Search: For **mkdir**, **mknod**, and **symlink** it will apply to all branches. **create** works like **ff**. |
|
||||||
|
| msppfrd (most shared path, percentage free random distribution) | Like **eppfrd** but if it fails to find a branch it will try again with the parent directory. Continues through the branch root, returning an error if no branch qualifies. |
|
||||||
|
| mspmfs (most shared path, most free space) | Like **epmfs** but if it fails to find a branch it will try again with the parent directory. Continues through the branch root, returning an error if no branch qualifies. |
|
||||||
|
| msplfs (most shared path, least free space) | Like **eplfs** but if it fails to find a branch it will try again with the parent directory. Continues through the branch root, returning an error if no branch qualifies. |
|
||||||
|
| msplus (most shared path, least used space) | Like **eplus** but if it fails to find a branch it will try again with the parent directory. Continues through the branch root, returning an error if no branch qualifies. |
|
||||||
|
| eppfrd (existing path, percentage free random distribution) | Like **pfrd** but limited to existing paths. |
|
||||||
|
| epmfs (existing path, most free space) | Of all the branches on which the relative path exists choose the branch with the most free space. |
|
||||||
|
| eprand (existing path, random) | Calls **epall** and then randomizes. Returns 1. |
|
||||||
|
| epff (existing path, first found) | Given the order of the branches, as defined at mount time or configured at runtime, act on the first one found where the relative path exists. |
|
||||||
|
| eplfs (existing path, least free space) | Of all the branches on which the relative path exists choose the branch with the least free space. |
|
||||||
|
| eplus (existing path, least used space) | Of all the branches on which the relative path exists choose the branch with the least used space. |
|
||||||
|
| epall (existing path, all) | For **mkdir**, **mknod**, and **symlink** it will apply to all found. **create** works like **epff** (but more expensive because it doesn't stop after finding a valid branch). |
|
||||||
|
| newest | Pick the file / directory with the largest mtime. |
|
||||||
|
|
||||||
|
**NOTE:** If you are using an underlying filesystem that reserves
|
||||||
|
blocks such as ext2, ext3, or ext4 be aware that mergerfs respects the
|
||||||
|
reservation by using `f_bavail` (number of free blocks for
|
||||||
|
unprivileged users) rather than `f_bfree` (number of free blocks) in
|
||||||
|
policy calculations. **df** does NOT use `f_bavail`, it uses
|
||||||
|
`f_bfree`, so direct comparisons between **df** output and mergerfs'
|
||||||
|
policies is not appropriate.
|
||||||
|
|
||||||
|
|
||||||
|
## Defaults
|
||||||
|
|
||||||
|
| Category | Policy |
|
||||||
|
| -------- | ------ |
|
||||||
|
| action | epall |
|
||||||
|
| create | pfrd |
|
||||||
|
| search | ff |
|
||||||
50
mkdocs/docs/config/fuse-msg-size.md
Normal file
50
mkdocs/docs/config/fuse-msg-size.md
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
# fuse-msg-size
|
||||||
|
|
||||||
|
* type: `UINT|SIZE`
|
||||||
|
* default: `1M`
|
||||||
|
* example: `fuse-msg-size=1M`
|
||||||
|
* If the value is a `SIZE` in the form of `xB`, `xK`, `xM`, `xG`, or
|
||||||
|
`xT` then it will choose the closest multiple of the system page
|
||||||
|
size. If the value is just an integer without a size multipler suffix
|
||||||
|
then it is treated as a page count
|
||||||
|
|
||||||
|
FUSE applications communicate with the kernel over a special character
|
||||||
|
device: `/dev/fuse`. A large portion of the overhead associated with
|
||||||
|
FUSE is the cost of going back and forth between user space and kernel
|
||||||
|
space over that device. Generally speaking, the fewer trips needed the
|
||||||
|
better the performance will be. Reducing the number of trips can be
|
||||||
|
done a number of ways. Kernel level caching and increasing message
|
||||||
|
sizes being two significant ones. When it comes to reads and writes if
|
||||||
|
the message size is doubled the number of trips are approximately
|
||||||
|
halved.
|
||||||
|
|
||||||
|
In Linux v4.20 a new feature was added allowing the negotiation of the
|
||||||
|
max message size. Since the size is in multiples of
|
||||||
|
[pages](https://en.wikipedia.org/wiki/Page_(computer_memory)) the
|
||||||
|
feature is called `max_pages`. In versions of Linux prior to v6.13
|
||||||
|
there is a maximum `max_pages` value of 256 (1MiB) and minimum of 1
|
||||||
|
(4KiB). In [Linux
|
||||||
|
v6.13](https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2b3933b1e0a0a4b758fbc164bb31db0c113a7e2c)
|
||||||
|
and above the max value supported by the kernel can range from 1
|
||||||
|
(4KiB) to 65535 (~256MiB) (assuming a page size of 4KiB.) The default
|
||||||
|
used by Linux >= 4.20, and hard coded value used before 4.20, is 32
|
||||||
|
(128KiB). In mergerfs it is referred to as `fuse-msg-size` to make it
|
||||||
|
clear what it impacts and provide some abstraction.
|
||||||
|
|
||||||
|
If the `fuse-msg-size` value provided is more than the system wide
|
||||||
|
maximum mergerfs will attempt to increase the system wide value to keep
|
||||||
|
the user from needing to set the value using `sysctl`,
|
||||||
|
`/etc/sysctl.conf`, or `/proc/sys/fs/fuse/max_pages_limit`.
|
||||||
|
|
||||||
|
The main downside to increasing the value is that memory usage will
|
||||||
|
increase approximately relative to the number of [processing
|
||||||
|
threads](threads.md) configured. Keep this in mind for systems with
|
||||||
|
lower amounts of memory like most SBCs. Performance improvements seem
|
||||||
|
to peak around 4MiB.
|
||||||
|
|
||||||
|
On kernels before v4.20 the option has no effect. On kernels between
|
||||||
|
v4.20 and v6.13 the max value is 256. On kernels >= v6.13 the maximum
|
||||||
|
value is 65535.
|
||||||
|
|
||||||
|
NOTE: If you intend to enable `cache.files` you should also set
|
||||||
|
[readahead](readahead.md) to match `fuse-msg-size`.
|
||||||
80
mkdocs/docs/config/inodecalc.md
Normal file
80
mkdocs/docs/config/inodecalc.md
Normal file
|
|
@ -0,0 +1,80 @@
|
||||||
|
# inodecalc
|
||||||
|
|
||||||
|
[Inodes](https://en.wikipedia.org/wiki/Inode) (`st_ino`) are unique
|
||||||
|
identifiers for files within a filesystem. Each mounted filesystem
|
||||||
|
also has a (typically) unique device ID (`st_dev`) as well and
|
||||||
|
together they can uniquely identify a file on the whole of the
|
||||||
|
system. Entries on the same device with the same inode are (generally)
|
||||||
|
in fact references to the same underlying file. It is a many to one
|
||||||
|
relationship between names and an inode. Directories, however, do not
|
||||||
|
have multiple links on most systems due to the complexity that would
|
||||||
|
add.
|
||||||
|
|
||||||
|
FUSE allows the server (in this case `mergerfs`) to set inode values
|
||||||
|
but not device IDs. Creating an inode value is somewhat complex in
|
||||||
|
mergerfs' case as files aren't really in its control. If a policy
|
||||||
|
changes what directory or file is to be selected or changes are made
|
||||||
|
to branches out of band it becomes unclear what value should be
|
||||||
|
used. Most software does not to care what the values are but those
|
||||||
|
that do often break if a value changes unexpectedly. For instance: the
|
||||||
|
tool `find` will abort a directory walk if it sees a directory inode
|
||||||
|
change. NFS can return stale handle errors if the inode changes
|
||||||
|
out-of-band. File dedup tools will usually leverage device ids and
|
||||||
|
inodes as a shortcut in searching for duplicate files and would resort
|
||||||
|
to full file comparisons should it find different inode values.
|
||||||
|
|
||||||
|
mergerfs offers multiple ways to calculate the inode in hopes of
|
||||||
|
covering different usecases.
|
||||||
|
|
||||||
|
* `passthrough`: Passes through the underlying inode value. Mostly
|
||||||
|
intended for testing as using this does not address any of the
|
||||||
|
problems mentioned above and could confuse file deduplication
|
||||||
|
software as inodes from different filesystems can be the same.
|
||||||
|
* `path-hash`: Hashes the relative path of the entry in question. The
|
||||||
|
underlying file's values are completely ignored. This means the
|
||||||
|
inode value will always be the same for that file path. This is
|
||||||
|
useful when using NFS and you make changes out of band such as copy
|
||||||
|
data between branches. This also means that entries that do point to
|
||||||
|
the same file will not be recognizable via inodes. That does not
|
||||||
|
mean hard links don't work. They will.
|
||||||
|
* `path-hash32`: 32bit version of path-hash.
|
||||||
|
* `devino-hash`: Hashes the branch path and inode of the underlying
|
||||||
|
entry. This won't prevent issues with NFS should the policy pick a
|
||||||
|
different file or files move out of band but will present the same
|
||||||
|
inode for underlying files that share the same inode. Previous
|
||||||
|
releases of mergerfs used the device ID but that changes on
|
||||||
|
reboot. The downside to using the branch path is inodes for files on
|
||||||
|
the same underlying filesystem will be different.
|
||||||
|
* `devino-hash32`: 32bit version of devino-hash.
|
||||||
|
* `hybrid-hash`: Performs path-hash on directories and devino-hash on
|
||||||
|
other file types. Since directories can't have hard links the static
|
||||||
|
value won't make a difference and the files will get values useful
|
||||||
|
for finding duplicates. Probably the best to use if not using
|
||||||
|
NFS. As such it is the default.
|
||||||
|
* `hybrid-hash32`: 32bit version of hybrid-hash.
|
||||||
|
|
||||||
|
32bit versions are provided as there is some software which does not
|
||||||
|
handle 64bit inodes well.
|
||||||
|
|
||||||
|
While there is a risk of hash collision in tests of a couple of
|
||||||
|
million entries there were zero collisions. Unlike a typical
|
||||||
|
filesystem FUSE filesystems can reuse inodes and not refer to the same
|
||||||
|
entry. The internal identifier used to reference a file in FUSE is
|
||||||
|
different from the inode value presented. The former is the nodeid and
|
||||||
|
is actually a tuple of 2 64bit values: nodeid and generation. This
|
||||||
|
tuple is not client facing. The inode that is presented to the client
|
||||||
|
is passed through the kernel uninterpreted.
|
||||||
|
|
||||||
|
From FUSE docs for `use_ino`:
|
||||||
|
|
||||||
|
> Honor the st_ino field in the functions getattr() and
|
||||||
|
> fill_dir(). This value is used to fill in the st_ino field
|
||||||
|
> in the stat(2), lstat(2), fstat(2) functions and the d_ino
|
||||||
|
> field in the readdir(2) function. The filesystem does not
|
||||||
|
> have to guarantee uniqueness, however some applications
|
||||||
|
> rely on this value being unique for the whole filesystem.
|
||||||
|
> Note that this does *not* affect the inode that libfuse
|
||||||
|
> and the kernel use internally (also called the "nodeid").
|
||||||
|
|
||||||
|
**NOTE:** As of version 2.35.0 the use_ino option has been
|
||||||
|
removed. mergerfs should always be managing inode values.
|
||||||
19
mkdocs/docs/config/kernel-permissions-check.md
Normal file
19
mkdocs/docs/config/kernel-permissions-check.md
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# kernel-permissions-check
|
||||||
|
|
||||||
|
* `kernel-permissions-check=true|false`
|
||||||
|
* Default: `true`
|
||||||
|
|
||||||
|
|
||||||
|
[FUSE](https://www.kernel.org/doc./html/next/filesystems/fuse.html)
|
||||||
|
has a feature which mergerfs leverages which allows the kernel to do
|
||||||
|
file permission checking rather than leaving it to the FUSE server (in
|
||||||
|
this case mergerfs.) This improves performance. However, it also
|
||||||
|
limits flexibility.
|
||||||
|
|
||||||
|
mergerfs should work fine regardless of this setting but there might
|
||||||
|
be some currently unknown edge cases where disabling the feature might
|
||||||
|
help. Like [export-support](export-support.md) this is mostly for
|
||||||
|
debugging.
|
||||||
|
|
||||||
|
This option is a kernel mount option so unable to be changed at
|
||||||
|
runtime. It controls the `default_permissions` FUSE kernel option.
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue