Media folder fix: B-1 (classes, export, remove), B-2/B-3 bench evidence, Part A (who runs the apps); 09 §3 decisions 242-243 (D9 = A with a limit; the N100 waits); 15 §2 ruled
gates / gates (push) Successful in 6m46s

This commit is contained in:
admin committed 2026-10-14 21:38:42 +02:00
1 parent 4ce351ab7b
commit adc9dee0e3
8 files changed
+234 -10

No files matched your search

+17 -10
View File
@@ -5,7 +5,7 @@
> learn. **No document covered this before 2026-10-14** — itself a finding: the four templates were written one by one
> and never tested together (R-1014). Rulings: `09` §3 decisions 237–241. Measured on Tester 1:
> `audits/media-all-drives-2026-10-14/`. Marks as in `01`: **[DESIGN]** a decision or proposal; **[FACT]** read in a
> named file or measured. **Status: DRAFT** — measured end to end on Tester 1; the operator's layout decision (§2, STATUS D9) is open.
> named file or measured. **Status: DRAFT** — measured end to end on Tester 1; the layout of §2 is RULED (decision 242) and live for one drive.
## 1. The problem
@@ -41,16 +41,23 @@ The four reasons:
**[FACT, and a correction of the brief]** `media/` is not photo-free: the skeleton puts `photos`, `books`,
`audiobooks`, `music`, `comics`, `podcasts` there too (`appbackup/userdata.go` + the catalog-derived set), and Immich,
calibre-web, audiobookshelf and navidrome use them. With reason 1, a download app needs ONE mount that holds both its
download folder and the libraries — so binding `media/tv` and `media/torrents` separately brings EXDEV back. **Open
question for the operator (two options):**
download folder and the libraries — so binding `media/tv` and `media/torrents` separately brings EXDEV back.
- **A — bind `media/` whole, rw for the download apps.** Simple; measured working. Cost: qBittorrent, Transmission,
Sonarr and Radarr can write into the family's photos and music folders.
- **B — move the video library into its own folder** (e.g. `userdata/video/{tv,movies,torrents,transmission}`) and bind
only that. Download apps never see photos. Cost: a one-time move on boxes that already have files there, and every
template and skeleton entry changes.
- **CC recommends B** for the build: the download apps are the internet-facing ones, and „the box cannot touch your
photos" is a promise worth one move. A is fine for the Tester 1 rig.
**RULED 2026-10-14 (`09` §3 decision 242, D9 = A with a limit) — this table replaces every earlier shape:**
| App | Bind (rw unless noted), the SAME path inside the container as on the box | Sees |
|---|---|---|
| Sonarr, Radarr | `${USERDATA_PATH}/media` | the whole `media` folder — it must: download and library on ONE mount (S1) |
| qBittorrent | `${USERDATA_PATH}/media/torrents` (+ the same folder as `/downloads`, for torrents added before 2026-10-14) | only its download folder |
| Transmission | `${USERDATA_PATH}/media/transmission` (+ `/downloads` likewise; `/watch` = `media/transmission/watch`) | only its download folder |
| Plex, Jellyfin, Emby | unchanged: `${USERDATA_PATH}/media:/media:ro` | they move with the all-drives build |
The hardlink is made by Sonarr/Radarr in their own container, where both folders are one mount; the client reports
`…/media/torrents/<name>` and Sonarr finds exactly that path. The download clients cannot reach `media/photos` (B-3,
measured: the path does not exist in their containers). Sonarr/Radarr's bind is declared `excluded` in their backup
block — unlisted it would be MANDATORY, every tier, off-site included (B-1, measured with the production classifier).
Built in the live catalog 2026-10-14 (`audits/media-folder-fix-2026-10-14/`); the all-drives build adds one such bind
per drive at the same paths, so nothing installed now is redone.
## 3. Which apps are „media apps" [DESIGN, proposal]