Simon Frei
c080f677cb
all: Add invalid/ignored files to global list, announce to peers ( fixes #623 )
...
This lets us determine accurate completion status for remote peers when they
have ignored files.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4460
2017-11-11 19:18:17 +00:00
Audrius Butkevicius
386cb274bd
lib/model: Incremental block stats usage reporting
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4498
LGTM: calmh
2017-11-09 21:16:29 +00:00
AudriusButkevicius
88180904f2
cmd/syncthing: Don't cache stale options in main ( fixes #4474 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4491
LGTM: imsodin, calmh
2017-11-07 07:20:19 +00:00
AudriusButkevicius
c5f90d64bc
cmd/syncthing: Report if weak hash is enabled
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4490
2017-11-06 15:04:59 +00:00
Jakob Borg
941c9f1531
cmd/syncthing: Accept pre-hashed password in config POST ( fixes #4458 )
...
It must be a bcrypt hash.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4466
2017-11-06 14:22:10 +00:00
AudriusButkevicius
62a4106a79
lib/connections: Fix lan detection ( fixes #4421 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4487
2017-11-06 14:05:29 +00:00
HairyFotr
7cbd92e1b1
all: Fix comment typos
...
Skip-check: authors
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4481
2017-11-04 07:20:11 +00:00
Jakob Borg
93a66deb7e
cmd/syncthing: Fix incorrect shadowing preventing first startup ( fixes #4471 )
2017-10-28 21:14:37 +02:00
Simon Frei
20fac4bb80
main: Improve logging for initial config loading (ref #4431 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4436
2017-10-21 09:00:24 +00:00
Simon Frei
55b63941b8
cmd/syncthing: Add fswatcher and remove useAPIKey stats
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4438
2017-10-20 16:25:20 +00:00
Michael Ploujnikov
f98c21b68e
all: Add filesystem notification support
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3986
2017-10-20 14:52:55 +00:00
Audrius Butkevicius
059185b325
cmd/syncthing: Expand usage stats even more (ref #3628 )
...
Also add diffing functionality
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4422
2017-10-15 07:45:15 +00:00
Audrius Butkevicius
1e9e9cbebb
cmd/syncthing: Uptime should be an integer
2017-10-14 18:22:30 +01:00
Audrius Butkevicius
2760d032ca
cmd/syncthing: Add more stats to usage reports (ref #3628 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4347
2017-10-12 06:16:46 +00:00
Tobias Tom
5aade9a4a5
Add -device-id command line option ( fixes #4387 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4390
2017-09-25 06:05:21 +00:00
Jakob Borg
429cc20eb7
cmd/syncthing: Add some common security releated HTTP headers ( fixes #4360 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4361
2017-09-10 08:28:12 +00:00
Jakob Borg
4d3e0de4ba
cmd/syncthing, lib/sha256: Skip CPU benchmarks when user decided ( fixes #4348 )
...
When STHASHING is set, don't benchmark as it's already decided. If weak
hashing isn't set to "auto", don't benchmark that either.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4349
2017-09-06 06:55:47 +00:00
Jakob Borg
49bddfbe53
cmd/syncthing: Add test for truncate behavior of log file (ref #4255 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4342
2017-09-02 06:56:35 +00:00
Audrius Butkevicius
ab132ff6fe
lib: Folder marker is now a folder
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4341
LGTM: calmh
2017-09-02 05:52:38 +00:00
Jakob Borg
70d121a94b
cmd/strelaysrv: Smaller, adjustable network buffer
2017-08-30 18:52:28 +02:00
Jakob Borg
33ffb07d31
cmd/strelaysrv: Don't leak tickers
2017-08-30 18:46:50 +02:00
Jakob Borg
7aaa92ac47
cmd/strelaysrv: Add profiling support, default disabled
2017-08-30 16:07:15 +02:00
Audrius Butkevicius
3d8b4a42b7
all: Convert folders to use filesystem abstraction
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4228
2017-08-19 14:36:56 +00:00
Audrius Butkevicius
94acc20dd6
cmd/strelaysrv: Fix a few connection and routine leaks ( fixes #4245 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4273
2017-07-26 19:18:00 +00:00
HairyFotr
0ad10b0fee
all: Typos
...
Skip-check: authors
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4263
2017-07-20 13:10:46 +00:00
Jose Manuel Delicado
4405117bea
gui: HTML accessibility updates
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4258
LGTM: calmh
2017-07-15 09:54:37 +00:00
Audrius Butkevicius
d637148cca
cmd/strelaypoolsrv: Show popup on row hover
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4201
2017-06-07 22:06:00 +00:00
Simon Frei
719c313b23
cmd/syncthing, lib/logger: Set debug flags on SetDebug for tests
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4187
2017-06-02 07:04:06 +00:00
Jakob Borg
803da92ca9
cmd/syncthing: Start CPU usage monitoring not from init ( fixes #4183 )
...
Starting stuff from init() is an antipattern, and the innerProcess
variable isn't 100% reliable. We should sort out the other uses of it as
well in due time.
Also removing the hack on innerProcess as I happened to see it and the
affected versions are now <1% users.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4185
2017-05-31 18:14:04 +00:00
Audrius Butkevicius
91d37f35bc
lib/model: Use up to date device name, do not provide name to unknown devices ( fixes #4164 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4168
2017-05-22 19:58:33 +00:00
Jakob Borg
1d15b8be9b
cmd/syncthing: Warn when running as a super user ( fixes #4123 )
...
UID 0 on Unixes, SYSTEM SID on Windows.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4148
2017-05-15 05:42:21 +00:00
Jakob Borg
d25b15263a
cmd/syncthing: Process handle should be closed
2017-05-14 18:06:27 +02:00
Jakob Borg
ec137c9522
cmd/syncthing: Fix CPU usage reporting (tick time)
2017-05-06 17:35:07 +02:00
Jakob Borg
c4b527e5e9
cmd/syncthing: Report correct CPU usage on Windows ( fixes #4133 )
2017-05-05 16:12:59 +02:00
Jakob Borg
d6fbfc3545
lib/fs, lib/model, lib/scanner: Make scans cancellable ( fixes #3965 )
...
The folder already knew how to stop properly, but the fs.Walk() didn't
and can potentially take a very long time. This adds context support to
Walk and the underlying scanning stuff, and passes in an appropriate
context from above. The stop channel in model.folder is replaced with a
context for this purpose.
To test I added an infiniteFS that represents a large amount of data
(not actually infinite, but close) and verify that walking it is
properly stopped. For that to be implemented smoothly I moved out the
Walk function to it's own type, as typically the implementer of a new
filesystem type might not need or want to reimplement Walk.
It's somewhat tricky to test that this actually works properly on the
actual sendReceiveFolder and so on, as those are started from inside the
model and the filesystem isn't easily pluggable etc. Instead I've tested
that part manually by adding a huge folder and verifying that pause,
resume and reconfig do the right things by looking at debug output.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4117
2017-04-26 00:15:23 +00:00
Simon Frei
914b09fd1f
lib/model: Create root directory for paused folders ( fixes #4094 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4095
2017-04-23 23:50:56 +00:00
Jakob Borg
10894695c6
cmd/syncthing: Use a 10 second EWMA for CPU usage, refactor a little
...
We have it lying around so might as well use it instead of inventing our
own thing.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4111
2017-04-20 08:33:09 +00:00
Jakob Borg
d48e46a29c
cmd/syncthing: Allow custom event subscriptions ( fixes #1879 )
...
This adds a parameter "events" to the /rest/events endpoint. It should
be a comma separated list of the events the consumer is interested in.
When not given it defaults to the current set of events, so it's
backwards compatible.
The API service then manages subscriptions, creating them as required
for each requested event mask. Old subscriptions are not "garbage
collected" - it's assumed that in normal usage the set of event
subscriptions will be small enough. Possibly lower than before, as we
will not set up the disk event subscription unless it's actually used.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4092
2017-04-13 17:14:34 +00:00
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
Jakob Borg
c205fdd77e
cmd/syncthing: Handle pre-releases with zero auto upgrade interval ( fixes #4090 )
2017-04-10 15:56:52 +02:00
Simon Frei
25b314f5f1
lib/model, gui: Allow creating and editing ignores of paused folders ( fixes #3608 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3996
LGTM: calmh, AudriusButkevicius
2017-04-01 09:58:06 +00:00
Jakob Borg
a54365424e
cmd/syncthing: Append build tags used to the long version string
...
$ go run build.go -race -no-upgrade
$ syncthing -version
syncthing v0.14.25-rc.2 "Dysprosium Dragonfly" (go1.8 darwin-amd64)
jb@unu.kastelo.net 2017-03-16 23:06:21 UTC [noupgrade, race]
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4043
2017-03-16 23:40:27 +00:00
Simon Frei
601a4fac1a
cmd/syncthing: Accept absolute -home paths (regression from #3183 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4033
2017-03-09 14:57:12 +00:00
Simon Frei
1c29a93013
lib/events, cmd/syncthing: Correct GlobalID in debug and mark "since" parameter optional
...
Skip-check: metalint
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4025
2017-03-07 05:44:47 +00:00
Simon Frei
416811a2a9
cmd/syncthing, lib/config: Pause/resume all devices whithout argument
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3989
LGTM: AudriusButkevicius, calmh
2017-03-04 07:54:13 +00:00
Simon Frei
c20d612736
cmd/syncthing, lib/model: Handle rel/abs paths for config/protected paths ( fixes #3183 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3995
2017-03-04 07:49:48 +00:00
HairyFotr
c56c48a777
all: Correct various typos
...
Skip-check: authors
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4005
2017-02-25 08:12:13 +00:00
Jakob Borg
161326c548
all: Weed out a few other http urls (ref #3976 )
2017-02-09 08:04:16 +01:00
Jakob Borg
f7fc0c1d3e
all: Update license url to https (ref #3976 )
2017-02-09 08:04:16 +01:00
Jakob Borg
2b1c942d56
cmd/syncthing: Environment handling for upgrade restarts ( fixes #3970 )
2017-02-07 21:36:58 +01:00