jinet wrote:
I don’t think I understand the connection between the process that you killed or fixed and spotlight functions. Is there one?
Probably not. I was really just going off on a rant about poor software quality. I had lost 466 GB of free storage in a few hours yesterday. That's how I noticed this problem.
However, when I was digging through console output, I did notice that dasd was doing a lot of work with Spotlight. That's not surprising. Spotlight is very deeply embedded in the operating system. It's all connected.
But I'm back at my Sequoia computer today. So I took another look at this folder. After poking around a bit, I think I've found the solution. The files I have in this folder are very old, circa 2007. And I think that was just the last time I copied them. They're older than that.
I checked the one file I can't find and I saw that it had Finder Info attached:
$ ls -al@ Desktop\ Danger.jpg
-rw-r--r--@ 1 jdaniel staff 520802 Nov 1 2007 Desktop Danger.jpg
com.apple.FinderInfo 32
When I inspected, it looked like corrupt data:
$ xattr -p com.apple.FinderInfo Desktop\ Danger.jpg
????????
$ xattr -px com.apple.FinderInfo Desktop\ Danger.jpg
3F 3F 3F 3F 3F 3F 3F 3F 01 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Since the metadata is obviously bogus, no harm in deleting it...
$ xattr -d com.apple.FinderInfo Desktop\ Danger.jpg
I tried it again on a similar file that also wasn't findable. In this case, I had an active Finder Spotlight search window up with no results listed for the file name. As soon as I removed the Finder info from the file, it showed up in the window.
So I guess the problem is solved. Now I just need to find all the files on the system with corrupt Finder info. Peachy.