mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Implemented shutdown routine dummy
svn path=/trunk/; revision=1485
This commit is contained in:
parent
65c77b52d6
commit
380b1db222
4 changed files with 53 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: iface.c,v 1.43 2000/09/12 10:12:13 jean Exp $
|
||||
/* $Id: iface.c,v 1.44 2000/12/29 13:45:01 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -230,6 +230,8 @@ NTSTATUS STDCALL DriverEntry(PDRIVER_OBJECT _DriverObject,
|
|||
FsdDirectoryControl;
|
||||
VfatDriverObject->MajorFunction[IRP_MJ_QUERY_VOLUME_INFORMATION] =
|
||||
VfatQueryVolumeInformation;
|
||||
VfatDriverObject->MajorFunction[IRP_MJ_SHUTDOWN] =
|
||||
VfatShutdown;
|
||||
|
||||
VfatDriverObject->DriverUnload = NULL;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: makefile,v 1.23 2000/11/20 19:59:11 ekohl Exp $
|
||||
# $Id: makefile,v 1.24 2000/12/29 13:45:01 ekohl Exp $
|
||||
#
|
||||
#
|
||||
PATH_TO_TOP = ../../..
|
||||
|
@ -6,7 +6,7 @@ PATH_TO_TOP = ../../..
|
|||
TARGET=vfatfs
|
||||
|
||||
OBJECTS = blockdev.o close.o create.o dir.o dirwr.o iface.o string.o fat.o \
|
||||
rw.o finfo.o volume.o $(TARGET).coff
|
||||
rw.o finfo.o volume.o shutdown.o $(TARGET).coff
|
||||
LIBS = ../../../ntoskrnl/ntoskrnl.a
|
||||
|
||||
CFLAGS =
|
||||
|
|
42
reactos/drivers/fs/vfat/shutdown.c
Normal file
42
reactos/drivers/fs/vfat/shutdown.c
Normal file
|
@ -0,0 +1,42 @@
|
|||
/* $Id: shutdown.c,v 1.1 2000/12/29 13:45:01 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: services/fs/vfat/shutdown.c
|
||||
* PURPOSE: VFAT Filesystem
|
||||
* PROGRAMMER: Eric Kohl (ekohl@rz-online.de)
|
||||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
|
||||
//#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "vfat.h"
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
NTSTATUS STDCALL
|
||||
VfatShutdown(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||
{
|
||||
PIO_STACK_LOCATION Stack = IoGetCurrentIrpStackLocation(Irp);
|
||||
PFILE_OBJECT FileObject = Stack->FileObject;
|
||||
PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
|
||||
NTSTATUS Status;
|
||||
|
||||
DPRINT("VfatShutdown(DeviceObject %x, Irp %x)\n",DeviceObject, Irp);
|
||||
|
||||
/* FIXME: Shut down the file system */
|
||||
|
||||
Status = STATUS_SUCCESS;
|
||||
|
||||
Irp->IoStatus.Status = Status;
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
return(Status);
|
||||
}
|
||||
|
||||
/* EOF */
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: vfat.h,v 1.17 2000/09/12 10:12:13 jean Exp $ */
|
||||
/* $Id: vfat.h,v 1.18 2000/12/29 13:45:01 ekohl Exp $ */
|
||||
|
||||
struct _BootSector {
|
||||
unsigned char magic0, res0, magic1;
|
||||
|
@ -236,3 +236,8 @@ NTSTATUS STDCALL VfatSetInformation(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
|||
* From create.c
|
||||
*/
|
||||
NTSTATUS ReadVolumeLabel(PDEVICE_EXTENSION DeviceExt, PVPB Vpb);
|
||||
|
||||
/*
|
||||
* functions from shutdown.c
|
||||
*/
|
||||
NTSTATUS STDCALL VfatShutdown(PDEVICE_OBJECT DeviceObject, PIRP Irp);
|
||||
|
|
Loading…
Reference in a new issue