Menu

#2323 W32API: bad value of IOCTL_DISK_BASE

WSL
closed
disk ioctl (1)
Bug
fixed
IINR_-_Include_In_Next_Release
True
2016-12-08
2016-12-07
No

The IOCTL_DISK_BASE is defined in ddk/ntdddisk.h as FILE_TYPE_DISK, which is 1;
MicroSoft defines it as FILE_DEVICE_DISK, which is 7 (defined in ddk/winddk.h).
IOCTL codes based on it get to driver, and the driver cannot understand them.

1 Attachments

Discussion

  • Jerzy Tarasiuk

    Jerzy Tarasiuk - 2016-12-07

    Oh, I forgot to write: I used files from w32api-3.18.2-mingw32-dev.tar.xz

     
  • Keith Marshall

    Keith Marshall - 2016-12-07
    • status: unread --> open
    • assigned_to: Keith Marshall
     
  • Keith Marshall

    Keith Marshall - 2016-12-07

    You are quite right. At one time, we had it correctly defined as FILE_DEVICE_DISK too, but it seems to have undergone a transcription error, during code refactoring. I'll fix it, per your patch.

     
  • Keith Marshall

    Keith Marshall - 2016-12-08
    • status: open --> closed
    • Resolution: none --> fixed
    • Category: Unknown --> IINR_-_Include_In_Next_Release
     
  • Keith Marshall

    Keith Marshall - 2016-12-08

    I applied [01d9f3], thanks.

     

    Related

    Commit: [01d9f3]