40 lines
2.3 KiB
Markdown
40 lines
2.3 KiB
Markdown
# DOS alias investigation, 2026-11-28
|
|
|
|
Status: missing server feature confirmed; no live alias implementation released.
|
|
The 0.8.2 DOS snapshot is NOT a shared read/write alias layer.
|
|
|
|
The current upstream `connect.c:my_match` accepts only a single dot, at most
|
|
8 basename characters and 3 extension characters, and compares characters
|
|
case-insensitively. It does not allocate or resolve short aliases for long names.
|
|
A standalone ASCII probe of the extracted upstream function confirmed that
|
|
README.TXT resolves, whereas LANGE~1.TXT does not resolve Langer Dateiname.txt.
|
|
This is a resolver unit probe, NOT an NCP/DOS end-to-end test.
|
|
|
|
Integration points that must agree:
|
|
- connect.c: func_search_entry, get_dir_entry, get_dh_entry (legacy searches).
|
|
- connect.c: conn_get_kpl_path/mangle_dos_name/get_match (path resolution).
|
|
- connect.c: get_file_attrib, get_dir_attrib, DOS directory information encoding.
|
|
- namspace.c: search_match, build_dir_info, namespace path translation.
|
|
|
|
Several paths copy the resolved name using the ORIGINAL request length;
|
|
a simple replacement of a short name by a long string would truncate it.
|
|
A correct implementation must separate the wire/display name from the canonical
|
|
filesystem path, retain object identity for trustees and locking, and use the
|
|
same mapping for open/create/write/rename/delete and directory handles.
|
|
Neither truncating names nor generating display-only aliases is sufficient.
|
|
Filesystem symlink/hardlink aliases are not a substitute: deletion, rename,
|
|
ACL semantics and directory traversal would differ from the original object.
|
|
|
|
Required acceptance tests before enabling live writes:
|
|
- two colliding long names plus a real file named LANGE~1.TXT;
|
|
- restart and addition/removal do not redirect an existing alias;
|
|
- DOS write visible through long name and vice versa, same inode;
|
|
- subdirectory traversal, wildcard listing, read-only flags and trustees;
|
|
- rename/delete affect the original, no leftover copied/link alias;
|
|
- concurrent locking and open handles across clients;
|
|
- actual DOS client's legacy NCP calls and a long-namespace client.
|
|
|
|
Pending input: concrete DOS version and NetWare redirector (NETX/VLM/Client32),
|
|
and a test client/VM for the protocol verification. No server configuration,
|
|
existing data or released binary was changed by this investigation.
|