code wiki / (root) / nx_ingest_admit_gate.nx

nx_ingest_admit_gate.nx

buildroot/runtime/nx_ingest_admit_gate.nx

4270 B75 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic ingest
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_ingest_admit.nx nx_gate_verdict.nx nx_ingest_admit_gate.nx

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

main gv_head gv_puts sys_write gv_ctr sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ig_decide gv_check gv_puts ↻ ig_verdict_str g_streq sys_mmap ↻ ig_disk_floor sys_fs_avail_bytes sys_mmap ↻ sys_statfs ig_floor_bytes sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ig_atoi

structs

none

consts

9const G_FLOOR: i64 = 5368709120 // 5 GiB fixture floor (= IG_DEFAULT_FLOOR_BYTES; the policy is what is under test, not the number)
10const G_ABOVE: i64 = 6000000000 // just over the floor -> ADMIT
11const G_BELOW: i64 = 1000000000 // 1 GB, under the floor -> REFUSE_FULL
12const G_AT: i64 = 5368709120 // exactly at the floor -> ADMIT (the boundary is inclusive: >= floor admits)
13const G_STATFS_ERR: i64 = 0 - 1 // what sys_fs_avail_bytes returns when statfs fails
14const G_VAULT_ROOT: *u8 = "/volume1/homes/elderwesto/vaultfs"

functions

17func g_streq(a: *u8, b: *u8) -> i64
called by 1: main
27func main() -> i64