mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-24 11:55:40 +00:00
da34f27546
This deprecates the current minDiskFreePct setting and introduces minDiskFree. The latter is, in it's serialized form, a string with a unit. We accept percentages ("2.35%") and absolute values ("250 k", "12.5 Gi"). Common suffixes are understood. The config editor lets the user enter the string, and validates it. We still default to "1 %", but the user can change that to an absolute value at will. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4087 LGTM: AudriusButkevicius, imsodin
16 lines
822 B
XML
16 lines
822 B
XML
<configuration version="20">
|
|
<folder id="test" path="testdata" type="readonly" ignorePerms="false" rescanIntervalS="600" autoNormalize="true">
|
|
<device id="AIR6LPZ-7K4PTTV-UXQSMUU-CPQ5YWH-OEDFIIQ-JUG777G-2YQXXR5-YD6AWQR"></device>
|
|
<device id="P56IOI7-MZJNU2Y-IQGDREY-DM2MGTI-MGL3BXN-PQ6W5BM-TBBZ4TJ-XZWICQ2"></device>
|
|
<minDiskFree unit="%">1</minDiskFree>
|
|
<maxConflicts>-1</maxConflicts>
|
|
<fsync>true</fsync>
|
|
</folder>
|
|
<device id="AIR6LPZ-7K4PTTV-UXQSMUU-CPQ5YWH-OEDFIIQ-JUG777G-2YQXXR5-YD6AWQR" name="node one" compression="metadata">
|
|
<address>tcp://a</address>
|
|
</device>
|
|
<device id="P56IOI7-MZJNU2Y-IQGDREY-DM2MGTI-MGL3BXN-PQ6W5BM-TBBZ4TJ-XZWICQ2" name="node two" compression="metadata">
|
|
<address>tcp://b</address>
|
|
</device>
|
|
</configuration>
|