I have the version v1.21.0-rc.1 in use and it works so far on all my devices. On a Windows computer I have noticed that scanning is slow, on one folder the scan was not completed. I went back to the v1.20.4, then everything was fine again.
Possibly… I was thinking to do that at first, but thought that reading and writing the information are separate steps. That is, one might want to send owner information without having to apply owner information from others. Perhaps it needs to be a separate toggle, then (sendOwnership and syncOwnership, where the latter implies the former but not the other way around…).
That makes scanning faster for me, but it’s not an enormous difference on my systems. Probably it depends on how slow the user lookup is, perhaps this is different in a Windows setup with an actual domain etc. There’s also additional constant overhead in opening the file and reading the security descriptor which isn’t cacheable. (But would be turn-offable if we added a switch for it…)
I’d prefer that behaviour by default: I don’t think a niche feature like this should have an impact on all other users. We already have enough users complaining that a simple scan takes a long time, adding a user/group lookup will make that even more common.
So what actually happens is that the scanner a) gets the owner info for the file, which is numeric or a SID, and b) looks up that ID to an account name. Getting the ownership on Unix is free, we get UID and GID in the stat info we already have – looking up the user is not free and I can see it might be expensive if it’s over LDAP or something. Caching will help. Getting the ownership on Windows isn’t free, because it requires opening the file and reading the security descriptor, so roughly in the magnitude of one more stat I think. Then there is the corresponding lookup there, which also might be expensive (but can be cached).
With my other devices, such as Synologys and my own Windows computers, I have not observed any abnormalities so far, but I am sensitized now. The computer I mentioned above is integrated into a company domain with a correspondingly more complex rights structure, so maybe there is a connection when I read the last posts.