diff --git a/nwnss-audit.md b/nwnss-audit.md index 846df33..8b9a8d4 100644 --- a/nwnss-audit.md +++ b/nwnss-audit.md @@ -34,9 +34,9 @@ Status legend: Current inventory summary: -- `AUDITED`: 421 files +- `AUDITED`: 423 files - `PARTIAL`: 18 files -- `TODO`: 82 files +- `TODO`: 80 files - `TEMP`: 4 files - Total listed files: 525 @@ -513,8 +513,8 @@ even if it already compiles or has indirect test coverage. | AUDITED | ORIG+FIX/PORT | link smoke | `src/nwnss/comn/common/csaLease.c` | Compared with original `public_core/comn/common/csaLease.c`; CSA lease-list logic is kept. Userspace differences drop `linux/module.h`, normalize local includes to imported headers, add `stdint.h`, and cast `msg->sys.data[0].start` through `uintptr_t` before treating the QUAD transport field as an `XLSSBeastLeaseList_s *`. | | AUDITED | ORIG+FIX | link smoke, future dirquota behavior tests | `src/nwnss/comn/common/dirQuotas.c` | Compared with original `public_core/comn/common/dirQuotas.c`; directory-quota accounting and scheduling logic are kept. Userspace differences drop `linux/module.h` and cast `WORK_Schedule` callbacks/arguments for modern function-pointer prototypes; remaining changes are whitespace cleanup. | | AUDITED | ORIG+FIX | link smoke, future EFL tests | `src/nwnss/comn/common/eflMgmt.c` | Compared with original `public_core/comn/common/eflMgmt.c`; encrypted-file-list management logic is unchanged in the current import. No userspace-specific code or behavior shortcut was found. | -| TODO | ORIG+FIX? | not yet classified | `src/nwnss/comn/common/fileHandle.c` | Must be compared against original source and classified. | -| TODO | ORIG+FIX? | not yet classified | `src/nwnss/comn/common/fsmsg.c` | Must be compared against original source and classified. | +| AUDITED | ORIG+FIX/PORT | link smoke, future file-handle tests | `src/nwnss/comn/common/fileHandle.c` | Compared with original `public_core/comn/common/fileHandle.c`; file-handle creation, rights/conflict accounting, close/delete/truncate cleanup, migrated/virtual/internal-EA handle paths and per-connection/task cleanup flow are kept. Userspace differences are the `Msg_s.sys.where` QUAD status bridge, `stdint.h` visibility, typed `MSG_DestroySetOfKeys` match callback casts and whitespace/indentation cleanup. The imported code still routes storage, compression, LSA, CSA and Beast effects through the real COMN backends/boundaries rather than replacing file-handle semantics with a shortcut. | +| AUDITED | ORIG+FIX/PORT | link smoke, future fsmsg tests | `src/nwnss/comn/common/fsmsg.c` | Compared with original `public_core/comn/common/fsmsg.c`; NSS message method tables, file-handle dispatch, migrated/virtual demigrate routing, trustee/effective-rights/zid entry points and status propagation flow are kept. Userspace/modern-compiler differences remove the kernel-only `linux/kernel.h`, add `stdint.h`, route pointer payloads and `Msg_s.sys.where` through `uintptr_t`/QUAD carriers, replace old K&R externs with typed prototypes where imported headers now expose real signatures, and cast legacy method-table callbacks via `statusfunc_t`. No fsmsg operation is stubbed or short-circuited here. | | AUDITED | ORIG+FIX | link smoke, future hardlink tests | `src/nwnss/comn/common/hardLinkBeast.c` | Compared with original `public_core/comn/common/hardLinkBeast.c`; hard-link beast handling is unchanged in the current import. No userspace-specific code or fake hardlink path was found. | | PARTIAL | ORIG+FIX / KERNEL-BOUNDARY | compile-smoke only | `src/nwnss/comn/common/hmc.c` | Compared against `public_core/comn/common/hmc.c`; main file body is original high-memory metadata cache code. Mars adds a `MARS_NWE_NWNSS_USERSPACE` shim for Linux slab/page/highmem/inode APIs and keeps host libc allocation prototypes local to that shim. Needs later full HMC behavior tests before AUDITED. | | PARTIAL | ORIG wrapper | link smoke | `src/nwnss/comn/common/mgmt.c` | Wrapper compiles mgmt.c.h; full original diff open. |