Spotlight: Fix timestamps and add additional attributes#2878
Spotlight: Fix timestamps and add additional attributes#2878rdmark merged 1 commit intoNetatalk:mainfrom
Conversation
🤖 Augment PR SummarySummary: Pulls in an upstream Samba fix for Spotlight metadata encoding to address incorrect timestamps (Fixes: #2258). Changes:
🤖 Was this summary useful? React with 👍 or 👎 |
c944de1 to
f95a1f1
Compare
Upstream patch from Samba. Fixes: Netatalk#2258 Update atime when client accesses file too.
f95a1f1 to
01eb9e4
Compare
|
great patch, I'm pleased to see the spotlight code getting some long-overdue love I was thinking about attribution since this is ported from Samba; seems like portions were authored by Ralph in samba-team/samba@5d4ecea and samba-team/samba@5d4ecea the |
|
Some (all?) platforms have a macro called |
|
heads-up that this patch caused a breakage: when spotlight is active it's not possible to edit a file in-place on an AFP volume, e.g. with TextEdit on macOS TextEdit warns that "another application has modified the file" and prevents you from saving, probably due to the timestamp changing in a way that it doesn't expect |
|
Steps to reproduce? TextEdit (at least in Catalina) is not producing the same issue on my end with Spotlight enabled. I would be curious to see if this can be reproduced on a Samba share with Spotlight enabled as it uses the same method of updating the "Last Opened" time on the server side. I am opening a text file, making changes, then saving in place. I do get a note from TextEdit the first time I save that the file system doesn't support storing revisions, but other then that it works fine. |
|
Give #2896 a try. I noticed a regression where |
Upstream patch from Samba. Fixes: #2258