nx_galx_vidindex_nas.nx
buildroot/runtime/nx_galx_vidindex_nas.nx
about
nx_galx_vidindex_nas.nx -- NAS-NATIVE recordings reindex (operator 2026-06-23: "investigate and resolve").
ROOT CAUSE FOUND: the gallery's video catalog pointed at /volume1/logging/#recycle/<model>/*.ts (the
Synology TRASH) while the LIVE recordings are at /volume1/logging/<model>/*.ts -> serve 404s on every
video. This runs ON THE NAS (via nx_nas_run): scans /volume1/logging natively (sys_getdents64), SKIPS
#recycle + @eaDir + .trickplay, writes the fresh catalog to a .new STAGING file (reversible; promote
after verify). NAS-native /volume1/... paths = exactly what the serve opens. No sh. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 9 | const VI_MAGIC_2048: i64 = 2048 |
| 11 | const GBUF: i64 = 65536 |
| 12 | const VI_SCAN: *u8 = "/volume1/logging" |
| 13 | const VI_SCAN2: *u8 = "/volume1/logs" // 2026-07-11: the SECOND recordings tree (29.3 TB / ~14k .ts) was never indexed |
| 14 | const VI_OUT: *u8 = "/volume1/ai/galx/knowledge/status/galx_vid_paths.tsv.new" // STAGING; promote after verify |
functions
| 16 | func vi_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 21 | func vi_n(v: i64) -> i64 { nxi_out(v); return 0 } |
| 22 | func vi_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 23 | func vi_is_vid(name: *u8) -> i64 |
| 33 | func vi_is_trick(name: *u8) -> i64 |
| 41 | func vi_walk(dir: *u8, depth: i64, outfd: i64, cntp: *i64) -> i64 called by 2: vi_walkmain calls 12: sys_openat_rdsys_mmapvi_lensys_getdents64dirent_reclendirent_type+6 |
| 82 | func main(argc: i64, argv: *i64) -> i64 |