Skip to content

tiering: follow moved links, mark deleted ones, clean refused imports, keep allowlist entry - #157

Open
frindle wants to merge 1 commit into
mainfrom
worktree-agent-a4d46a2397db52612
Open

frindle wants to merge 1 commit into
mainfrom
worktree-agent-a4d46a2397db52612

Conversation

@frindle

@frindle frindle commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Four hygiene gaps in tiering/offload, each fixed narrowly.

  1. Moved link. When an offloaded row's link is gone from lib_path, the arr is asked where it has the item (by imdb/tvdb identity, never a name guess). If its file there is the tierfs symlink of this id, lib_path follows (event l_moved). At most 10 lookups per pass, each row hourly. Note: register already adopts renames nightly; this makes it prompt and arr-path based.
  2. Deleted item. A row with no link for TIERING_L_GONE_DAYS (default 7; 0 disables) while the arr reports no file and nothing queued or importing moves to failed with a fixed reason (event l_gone, one alert). Stub and remote data are kept. 25 or more due at once act on none (looks like an unmounted disk). No arr configured: unchanged (l_missing alert).
  3. Refused substitute imports. A dry run imports nothing. Each import is recorded by job id; a refused candidate is removed through AltMount's own history delete, only for recorded ids and never when a row uses the path.
  4. Allowlist. A substitute with another extension, or an arr rename adoption, records old path to new path; the allowlist check also accepts the followed path. The allowlist itself is not widened or written.

Tests: no new tests. Existing suites are the gate. Real-world check is a read-only job on the server.

…port, keep the allowlist entry with a substituted row

- an offloaded row whose link is gone from lib_path is looked up in the arr by identity; when the arr's file is this id's tierfs link at another path, lib_path follows (event l_moved)
- a row with no link for TIERING_L_GONE_DAYS (default 7) while the arr has no file and nothing queued moves to failed with a fixed reason (event l_gone, one alert); stub and remote data are kept; many at once act on none
- a dry run imports no substitute candidate; imports are recorded by job id and a refused one is removed through the AltMount API, never by name
- a TIERING_ONLY_PATHS entry follows the row to its new path after a substitute or a rename adoption (the list itself is not widened or written)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant