Files
mars-nwe/src
ChatGPT ca610c1100
All checks were successful
Source release / source-package (push) Successful in 48s
nwatalk: probe mars_nwe AFP entry ids from xattrs
Add the first mars_nwe-owned AFP metadata xattr reader before expanding the AFP write surface.  The new versioned org.mars-nwe.afp.entry-id payload gives the compatibility layer a stable, project-owned namespace for persistent AFP entry ids without reusing the unreleased user.mars_nwe.* test names or pretending that Netatalk-owned org.netatalk.* keys are ours to mutate.

The lookup order remains conservative: an existing mars_nwe entry-id xattr wins, then the optional Netatalk/libatalk AppleDouble/CNID helper is consulted, and the AFP handlers continue to fall back to their stat-derived temporary id when no persistent metadata exists.  No Set File Information, CNID allocation, Finder Info write, or resource-fork write path is introduced here.

This keeps the WebSDK/NWAFP read-only endpoint semantics intact while preparing the metadata storage boundary needed by later AFP Set File Information and CNID work.  ENABLE_NETATALK_LIBATALK=OFF still rejects AFP calls at the handler guard, and the xattr reader has an XATTR_SUPPORT-disabled stub so non-xattr builds keep compiling.

Tests:

- git diff --check

- cmake --build build-xattr-off --target nwconn

- cmake -S . -B build-afp-on -DENABLE_NETATALK_LIBATALK=ON -DCMAKE_PREFIX_PATH=/mnt/data/afp_build_prefix

- cmake --build build-afp-on --target nwconn

TODO:

- Add a deliberate write-safe AFP metadata writer/allocator before enabling AFP 2.0 Set File Information.

- Decide whether future mars_nwe AFP metadata stays split across org.mars-nwe.afp.* keys or moves into a compact org.mars-nwe.afp.metadata record.
2026-05-30 11:11:15 +02:00
..
2011-11-13 17:37:22 +01:00
2011-11-13 17:37:22 +01:00
2011-11-13 17:37:22 +01:00
2011-11-13 17:37:22 +01:00
2026-05-29 21:51:57 +02:00
2011-11-13 17:37:22 +01:00
2011-11-14 19:58:21 +01:00
2011-11-13 17:37:22 +01:00
2011-11-13 17:37:22 +01:00
2011-11-13 17:37:22 +01:00
2026-05-29 21:51:57 +02:00
2011-11-13 17:37:22 +01:00