Initial RetroNFS95 Win9x VxD prototype
This commit is contained in:
69
docs/DRIVE_MAPPING.md
Normal file
69
docs/DRIVE_MAPPING.md
Normal file
@@ -0,0 +1,69 @@
|
||||
# Windows 95/98 Drive Mapping Plan
|
||||
|
||||
The NFS core in this repository is user-mode. Mapping a real drive letter on
|
||||
Windows 95/98 requires a second layer.
|
||||
|
||||
## Goal
|
||||
|
||||
Expose an NFS export as a normal drive such as:
|
||||
|
||||
```text
|
||||
R:\
|
||||
```
|
||||
|
||||
with long filenames visible to Win32 applications.
|
||||
|
||||
## Architecture
|
||||
|
||||
```text
|
||||
Win32 apps
|
||||
|
|
||||
MPR / WNet APIs
|
||||
|
|
||||
RetroNFS network provider DLL
|
||||
|
|
||||
Win9x redirector / IFSMgr layer
|
||||
|
|
||||
RetroNFS user-mode service or VxD bridge
|
||||
|
|
||||
NFSv3 client core
|
||||
|
|
||||
Winsock TCP/IP
|
||||
```
|
||||
|
||||
## Why This Is Separate
|
||||
|
||||
Win95/98 drive mapping is not just an NFS protocol problem. The operating
|
||||
system needs a network provider/redirector that handles file opens, reads,
|
||||
writes, directory enumeration, attributes, locks, and name conversion.
|
||||
|
||||
The current source tree provides the protocol core that this redirector will
|
||||
call.
|
||||
|
||||
## Long Filename Strategy
|
||||
|
||||
Windows 95/98 supports long filenames through Win32 APIs and VFAT semantics.
|
||||
The redirector should:
|
||||
|
||||
- preserve server filenames as long names
|
||||
- synthesize 8.3 aliases for old 16-bit/DOS applications
|
||||
- store no extra metadata on the NFS server unless needed
|
||||
- reject or map characters invalid on Windows clients
|
||||
|
||||
Pure real-mode MS-DOS is different. It has no native LFN layer, so a DOS client
|
||||
would need an LFN TSR/API shim or would expose 8.3 aliases only.
|
||||
|
||||
## Implementation Milestones
|
||||
|
||||
1. Add write/create/remove/rename/mkdir/rmdir to the NFS core.
|
||||
2. Add attribute translation and basic DOS file mode mapping.
|
||||
3. Add file handle cache and directory entry cache.
|
||||
4. Build a Win32 network provider DLL for connection UI and persistent mappings.
|
||||
5. Implement the redirector/VxD bridge for file operations.
|
||||
6. Add installer INF for Win95/98.
|
||||
|
||||
## Risk
|
||||
|
||||
The VxD/IFSMgr portion is the hardest part and needs the Windows 95/98 DDK.
|
||||
The protocol code can be developed and tested first on XP or Linux.
|
||||
|
||||
Reference in New Issue
Block a user