* devices.h: Move a few device major numbers. Fix typo of FH_UDP.

* device.shilka: Remove /dev/hd device entries, rename all device_hd*
	to device_sd*.
	(device::parse): Disallow units outside lower and upper bounds.
	* dtable.cc (build_fh_pc): Fix typo of FH_UDP.
	* path.cc (win32_device_name): Fix win32 name creation to match new
	device handling.
This commit is contained in:
Corinna Vinschen
2003-09-28 09:44:13 +00:00
parent 83abcab4c0
commit 5c770c8431
6 changed files with 556 additions and 938 deletions

View File

@@ -903,17 +903,19 @@ win32_device_name (const char *src_path, char *win32_path, device& dev)
if (dev.devn == FH_FS)
return false;
switch (dev.devn)
switch (dev.major)
{
case FH_TAPE:
case DEV_TAPE_MAJOR:
__small_sprintf (win32_path, dev.fmt, dev.minor % 128);
break;
case FH_RAWDRIVE:
__small_sprintf (win32_path, dev.fmt, dev.minor - 224 + 'A');
case DEV_RAWDRIVE_MAJOR:
__small_sprintf (win32_path, dev.fmt, dev.minor + 'A');
break;
case DEV_SD_MAJOR:
__small_sprintf (win32_path, dev.fmt, dev.minor / 16, dev.minor % 16);
break;
default:
__small_sprintf (win32_path, dev.fmt, dev.minor);
break;
}
return true;
}