From 8cd0cad6fbbaf5487c4866b5d5402e44517ec6dc Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sat, 30 May 2026 06:58:45 +0000 Subject: [PATCH] tests: document AFP get-entry-id-from-name smoke coverage Document the Linux smoke coverage for NCP 0x23/0x04 AFP Get Entry ID From Name after the path-backed implementation was verified. The same afp_entry_id_smoke tool now exercises both the older path-name probe and the name-based entry-id lookup. Record the --from-name examples for SYS:, SYS:PUBLIC, SYS:SYSTEM, and SYS:BURST, and note that the current implementation still returns stat-derived fallback Entry IDs until persistent CNID/AppleDouble mapping is available. Update TODO.md so the implemented AFP status matches the tested endpoints while keeping the remaining base-entry-id-relative lookup and persistent Mac namespace work tracked as follow-up. --- TODO.md | 4 ++++ tests/linux/README.md | 29 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/TODO.md b/TODO.md index c2f13da..23a2b9e 100644 --- a/TODO.md +++ b/TODO.md @@ -196,6 +196,10 @@ Current status: `tests/linux/afp_entry_id_smoke` and has been verified against `SYS:`, `SYS:PUBLIC`, `SYS:SYSTEM`, and `SYS:BURST` with stat-derived fallback entry IDs. +- `AFP Get Entry ID From Name` is implemented for the same path-backed + smoke mode. Linux smoke coverage uses `tests/linux/afp_entry_id_smoke --from-name` + and has been verified against `SYS:`, `SYS:PUBLIC`, + `SYS:SYSTEM`, and `SYS:BURST` with stat-derived fallback entry IDs. - `AFP Get File Information` is implemented for read-only path-based requests. Linux smoke coverage exists in `tests/linux/afp_file_info_smoke` and has been verified against `SYS:`, `SYS:PUBLIC`, `SYS:SYSTEM`, and `SYS:BURST`. diff --git a/tests/linux/README.md b/tests/linux/README.md index f8c1d72..82e977f 100644 --- a/tests/linux/README.md +++ b/tests/linux/README.md @@ -65,6 +65,35 @@ negative smoke test, use: For path-resolution negative tests, use `--allow-invalid-path` to accept the expected `0x9c` Invalid Path completion. + +### AFP Get Entry ID From Name + +`afp_entry_id_smoke` can also exercise the WebSDK-documented NetWare AFP +request: + +```text +NCP 0x2222/35/04 AFP Get Entry ID From Name +``` + +Use `--from-name` to select this subfunction. The current mars_nwe +implementation supports the same verified path-backed smoke mode as +`AFP Get Entry ID From Path Name`: pass a raw `SYS:`-style path with directory +handle 0 and base Entry ID 0. + +Useful smoke cases for a standard MARS-NWE `SYS` volume are: + +```sh +./tests/linux/afp_entry_id_smoke --from-name -S MARS -U SUPERVISOR -P secret SYS: +./tests/linux/afp_entry_id_smoke --from-name -S MARS -U SUPERVISOR -P secret SYS:PUBLIC +./tests/linux/afp_entry_id_smoke --from-name -S MARS -U SUPERVISOR -P secret SYS:SYSTEM +./tests/linux/afp_entry_id_smoke --from-name -S MARS -U SUPERVISOR -P secret SYS:BURST +``` + +A successful reply prints the same 32-bit AFP Entry ID format as the path-name +probe. Server-side diagnostics currently mark stat-derived temporary IDs with +`fallback`; real base-entry-id-relative lookup still depends on persistent +CNID/AppleDouble mapping. + ## AFP File Information smoke test `afp_file_info_smoke` sends the WebSDK-documented NetWare AFP file