Files
mars-nwe/tests
Mario Fetka 3f3753e2b5
All checks were successful
Source release / source-package (push) Successful in 50s
tests: record AFP scan file information smoke results
Record the verified Linux smoke-test output for NCP 0x2222/35 subfunctions 0x11 and 0x0a, AFP Scan File Information and AFP 2.0 Scan File Information.

The WebSDK/header-level request layout for both scan calls carries the Mac base directory id, last-seen entry id, desired response count, search bitmap, request bitmap, and path modifier.  The current mars_nwe implementation intentionally routes both variants through the same conservative path-backed directory scan and returns a single AFP file-information record per request.  Documenting the matching 0x11 and 0x0a first-record output makes that compatibility choice explicit.

The recorded continuation case also documents the current last_seen pagination contract: callers feed the returned next_last_seen AFP Entry ID back into the next request to advance through SYS:PUBLIC.  The sample entries remain stat-derived fallback Entry IDs with parent_id kept at zero until persistent CNID/AppleDouble/libatalk-backed directory identity is available.

Tests:

- ./afp_scan_info_smoke -S MARS -U SUPERVISOR -P ... SYS:PUBLIC

- ./afp_scan_info_smoke --afp10 -S MARS -U SUPERVISOR -P ... SYS:PUBLIC

- ./afp_scan_info_smoke -S MARS -U SUPERVISOR -P ... --last-seen 0x23c8787d SYS:PUBLIC

TODO:

- Add multi-response scan replies once the record packing and client-side parsing are widened beyond the current one-record smoke path.

- Replace stat-derived fallback Entry IDs with persistent CNID/AppleDouble/libatalk-backed IDs.
2026-05-30 10:46:50 +02:00
..