You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deduplicated files on Windows aren't treated as regular files any more (Go 1.21) #9120
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
I do have multiple servers where Deduplication is enabled (NTFS). And since 1.24.0 files can't be pulled from those servers. In GUI and CLI the meassage "syncing: finishing: pull: no such file" is shown.
It does work when i do starting V 1.23.7 on the server. (before it was finished syncing i switched back to 1.24.0 and it stopped working again)
It also does work when undedup the volume and using V1.24.0
Interesting. I think the main difference between the two is that we build 1.24.0 with Go 1.21 and the older one with Go 1.20. Full logs from the failure with STTRACE=model,fs might be enlightening.
Given the error is nil, it apparently thinks this is not a regular file. You did not change anything regarding ntfs/deduplication in parallel with this upgrade, right?
I don't see anything directly related in go1.21 changelogs, but there seems to have been changes in os / io/fs, so maybe it's a regression.
Can you check that file for any special attributes/types/whatever one can see if one inspects it with standard windows tools please.
(We should add the LStat result to the /rest/debug/file endpoint, would be handy for these cases.)
No Special attributes but as far as I see for now, if the file is pulled before it is duplicated it is just working as expected.
I will try to set up a testing server later. Then I will be able to provide you the full log. (I truncated the file as ~1500 files were missing)
I mean if you can confirm that it works before dedupe, and not after, and that it worked with the previous version and not anymore now, then I think the case is pretty clear already together with the logs you already provided - thanks for that.
Also if you have the posibility to try yourself. the script below creates a virtual disk, formats it, enables dedup, creates Testdata in 2 folders, one will be deduped one not. Windows Server needed (>= 2016) and the dedup feature added
changed the title [-]files will not poll on deduped volumes with V1.24.0[/-][+]Deduplicated files on Windows aren't treated as regular files any more (Go 1.21)[/+]on Oct 6, 2023
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Sep 21, 2023
Interesting. I think the main difference between the two is that we build 1.24.0 with Go 1.21 and the older one with Go 1.20. Full logs from the failure with STTRACE=model,fs might be enlightening.
zechnkaas commentedon Sep 21, 2023
is this sufficient?
imsodin commentedon Sep 21, 2023
Check before that log in model:
Given the error is nil, it apparently thinks this is not a regular file. You did not change anything regarding ntfs/deduplication in parallel with this upgrade, right?
I don't see anything directly related in go1.21 changelogs, but there seems to have been changes in
os/io/fs, so maybe it's a regression.Can you check that file for any special attributes/types/whatever one can see if one inspects it with standard windows tools please.
(We should add the
LStatresult to the/rest/debug/fileendpoint, would be handy for these cases.)imsodin commentedon Sep 21, 2023
This commit might well be related, as it deals with reparse points and so does ntfs deduplication:
golang/go@3e44b7d
https://learn.microsoft.com/en-us/windows-server/storage/data-deduplication/understand
The commit message talks about symlinks and them being rare, seems like they weren't aware of the connection to ntfs deduplication (not that surprising). Posted to golang-nuts: https://groups.google.com/g/golang-nuts/c/YtBDdIgxazY
zechnkaas commentedon Sep 21, 2023
No Special attributes but as far as I see for now, if the file is pulled before it is duplicated it is just working as expected.
I will try to set up a testing server later. Then I will be able to provide you the full log. (I truncated the file as ~1500 files were missing)
imsodin commentedon Sep 21, 2023
I mean if you can confirm that it works before dedupe, and not after, and that it worked with the previous version and not anymore now, then I think the case is pretty clear already together with the logs you already provided - thanks for that.
zechnkaas commentedon Sep 21, 2023
Okay i have to correct myself, indexer seems also to have no access to deduped files
Here the full log wiith a non deduped folder and a deduped folder:
Also if you have the posibility to try yourself. the script below creates a virtual disk, formats it, enables dedup, creates Testdata in 2 folders, one will be deduped one not. Windows Server needed (>= 2016) and the dedup feature added
[-]files will not poll on deduped volumes with V1.24.0[/-][+]Deduplicated files on Windows aren't treated as regular files any more (Go 1.21)[/+]lib/fs: properly handle deduplicated files (fixes syncthing#9120)
Merge branch 'main' into infrastructure
Squashed commit of the following (actually merge upstream/main):
zechnkaas commentedon Oct 21, 2023
Thank you, seems eveything is working as expected rc1!
lib/fs: Properly handle Windows deduplicated files (fixes syncthing#9120