Commit 0070b5f
libstore: skip Spotlight processes when finding GC roots
Despite installations of Nix explicitly setting the `nobrowse` mount
option on the store, `mdworker` processes continue to run on newly
created files within it, which can result in spurious GC/path deletion
failures if the stars are aligned right.
IMO, the best way to fix this is to simply ignore any processes started
by the Spotlight user, so that's exactly what we do here (while emitting
a debug message, to at least give some visibility into what we're doing,
given the rest of the GC system is sometimes annoyingly opaque).
Fixes: #6141
Change-Id: I6a6a636c70f3f443f07ba9280d5f1e04b2ed29851 parent f683a55 commit 0070b5f
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
417 | 422 | | |
418 | | - | |
| 423 | + | |
419 | 424 | | |
420 | 425 | | |
421 | 426 | | |
| |||
0 commit comments