mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Started support for removable disk drives.
svn path=/trunk/; revision=2765
This commit is contained in:
parent
0b0f4a17d0
commit
be5628fdc9
1 changed files with 15 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: disk.c,v 1.10 2002/03/20 19:54:06 ekohl Exp $
|
||||
/* $Id: disk.c,v 1.11 2002/03/22 20:35:09 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -331,8 +331,22 @@ NTSTATUS STDCALL
|
|||
DiskClassCheckReadWrite(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
PDEVICE_EXTENSION DeviceExtension;
|
||||
PDISK_DATA DiskData;
|
||||
|
||||
DPRINT1("DiskClassCheckReadWrite() called\n");
|
||||
|
||||
DeviceExtension = DeviceObject->DeviceExtension;
|
||||
DiskData = (PDISK_DATA)(DeviceExtension + 1);
|
||||
|
||||
if (DiskData->DriveNotReady == TRUE)
|
||||
{
|
||||
Irp->IoStatus.Status = STATUS_DEVICE_NOT_READY;
|
||||
IoSetHardErrorOrVerifyDevice(Irp,
|
||||
DeviceObject);
|
||||
return(STATUS_INVALID_PARAMETER);
|
||||
}
|
||||
|
||||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue