Ignore:
Timestamp:
Nov 26, 2018, 3:15:43 PM (7 years ago)
Author:
David Azarewicz
Message:

Added Usable Disk option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/ioctl.c

    r196 r198  
    9898      for (d = 0; d <= pi->dev_max; d++)
    9999      {
    100         if (pi->devs[d].present)
     100        if (pi->devs[d].present && !pi->devs[d].ignored)
    101101        {
    102102          /* add this device to the device list */
     
    148148  p = req->port;
    149149  d = req->device;
    150   if (a >= ad_info_cnt || p > ad_infos[a].port_max ||
    151       d > ad_infos[a].ports[p].dev_max || !ad_infos[a].ports[p].devs[d].present)
     150  if (a >= ad_info_cnt || p > ad_infos[a].port_max
     151     || d > ad_infos[a].ports[p].dev_max
     152     || !ad_infos[a].ports[p].devs[d].present
     153     || ad_infos[a].ports[p].devs[d].ignored)
    152154  {
    153155    return(RPDONE | RPERR_UNIT);
     
    545547      for (_d = 0; _d <= pi->dev_max; _d++)
    546548      {
    547         if (pi->devs[_d].present)
     549        if (pi->devs[_d].present && !pi->devs[_d].ignored)
    548550        {
    549551          if (unit-- == 0)
Note: See TracChangeset for help on using the changeset viewer.