* 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:
parent
83abcab4c0
commit
5c770c8431
|
@ -1,3 +1,13 @@
|
||||||
|
2003-09-28 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2003-09-27 Christopher Faylor <cgf@redhat.com>
|
2003-09-27 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* device.shilka (device::parse): Allow units on other than tty.
|
* device.shilka (device::parse): Allow units on other than tty.
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -60,8 +60,8 @@ enum fh_devices
|
||||||
FH_NTAPE = FHDEV (DEV_TAPE_MAJOR, 128),
|
FH_NTAPE = FHDEV (DEV_TAPE_MAJOR, 128),
|
||||||
FH_MAXNTAPE= FHDEV (DEV_TAPE_MAJOR, 255),
|
FH_MAXNTAPE= FHDEV (DEV_TAPE_MAJOR, 255),
|
||||||
|
|
||||||
DEV_SD_MAJOR = 3,
|
DEV_SD_MAJOR = 8,
|
||||||
DEV_SD1_MAJOR = 90,
|
DEV_SD1_MAJOR = 65,
|
||||||
FH_SD = FHDEV (DEV_SD_MAJOR, 0),
|
FH_SD = FHDEV (DEV_SD_MAJOR, 0),
|
||||||
FH_SD1 = FHDEV (DEV_SD1_MAJOR, 0),
|
FH_SD1 = FHDEV (DEV_SD1_MAJOR, 0),
|
||||||
FH_SDA = FHDEV (DEV_SD_MAJOR, 0),
|
FH_SDA = FHDEV (DEV_SD_MAJOR, 0),
|
||||||
|
@ -100,17 +100,17 @@ enum fh_devices
|
||||||
FH_URANDOM = FHDEV (1, 9),
|
FH_URANDOM = FHDEV (1, 9),
|
||||||
FH_OSS_DSP = FHDEV (14, 3),
|
FH_OSS_DSP = FHDEV (14, 3),
|
||||||
|
|
||||||
DEV_CYGDRIVE_MAJOR = 30,
|
DEV_CYGDRIVE_MAJOR = 29,
|
||||||
FH_CYGDRIVE= FHDEV (DEV_CYGDRIVE_MAJOR, 0),
|
FH_CYGDRIVE= FHDEV (DEV_CYGDRIVE_MAJOR, 0),
|
||||||
FH_CYGDRIVE_A= FHDEV (DEV_CYGDRIVE_MAJOR, 'a'),
|
FH_CYGDRIVE_A= FHDEV (DEV_CYGDRIVE_MAJOR, 'a'),
|
||||||
FH_CYGDRIVE_Z= FHDEV (DEV_CYGDRIVE_MAJOR, 'z'),
|
FH_CYGDRIVE_Z= FHDEV (DEV_CYGDRIVE_MAJOR, 'z'),
|
||||||
|
|
||||||
DEV_RAWDRIVE_MAJOR = 65,
|
DEV_RAWDRIVE_MAJOR = 66,
|
||||||
FH_RAWDRIVE= FHDEV (DEV_RAWDRIVE_MAJOR, 0),
|
FH_RAWDRIVE= FHDEV (DEV_RAWDRIVE_MAJOR, 0),
|
||||||
|
|
||||||
DEV_TCP_MAJOR = 30,
|
DEV_TCP_MAJOR = 30,
|
||||||
FH_TCP = FHDEV (DEV_TCP_MAJOR, 36),
|
FH_TCP = FHDEV (DEV_TCP_MAJOR, 36),
|
||||||
FH_UCP = FHDEV (DEV_TCP_MAJOR, 39),
|
FH_UDP = FHDEV (DEV_TCP_MAJOR, 39),
|
||||||
FH_ICMP = FHDEV (DEV_TCP_MAJOR, 33),
|
FH_ICMP = FHDEV (DEV_TCP_MAJOR, 33),
|
||||||
FH_UNIX = FHDEV (DEV_TCP_MAJOR, 120),
|
FH_UNIX = FHDEV (DEV_TCP_MAJOR, 120),
|
||||||
FH_STREAM = FHDEV (DEV_TCP_MAJOR, 121),
|
FH_STREAM = FHDEV (DEV_TCP_MAJOR, 121),
|
||||||
|
|
|
@ -31,7 +31,7 @@ const device dev_tcp_storage =
|
||||||
{"/dev/inet/tcp", FH_TCP, "", 0, 0, 0, 0};
|
{"/dev/inet/tcp", FH_TCP, "", 0, 0, 0, 0};
|
||||||
|
|
||||||
const device dev_udp_storage =
|
const device dev_udp_storage =
|
||||||
{"/dev/inet/udp", FH_UCP, "", 0, 0, 0, 0};
|
{"/dev/inet/udp", FH_UDP, "", 0, 0, 0, 0};
|
||||||
|
|
||||||
const device dev_icmp_storage =
|
const device dev_icmp_storage =
|
||||||
{"/dev/inet/icmp", FH_ICMP, "", 0, 0, 0, 0};
|
{"/dev/inet/icmp", FH_ICMP, "", 0, 0, 0, 0};
|
||||||
|
@ -129,83 +129,83 @@ const device dev_cdrom_storage =
|
||||||
const device dev_sr_storage =
|
const device dev_sr_storage =
|
||||||
{"/dev/sr", FH_CDROM, "\\Device\\CdRom%d", 0, 15};
|
{"/dev/sr", FH_CDROM, "\\Device\\CdRom%d", 0, 15};
|
||||||
|
|
||||||
const device dev_hda_storage =
|
const device dev_sda_storage =
|
||||||
{"/dev/hda", FH_SDA, "\\Device\\Harddisk%d\\Partition%d", 1, 16, -1};
|
{"/dev/sda", FH_SDA, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 0};
|
||||||
|
|
||||||
const device dev_hdb_storage =
|
const device dev_sdb_storage =
|
||||||
{"/dev/hdb", FH_SDB, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 15};
|
{"/dev/sdb", FH_SDB, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 16};
|
||||||
|
|
||||||
const device dev_hdc_storage =
|
const device dev_sdc_storage =
|
||||||
{"/dev/hdc", FH_SDC, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 31};
|
{"/dev/sdc", FH_SDC, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 32};
|
||||||
|
|
||||||
const device dev_hdd_storage =
|
const device dev_sdd_storage =
|
||||||
{"/dev/hdd", FH_SDD, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 47};
|
{"/dev/sdd", FH_SDD, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 48};
|
||||||
|
|
||||||
const device dev_hde_storage =
|
const device dev_sde_storage =
|
||||||
{"/dev/hde", FH_SDE, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 63};
|
{"/dev/sde", FH_SDE, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 64};
|
||||||
|
|
||||||
const device dev_hdf_storage =
|
const device dev_sdf_storage =
|
||||||
{"/dev/hdf", FH_SDF, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 79};
|
{"/dev/sdf", FH_SDF, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 80};
|
||||||
|
|
||||||
const device dev_hdg_storage =
|
const device dev_sdg_storage =
|
||||||
{"/dev/hdg", FH_SDG, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 95};
|
{"/dev/sdg", FH_SDG, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 96};
|
||||||
|
|
||||||
const device dev_hdh_storage =
|
const device dev_sdh_storage =
|
||||||
{"/dev/hdh", FH_SDH, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 111};
|
{"/dev/sdh", FH_SDH, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 112};
|
||||||
|
|
||||||
const device dev_hdi_storage =
|
const device dev_sdi_storage =
|
||||||
{"/dev/hdi", FH_SDI, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 127};
|
{"/dev/sdi", FH_SDI, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 128};
|
||||||
|
|
||||||
const device dev_hdj_storage =
|
const device dev_sdj_storage =
|
||||||
{"/dev/hdj", FH_SDJ, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 143};
|
{"/dev/sdj", FH_SDJ, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 144};
|
||||||
|
|
||||||
const device dev_hdk_storage =
|
const device dev_sdk_storage =
|
||||||
{"/dev/hdk", FH_SDK, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 159};
|
{"/dev/sdk", FH_SDK, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 160};
|
||||||
|
|
||||||
const device dev_hdl_storage =
|
const device dev_sdl_storage =
|
||||||
{"/dev/hdl", FH_SDL, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 175};
|
{"/dev/sdl", FH_SDL, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 176};
|
||||||
|
|
||||||
const device dev_hdm_storage =
|
const device dev_sdm_storage =
|
||||||
{"/dev/hdm", FH_SDM, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 191};
|
{"/dev/sdm", FH_SDM, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 192};
|
||||||
|
|
||||||
const device dev_hdn_storage =
|
const device dev_sdn_storage =
|
||||||
{"/dev/hdn", FH_SDN, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 207};
|
{"/dev/sdn", FH_SDN, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 208};
|
||||||
|
|
||||||
const device dev_hdo_storage =
|
const device dev_sdo_storage =
|
||||||
{"/dev/hdo", FH_SDO, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 223};
|
{"/dev/sdo", FH_SDO, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 224};
|
||||||
|
|
||||||
const device dev_hdp_storage =
|
const device dev_sdp_storage =
|
||||||
{"/dev/hdp", FH_SDP, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 239};
|
{"/dev/sdp", FH_SDP, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 240};
|
||||||
|
|
||||||
const device dev_hdq_storage =
|
const device dev_sdq_storage =
|
||||||
{"/dev/hdq", FH_SDQ, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 255 /* FIXME 8 bit lunacy */};
|
{"/dev/sdq", FH_SDQ, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 256};
|
||||||
|
|
||||||
const device dev_hdr_storage =
|
const device dev_sdr_storage =
|
||||||
{"/dev/hdr", FH_SDR, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 271};
|
{"/dev/sdr", FH_SDR, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 272};
|
||||||
|
|
||||||
const device dev_hds_storage =
|
const device dev_sds_storage =
|
||||||
{"/dev/hds", FH_SDS, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 287};
|
{"/dev/sds", FH_SDS, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 288};
|
||||||
|
|
||||||
const device dev_hdt_storage =
|
const device dev_sdt_storage =
|
||||||
{"/dev/hdt", FH_SDT, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 303};
|
{"/dev/sdt", FH_SDT, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 304};
|
||||||
|
|
||||||
const device dev_hdu_storage =
|
const device dev_sdu_storage =
|
||||||
{"/dev/hdu", FH_SDU, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 319};
|
{"/dev/sdu", FH_SDU, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 320};
|
||||||
|
|
||||||
const device dev_hdv_storage =
|
const device dev_sdv_storage =
|
||||||
{"/dev/hdv", FH_SDV, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 335};
|
{"/dev/sdv", FH_SDV, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 336};
|
||||||
|
|
||||||
const device dev_hdw_storage =
|
const device dev_sdw_storage =
|
||||||
{"/dev/hdw", FH_SDW, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 351};
|
{"/dev/sdw", FH_SDW, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 352};
|
||||||
|
|
||||||
const device dev_hdx_storage =
|
const device dev_sdx_storage =
|
||||||
{"/dev/hdx", FH_SDX, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 367};
|
{"/dev/sdx", FH_SDX, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 368};
|
||||||
|
|
||||||
const device dev_hdy_storage =
|
const device dev_sdy_storage =
|
||||||
{"/dev/hdy", FH_SDY, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 383};
|
{"/dev/sdy", FH_SDY, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 384};
|
||||||
|
|
||||||
const device dev_hdz_storage =
|
const device dev_sdz_storage =
|
||||||
{"/dev/hdz", FH_SDZ, "\\Device\\Harddisk%d\\Partition%d", 1, 16, 399};
|
{"/dev/sdz", FH_SDZ, "\\Device\\Harddisk%d\\Partition%d", 1, 15, 400};
|
||||||
|
|
||||||
const device dev_rawdrive_storage =
|
const device dev_rawdrive_storage =
|
||||||
{"/dev/rawdrive", FH_RAWDRIVE, "\\DosDevices\\%c:", 0, 0, 0, 0};
|
{"/dev/rawdrive", FH_RAWDRIVE, "\\DosDevices\\%c:", 0, 0, 0, 0};
|
||||||
|
@ -282,58 +282,32 @@ const device *uniq_devices[] =
|
||||||
"/dev/fd" = fd {return &dev_floppy_storage;}
|
"/dev/fd" = fd {return &dev_floppy_storage;}
|
||||||
"/dev/scd" = scd {return &dev_cdrom_storage;}
|
"/dev/scd" = scd {return &dev_cdrom_storage;}
|
||||||
"/dev/sr" = sr {return &dev_sr_storage;}
|
"/dev/sr" = sr {return &dev_sr_storage;}
|
||||||
"/dev/hda" = hda {return &dev_hda_storage;}
|
"/dev/sda" = sda {return &dev_sda_storage;}
|
||||||
"/dev/hdb" = hdb {return &dev_hdb_storage;}
|
"/dev/sdb" = sdb {return &dev_sdb_storage;}
|
||||||
"/dev/hdc" = hdc {return &dev_hdc_storage;}
|
"/dev/sdc" = sdc {return &dev_sdc_storage;}
|
||||||
"/dev/hdd" = hdd {return &dev_hdd_storage;}
|
"/dev/sdd" = sdd {return &dev_sdd_storage;}
|
||||||
"/dev/hde" = hde {return &dev_hde_storage;}
|
"/dev/sde" = sde {return &dev_sde_storage;}
|
||||||
"/dev/hdf" = hdf {return &dev_hdf_storage;}
|
"/dev/sdf" = sdf {return &dev_sdf_storage;}
|
||||||
"/dev/hdg" = hdg {return &dev_hdg_storage;}
|
"/dev/sdg" = sdg {return &dev_sdg_storage;}
|
||||||
"/dev/hdh" = hdh {return &dev_hdh_storage;}
|
"/dev/sdh" = sdh {return &dev_sdh_storage;}
|
||||||
"/dev/hdi" = hdi {return &dev_hdi_storage;}
|
"/dev/sdi" = sdi {return &dev_sdi_storage;}
|
||||||
"/dev/hdj" = hdj {return &dev_hdj_storage;}
|
"/dev/sdj" = sdj {return &dev_sdj_storage;}
|
||||||
"/dev/hdk" = hdk {return &dev_hdk_storage;}
|
"/dev/sdk" = sdk {return &dev_sdk_storage;}
|
||||||
"/dev/hdl" = hdl {return &dev_hdl_storage;}
|
"/dev/sdl" = sdl {return &dev_sdl_storage;}
|
||||||
"/dev/hdm" = hdm {return &dev_hdm_storage;}
|
"/dev/sdm" = sdm {return &dev_sdm_storage;}
|
||||||
"/dev/hdn" = hdn {return &dev_hdn_storage;}
|
"/dev/sdn" = sdn {return &dev_sdn_storage;}
|
||||||
"/dev/hdo" = hdo {return &dev_hdo_storage;}
|
"/dev/sdo" = sdo {return &dev_sdo_storage;}
|
||||||
"/dev/hdp" = hdp {return &dev_hdp_storage;}
|
"/dev/sdp" = sdp {return &dev_sdp_storage;}
|
||||||
"/dev/hdq" = hdq {return &dev_hdq_storage;}
|
"/dev/sdq" = sdq {return &dev_sdq_storage;}
|
||||||
"/dev/hdr" = hdr {return &dev_hdr_storage;}
|
"/dev/sdr" = sdr {return &dev_sdr_storage;}
|
||||||
"/dev/hds" = hds {return &dev_hds_storage;}
|
"/dev/sds" = sds {return &dev_sds_storage;}
|
||||||
"/dev/hdt" = hdt {return &dev_hdt_storage;}
|
"/dev/sdt" = sdt {return &dev_sdt_storage;}
|
||||||
"/dev/hdu" = hdu {return &dev_hdu_storage;}
|
"/dev/sdu" = sdu {return &dev_sdu_storage;}
|
||||||
"/dev/hdv" = hdv {return &dev_hdv_storage;}
|
"/dev/sdv" = sdv {return &dev_sdv_storage;}
|
||||||
"/dev/hdw" = hdw {return &dev_hdw_storage;}
|
"/dev/sdw" = sdw {return &dev_sdw_storage;}
|
||||||
"/dev/hdx" = hdx {return &dev_hdx_storage;}
|
"/dev/sdx" = sdx {return &dev_sdx_storage;}
|
||||||
"/dev/hdy" = hdy {return &dev_hdy_storage;}
|
"/dev/sdy" = sdy {return &dev_sdy_storage;}
|
||||||
"/dev/hdz" = hdz {return &dev_hdz_storage;}
|
"/dev/sdz" = sdz {return &dev_sdz_storage;}
|
||||||
"/dev/sda" = hda {return &dev_hda_storage;}
|
|
||||||
"/dev/sdb" = hdb {return &dev_hdb_storage;}
|
|
||||||
"/dev/sdc" = hdc {return &dev_hdc_storage;}
|
|
||||||
"/dev/sdd" = hdd {return &dev_hdd_storage;}
|
|
||||||
"/dev/sde" = hde {return &dev_hde_storage;}
|
|
||||||
"/dev/sdf" = hdf {return &dev_hdf_storage;}
|
|
||||||
"/dev/sdg" = hdg {return &dev_hdg_storage;}
|
|
||||||
"/dev/sdh" = hdh {return &dev_hdh_storage;}
|
|
||||||
"/dev/sdi" = hdi {return &dev_hdi_storage;}
|
|
||||||
"/dev/sdj" = hdj {return &dev_hdj_storage;}
|
|
||||||
"/dev/sdk" = hdk {return &dev_hdk_storage;}
|
|
||||||
"/dev/sdl" = hdl {return &dev_hdl_storage;}
|
|
||||||
"/dev/sdm" = hdm {return &dev_hdm_storage;}
|
|
||||||
"/dev/sdn" = hdn {return &dev_hdn_storage;}
|
|
||||||
"/dev/sdo" = hdo {return &dev_hdo_storage;}
|
|
||||||
"/dev/sdp" = hdp {return &dev_hdp_storage;}
|
|
||||||
"/dev/sdq" = hdq {return &dev_hdq_storage;}
|
|
||||||
"/dev/sdr" = hdr {return &dev_hdr_storage;}
|
|
||||||
"/dev/sds" = hds {return &dev_hds_storage;}
|
|
||||||
"/dev/sdt" = hdt {return &dev_hdt_storage;}
|
|
||||||
"/dev/sdu" = hdu {return &dev_hdu_storage;}
|
|
||||||
"/dev/sdv" = hdv {return &dev_hdv_storage;}
|
|
||||||
"/dev/sdw" = hdw {return &dev_hdw_storage;}
|
|
||||||
"/dev/sdx" = hdx {return &dev_hdx_storage;}
|
|
||||||
"/dev/sdy" = hdy {return &dev_hdy_storage;}
|
|
||||||
"/dev/sdz" = hdz {return &dev_hdz_storage;}
|
|
||||||
"/dev/rawdrive" = rawdrive {return &dev_rawdrive_storage;}
|
"/dev/rawdrive" = rawdrive {return &dev_rawdrive_storage;}
|
||||||
%other {return NULL;}
|
%other {return NULL;}
|
||||||
%%
|
%%
|
||||||
|
@ -361,6 +335,8 @@ device::parse (const char *s)
|
||||||
dev = ttys_dev; // SIGH
|
dev = ttys_dev; // SIGH
|
||||||
if (n >= dev->lower && n <= dev->upper)
|
if (n >= dev->lower && n <= dev->upper)
|
||||||
unit = n;
|
unit = n;
|
||||||
|
else
|
||||||
|
dev = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -382,7 +382,7 @@ build_fh_pc (path_conv& pc)
|
||||||
fh = cnew (fhandler_pipe) ();
|
fh = cnew (fhandler_pipe) ();
|
||||||
break;
|
break;
|
||||||
case FH_TCP:
|
case FH_TCP:
|
||||||
case FH_UCP:
|
case FH_UDP:
|
||||||
case FH_ICMP:
|
case FH_ICMP:
|
||||||
case FH_UNIX:
|
case FH_UNIX:
|
||||||
case FH_STREAM:
|
case FH_STREAM:
|
||||||
|
|
|
@ -903,17 +903,19 @@ win32_device_name (const char *src_path, char *win32_path, device& dev)
|
||||||
if (dev.devn == FH_FS)
|
if (dev.devn == FH_FS)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
switch (dev.devn)
|
switch (dev.major)
|
||||||
{
|
{
|
||||||
case FH_TAPE:
|
case DEV_TAPE_MAJOR:
|
||||||
__small_sprintf (win32_path, dev.fmt, dev.minor % 128);
|
__small_sprintf (win32_path, dev.fmt, dev.minor % 128);
|
||||||
break;
|
break;
|
||||||
case FH_RAWDRIVE:
|
case DEV_RAWDRIVE_MAJOR:
|
||||||
__small_sprintf (win32_path, dev.fmt, dev.minor - 224 + 'A');
|
__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;
|
break;
|
||||||
default:
|
default:
|
||||||
__small_sprintf (win32_path, dev.fmt, dev.minor);
|
__small_sprintf (win32_path, dev.fmt, dev.minor);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue