mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 22:42:14 +00:00
[CDFS] Delete the old CDFS driver.
You served us well!
This commit is contained in:
parent
a4554c07b0
commit
5795254933
19 changed files with 0 additions and 5564 deletions
|
@ -1,69 +0,0 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: drivers/filesystems/cdfs/devctrl.c
|
||||
* PURPOSE: CDROM (ISO 9660) filesystem driver
|
||||
* PROGRAMMER: Pierre Schweitzer
|
||||
*
|
||||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "cdfs.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
NTSTATUS NTAPI
|
||||
CdfsDeviceControl(
|
||||
PCDFS_IRP_CONTEXT IrpContext)
|
||||
{
|
||||
PIRP Irp;
|
||||
NTSTATUS Status;
|
||||
PVCB Vcb = NULL;
|
||||
PFILE_OBJECT FileObject;
|
||||
PIO_STACK_LOCATION Stack;
|
||||
|
||||
DPRINT("CdfsDeviceControl()\n");
|
||||
|
||||
ASSERT(IrpContext);
|
||||
|
||||
Irp = IrpContext->Irp;
|
||||
Stack = IrpContext->Stack;
|
||||
FileObject = Stack->FileObject;
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
||||
/* FIXME: HACK, it means that CD has changed */
|
||||
if (!FileObject)
|
||||
{
|
||||
DPRINT1("FIXME: CdfsDeviceControl called without FileObject!\n");
|
||||
return STATUS_INVALID_DEVICE_REQUEST;
|
||||
}
|
||||
|
||||
/* Only support such operations on volume */
|
||||
if (!(FileObject->RelatedFileObject == NULL || FileObject->RelatedFileObject->FsContext2 != NULL))
|
||||
{
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
if (Stack->Parameters.DeviceIoControl.IoControlCode == IOCTL_CDROM_DISK_TYPE)
|
||||
{
|
||||
/* We should handle this one, but we don't! */
|
||||
Status = STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Pass it to storage driver */
|
||||
IoSkipCurrentIrpStackLocation(Irp);
|
||||
Vcb = (PVCB)Stack->DeviceObject->DeviceExtension;
|
||||
|
||||
/* Lower driver will complete - we don't have to */
|
||||
IrpContext->Flags &= ~IRPCONTEXT_COMPLETE;
|
||||
|
||||
Status = IoCallDriver(Vcb->StorageDevice, Irp);
|
||||
}
|
||||
|
||||
return Status;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue