syncthing/lib/model
Jakob Borg 46a143e80e lib/model: Handle deleted-then-ignored files (fixes #3502)
When files that were previously marked as deleted became ignored, we
used to do nothing at all. This changes that behavior to set the Invalid
bit (that we should rename to Ignored). This then becomes an update to
other devices that they should not trust our knowledge about the file in
question.

Read this diff without whitespace...

Tested by
- creating a bunch of files on s1
- letting them sync to s2
- shutting down s2
- deleting the files on s1 and rescanning
- adding the files to .stignore on s1 and rescanning
- starting up s2 and letting it sync
- observing the files are not deleted on s2, and it considers itself up
  to date.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3557
2016-09-02 13:23:24 +00:00
..
testdata mv internal lib 2015-08-09 09:35:26 +02:00
.gitignore mv internal lib 2015-08-09 09:35:26 +02:00
debug.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
deviceactivity.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
deviceactivity_test.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
devicedownloadstate.go lib/model: Don't deadlock when returning temp index block counts 2016-05-26 09:16:08 +00:00
devicedownloadstate_test.go lib/model: Test should pass go vet inspections 2016-04-15 11:41:18 +00:00
doc.go mv internal lib 2015-08-09 09:35:26 +02:00
folder.go lib/model: Refactor encapsulation of the folder scanning 2016-06-29 06:37:34 +00:00
folderscanner.go lib/model: Refactor encapsulation of the folder scanning 2016-06-29 06:37:34 +00:00
folderstate.go lib/model: Refactor encapsulation of the folder scanning 2016-06-29 06:37:34 +00:00
model.go lib/model: Handle deleted-then-ignored files (fixes #3502) 2016-09-02 13:23:24 +00:00
model_test.go lib/model, cmd/syncthing: Also account for deleted files in folder summary events (ref #3496) 2016-09-02 10:45:39 +02:00
progressemitter.go lib/model: Add minumum interval for progress emitter (fixes #3517) 2016-08-16 18:22:01 +00:00
progressemitter_test.go lib/model: Add minumum interval for progress emitter (fixes #3517) 2016-08-16 18:22:01 +00:00
queue.go lib/protocol, lib/model: Implement high precision time stamps (fixes #3305) 2016-08-06 13:05:59 +00:00
queue_test.go build, cmd, lib: Minimum supported compiler version is Go 1.5 2016-08-15 08:37:32 +02:00
rofolder.go lib/db, lib/fs, lib/model: Introduce fs.MtimeFS, remove VirtualMtimeRepo 2016-08-05 17:45:45 +00:00
rwfolder.go lib/model: Correct virtual mtime handling (fixes #3516) 2016-08-16 18:22:19 +00:00
rwfolder_test.go lib/protocol, lib/model: Implement high precision time stamps (fixes #3305) 2016-08-06 13:05:59 +00:00
sentdownloadstate.go lib/model: Track puller creation times (fixes #3145) 2016-05-22 10:16:09 +00:00
sharedpullerstate.go lib/model: Stricter temporary file permissions 2016-07-25 10:18:05 +00:00
sharedpullerstate_test.go cmd, lib: Fix ineffectual assignments (ineffasign) and comment spelling 2016-07-15 14:23:20 +00:00
sorter.go lib: Remove osutil.Remove & osutil.RemoveAll (fixes #3513) 2016-08-16 10:01:58 +00:00
sorter_test.go lib/protocol, lib/model: Implement high precision time stamps (fixes #3305) 2016-08-06 13:05:59 +00:00
tempname.go lib/model: Decrease max temp filename length (fixes #3338, fixes #3355) 2016-06-27 11:47:40 +00:00
tempname_test.go mv internal lib 2015-08-09 09:35:26 +02:00
util.go mv internal lib 2015-08-09 09:35:26 +02:00