syncthing/lib/config
Jakob Borg da34f27546 gui, lib/config, lib/model: Allow absolute values for minimum disk free space (fixes #3307)
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
2017-04-12 09:01:19 +00:00
..
testdata gui, lib/config, lib/model: Allow absolute values for minimum disk free space (fixes #3307) 2017-04-12 09:01:19 +00:00
commit_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
config_test.go gui, lib/config, lib/model: Allow absolute values for minimum disk free space (fixes #3307) 2017-04-12 09:01:19 +00:00
config.go gui, lib/config, lib/model: Allow absolute values for minimum disk free space (fixes #3307) 2017-04-12 09:01:19 +00:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
deviceconfiguration.go lib/connections, lib/model, gui: Specify allowed networks per device (fixes #219) 2017-04-01 09:52:31 +00:00
folderconfiguration.go gui, lib/config, lib/model: Allow absolute values for minimum disk free space (fixes #3307) 2017-04-12 09:01:19 +00:00
foldertype.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
guiconfiguration.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
optionsconfiguration.go gui, lib/config, lib/model: Allow absolute values for minimum disk free space (fixes #3307) 2017-04-12 09:01:19 +00:00
pullorder.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
size_test.go gui, lib/config, lib/model: Allow absolute values for minimum disk free space (fixes #3307) 2017-04-12 09:01:19 +00:00
size.go gui, lib/config, lib/model: Allow absolute values for minimum disk free space (fixes #3307) 2017-04-12 09:01:19 +00:00
versioningconfiguration.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
wrapper.go lib/config, lib/connections: Configurables for KCP, disable by default 2017-03-07 12:55:50 +00:00