diff --git a/DOS-ALIAS-INVESTIGATION.md b/DOS-ALIAS-INVESTIGATION.md new file mode 100644 index 0000000..a83cc8c --- /dev/null +++ b/DOS-ALIAS-INVESTIGATION.md @@ -0,0 +1,39 @@ +# 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. diff --git a/DRIVER-RELEASE.md b/DRIVER-RELEASE.md index 0d6b9cd..6c196cc 100644 --- a/DRIVER-RELEASE.md +++ b/DRIVER-RELEASE.md @@ -1,13 +1,13 @@ -# MARS VME 0.8.2: Installation und Treiberfreigaben +# MARS VME 0.8.3: Installation und Treiberfreigaben ## Fertiges Linux-Paket -`releases/deb/mars-vme_0.8.2-1_amd64.deb` ist ein nativer Build fuer +`releases/deb/mars-vme_0.8.3-1_amd64.deb` ist ein nativer Build fuer **Ubuntu 26.04 amd64**, nicht pauschal fuer alte Debian-/Ubuntu-Versionen. Die ELF-Abhaengigkeiten werden beim Paketbau aus der Build-Umgebung ermittelt. ``` -sudo apt install ./releases/deb/mars-vme_0.8.2-1_amd64.deb +sudo apt install ./releases/deb/mars-vme_0.8.3-1_amd64.deb ``` Danach `http://SERVER:8787` im vertrauenswuerdigen LAN oeffnen, mit admin/admin diff --git a/LONG-NAMES.md b/LONG-NAMES.md index 4baa767..6ae12fa 100644 --- a/LONG-NAMES.md +++ b/LONG-NAMES.md @@ -53,3 +53,18 @@ Die Kopie ist statisch und schreibgeschuetzt. Aktualisierungen erfordern einen neuen Export und einen kontrollierten Wechsel der Volume-Zuordnung. Es gibt keine Ruecksynchronisation und keine Zusage, dass jedes alte DOS-Programm lange Namen selbst anzeigen oder bearbeiten kann. + + +## Auswahl gaengiger DOS-Umgebungen (0.8.3) + +Das Webfrontend bietet MS-DOS 5.x, 6.x/6.22, 7.x ohne Windows, IBM PC DOS +5–7/2000, DR DOS/Novell DOS 6–7 und FreeDOS 1.x. Separat waehlbar sind NETX, +VLM und Novell Client32. Alle 18 Auswahlen zeigen Einrichtungshinweise und den +Status **nicht am echten Client getestet**. Dies ist eine Planungsauswahl, +keine Behauptung, dass jede Kombination lauffaehig oder LFN-faehig ist. +Client32 setzt mindestens einen 386 voraus; konkrete Systemanforderungen +haengen vom Clientrelease ab. Keine proprietaeren DOS-/Novell-Installer werden +mitgeliefert. Version und Lizenz der vorhandenen Clientsoftware bleiben relevant. + +Die gemeinsame, beschreibbare Kurz-/Langnamen-Zuordnung ist weiterhin offen; +siehe DOS-ALIAS-INVESTIGATION.md. Ein UI-Profil ersetzt diese Implementierung nicht. diff --git a/packaging/build-deb.py b/packaging/build-deb.py index b7695d7..dfa2dd5 100644 --- a/packaging/build-deb.py +++ b/packaging/build-deb.py @@ -27,7 +27,7 @@ with tempfile.TemporaryDirectory(prefix='mars-deb-') as tmp: control=pathlib.Path(tmp)/'debian';control.mkdir();(control/'control').write_text('Source: mars-vme\nMaintainer: MARS VME \n\nPackage: mars-vme\nArchitecture: any\nDescription: MARS VME\n') elfs=[p for p in stage.rglob('*') if p.is_file() and p.read_bytes()[:4]==b'\x7fELF'] deps=run('dpkg-shlibdeps','-O',*[str(p) for p in elfs],cwd=tmp).strip().split('shlibs:Depends=',1)[1] - (deb/'control').write_text(f'Package: mars-vme\nVersion: 0.8.2-1\nArchitecture: {arch}\nMaintainer: MARS VME \nDepends: {deps}, python3, jq, iproute2, nftables, libpcap0.8t64\nSection: net\nPriority: optional\nDescription: MARS VME server with web administration and Windows driver packages\n Host-native Ubuntu 26.04 build. Windows drivers are experimental.\n') + (deb/'control').write_text(f'Package: mars-vme\nVersion: 0.8.3-1\nArchitecture: {arch}\nMaintainer: MARS VME \nDepends: {deps}, python3, jq, iproute2, nftables, libpcap0.8t64\nSection: net\nPriority: optional\nDescription: MARS VME server with web administration and Windows driver packages\n Host-native Ubuntu 26.04 build. Windows drivers are experimental.\n') (deb/'postinst').write_text('''#!/bin/sh set -e if [ "$1" = configure ]; then @@ -56,6 +56,6 @@ fi (deb/'conffiles').write_text(''.join('/'+str(f.relative_to(stage))+'\n' for f in (stage/'usr/local/etc').rglob('*') if f.is_file())) for name in ('postinst','prerm'):(deb/name).chmod(0o755) for name in ('COPYING','LEGACY-BUILD.md','WINDOWS.md','DRIVER-RELEASE.md','LONG-NAMES.md'):copy(name,'usr/share/doc/mars-vme/'+name) - package=out/f'mars-vme_0.8.2-1_{arch}.deb';run('dpkg-deb','--root-owner-group','--build',str(stage),str(package)) + package=out/f'mars-vme_0.8.3-1_{arch}.deb';run('dpkg-deb','--root-owner-group','--build',str(stage),str(package)) (out/'SHA256SUMS').write_text(''.join(hashlib.sha256(f.read_bytes()).hexdigest()+' '+f.name+'\n' for f in sorted(out.glob('*.deb')))) print(package) diff --git a/releases/BUILD-DOS-PROFILES.json b/releases/BUILD-DOS-PROFILES.json new file mode 100644 index 0000000..25340cc --- /dev/null +++ b/releases/BUILD-DOS-PROFILES.json @@ -0,0 +1,6 @@ +{ + "version": "0.8.3-1", + "deb_sha256": "9f299ae9f8b011ec33d4a72abbe53b2f224fd173954bd0237549f763832917fc", + "tested": "Chromium: six DOS families by three redirector options; all 18 correctly show unverified status; LFN draft, driver activation and downloads regression passed", + "limits": "Selection provides guidance only. No DOS client installers. Live writable DOS aliases remain unimplemented." +} diff --git a/releases/README.md b/releases/README.md index 77eab76..d611c26 100644 --- a/releases/README.md +++ b/releases/README.md @@ -1,6 +1,6 @@ # Fertige Pakete -- [Linux DEB – Ubuntu 26.04 amd64](deb/mars-vme_0.8.2-1_amd64.deb) +- [Linux DEB – Ubuntu 26.04 amd64](deb/mars-vme_0.8.3-1_amd64.deb) - [Windows 95](windows/WIN95.zip) - [Windows 98](windows/WIN98.zip) - [Windows ME](windows/WINME.zip) diff --git a/releases/deb/SHA256SUMS b/releases/deb/SHA256SUMS index 8dd80e3..51c8cf8 100644 --- a/releases/deb/SHA256SUMS +++ b/releases/deb/SHA256SUMS @@ -1,2 +1,3 @@ 4cfb0f64673b409e1c5371267d4bd28e5678bc89e4473202020c3eb6b27aa390 mars-vme_0.8.1-1_amd64.deb 1caabb60251dd78a6ae6731330031923c29ac4425c141374279331a58f8bd923 mars-vme_0.8.2-1_amd64.deb +9f299ae9f8b011ec33d4a72abbe53b2f224fd173954bd0237549f763832917fc mars-vme_0.8.3-1_amd64.deb diff --git a/releases/deb/mars-vme_0.8.3-1_amd64.deb b/releases/deb/mars-vme_0.8.3-1_amd64.deb new file mode 100644 index 0000000..381cbe5 Binary files /dev/null and b/releases/deb/mars-vme_0.8.3-1_amd64.deb differ diff --git a/tests/test_driver_ui.cjs b/tests/test_driver_ui.cjs index 373808e..8d4f1e7 100644 --- a/tests/test_driver_ui.cjs +++ b/tests/test_driver_ui.cjs @@ -17,6 +17,11 @@ const fs=require('fs'),path=require('path'),assert=require('assert'); await page.goto('http://127.0.0.1:18889/'); await page.waitForFunction(()=>document.querySelector('#configPath').textContent==='/test'); await page.evaluate(()=>show(2)); + for(const os of ['ms5','ms6','ms7','pc','dr','free'])for(const client of ['netx','vlm','client32']){ + await page.locator('#dosVersion').selectOption(os);await page.locator('#dosClient').selectOption(client); + const info=await page.locator('#dosProfileInfo').textContent();assert(info.includes('noch nicht implementiert'));assert(info.includes('noch nicht mit einem echten Client getestet')); + if(client==='client32')assert(info.includes('8086/286')); + } await page.locator('#g1').fill('SYS /srv/sys kt 711 600 # keep rights'); await page.locator('#g6').fill('0 0x1'); await page.locator('#enableLFN').click(); diff --git a/websetup/app.js b/websetup/app.js index 0924fec..aa4a589 100644 --- a/websetup/app.js +++ b/websetup/app.js @@ -169,3 +169,18 @@ $('enableLFN').onclick=()=>guided(()=>{ const version=$('g6').value.trim().split(/\s+/);if(!['1','2'].includes(version[0]))version[0]='2'; $('g6').value=version.join(' ');mark();notice('LFN-Entwurf vorbereitet. Vorschau prüfen, speichern und Dateiserver neu starten. DOS-Programme benötigen weiterhin 8.3-Namen.'); }); + +function renderDosProfile(){ + const os=$('dosVersion').value,client=$('dosClient').value; + const notes=['Teststatus: Kombination noch nicht mit einem echten Client getestet.', 'Reines DOS und normale DOS-Programme: 8.3-Dateinamen. Die Auswahl aktiviert keine LFN-Schnittstelle.']; + if(client==='netx')notes.push('NETX: klassischer DOS-Zugriff. Netzwerkadapter-, IPX- und NETX-Version muessen zum Rechner passen.'); + if(client==='vlm')notes.push('VLM: modularer DOS-Requester. ODI-Treiber, IPXODI und NET.CFG anhand der konkreten Clientversion einrichten.'); + if(client==='client32')notes.push('Client32: mindestens 386-Klasse; nicht fuer 8086/286 geeignet. Unterstuetzte DOS-Version und Speicherbedarf in den Client-Unterlagen pruefen. Kein automatisches LFN fuer alte DOS-Programme.'); + if(os==='ms7')notes.push('DOS 7.x ohne Windows ist nicht mit einer DOS-Sitzung unter laufendem Windows 95/98 gleichzusetzen.'); + if(os==='free'||os==='dr')notes.push('Bei dieser DOS-Familie sind Redirector- und Speichermanager-Kompatibilitaet besonders zu testen; keine pauschale Freigabe.'); + notes.push('Gemeinsames Arbeiten an langen Originalnamen ueber stabile DOS-Aliase ist im MARS-Paket noch nicht implementiert. Der optionale DOS-Export bleibt eine schreibgeschuetzte Kopie.'); + $('dosProfileInfo').textContent=notes.join(' '); +} +$('dosVersion').onchange=renderDosProfile; +$('dosClient').onchange=renderDosProfile; +renderDosProfile(); diff --git a/websetup/index.html b/websetup/index.html index 14c3a63..10ce177 100644 --- a/websetup/index.html +++ b/websetup/index.html @@ -7,7 +7,7 @@
Einrichtungsreihenfolge & Sicherheit

Einrichtungsreihenfolge

  1. Ein separates Retro-LAN und eine Ethernet-Schnittstelle vorbereiten.
  2. Servername, interne Netznummer und mindestens einen externen Frame konfigurieren.
  3. SYS-Volume und gegebenenfalls weitere Datenvolumes einrichten.
  4. SUPERVISOR-Zuordnung und Initialpasswort prüfen.
  5. Änderungen validieren, Vorschau kontrollieren und speichern.
  6. Server starten, SAP-Erkennung und Dateioperationen am Client testen.
Historische NetWare-Dienste sind nicht für ungeschützte Netze geeignet. Diese Oberfläche hat Administratorrechte. Nur in einem vertrauenswürdigen Administrationsnetz freigeben, niemals im Internet.
- +