[ros-kernel] Removable Media Support is Broken.
Hartmut Birr
Hartmut.Birr at gmx.de
Tue Jul 13 19:29:40 CEST 2004
> -----Original Message-----
> From: ros-kernel-bounces at reactos.com
> [mailto:ros-kernel-bounces at reactos.com] On Behalf Of James Tabor
> Sent: Tuesday, July 13, 2004 4:08 AM
> To: ReactOS Kernel List
> Subject: Re: [ros-kernel] Removable Media Support is Broken.
>
>
>
> The re-read for the partition table is getting hosed up. It
> seems class2 can not
> tell if it is real zero or relative zero after the device
> object is built.
> We found our bug,
> James
>
I think you haven't found the bug. Reading of the partition table must go to
\Device\Harddisk?\Partition0. You have changed back the device object for
the call to IoReadPartitionTable. It goes now to
\Device\Harddisk?\Partition1. At the first read, the offset is not
initialized and the correct sector is read. After the first read, the offset
is always initialized with the offset of the first sector of the partition.
I've add some debug code to xHalIoReadPartitionTable, which prints the
device name.
- Hartmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xhaldrv.diff
Type: application/octet-stream
Size: 1818 bytes
Desc: not available
Url : http://reactos.com:8080/pipermail/ros-kernel/attachments/20040713/c71cceb5/xhaldrv.obj
More information about the Ros-kernel
mailing list