nx_ingest_admit_gate.nx
buildroot/runtime/nx_ingest_admit_gate.nx
about
nx_ingest_admit_gate.nx -- GATE for nx_ingest_admit (/compare/mediaingest R2, ig_disk_floor). No filesystem is
touched: the decision is PURE (ig_decide), so every one of the three states is proven with planted numbers, and
the conf/statfs I/O wrapper is exercised once against the real vault root only to confirm it returns a valid
verdict and fills both out numbers. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_ingest_admit.nxnx_gate_verdict.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 G_FLOOR: i64 = 5368709120 // 5 GiB fixture floor (= IG_DEFAULT_FLOOR_BYTES; the policy is what is under test, not the number) |
| 10 | const G_ABOVE: i64 = 6000000000 // just over the floor -> ADMIT |
| 11 | const G_BELOW: i64 = 1000000000 // 1 GB, under the floor -> REFUSE_FULL |
| 12 | const G_AT: i64 = 5368709120 // exactly at the floor -> ADMIT (the boundary is inclusive: >= floor admits) |
| 13 | const G_STATFS_ERR: i64 = 0 - 1 // what sys_fs_avail_bytes returns when statfs fails |
| 14 | const G_VAULT_ROOT: *u8 = "/volume1/homes/elderwesto/vaultfs" |
functions
| 17 | func g_streq(a: *u8, b: *u8) -> i64 called by 1: main |
| 27 | func main() -> i64 |