mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
[msfs] Mail slot file system driver bring up 1/x:
- Allow clients to query mail slot info - Read the size of the first message in the slot - Update headers, some cleanup - Fixes 11 kernel32 mail slot test failures svn path=/trunk/; revision=44529
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
/* $Id$
|
||||
*
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: drivers/filesystems/ms/create.c
|
||||
* FILE: drivers/filesystems/msfs/create.c
|
||||
* PURPOSE: Mailslot filesystem
|
||||
* PROGRAMMER: Eric Kohl
|
||||
*/
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
/* $Id$
|
||||
*
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: drivers/filesystems/ms/finfo.c
|
||||
* FILE: drivers/filesystems/msfs/finfo.c
|
||||
* PURPOSE: Mailslot filesystem
|
||||
* PROGRAMMER: Eric Kohl
|
||||
*/
|
||||
@@ -43,8 +42,10 @@ MsfsQueryMailslotInformation(PMSFS_FCB Fcb,
|
||||
}
|
||||
else
|
||||
{
|
||||
/* FIXME: read size of first message (head) */
|
||||
Buffer->NextMessageSize = 0;
|
||||
PMSFS_MESSAGE Message = CONTAINING_RECORD(Fcb->MessageListHead.Flink,
|
||||
MSFS_MESSAGE,
|
||||
MessageListEntry);
|
||||
Buffer->NextMessageSize = Message->Size;
|
||||
}
|
||||
KeReleaseSpinLock(&Fcb->MessageListLock, oldIrql);
|
||||
|
||||
@@ -94,19 +95,6 @@ MsfsQueryInformation(PDEVICE_OBJECT DeviceObject,
|
||||
|
||||
DPRINT("Mailslot name: %wZ\n", &Fcb->Name);
|
||||
|
||||
/* querying information is not permitted on client side */
|
||||
if (Fcb->ServerCcb != Ccb)
|
||||
{
|
||||
Status = STATUS_ACCESS_DENIED;
|
||||
|
||||
Irp->IoStatus.Status = Status;
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
SystemBuffer = Irp->AssociatedIrp.SystemBuffer;
|
||||
BufferLength = IoStack->Parameters.QueryFile.Length;
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
/* $Id$
|
||||
*
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: drivers/filesystems/ms/fsctrl.c
|
||||
* FILE: drivers/filesystems/msfs/fsctrl.c
|
||||
* PURPOSE: Mailslot filesystem
|
||||
* PROGRAMMER: Eric Kohl
|
||||
*/
|
||||
@@ -38,9 +37,6 @@ MsfsFileSystemControl(PDEVICE_OBJECT DeviceObject,
|
||||
|
||||
switch (IoStack->Parameters.FileSystemControl.FsControlCode)
|
||||
{
|
||||
#if 0
|
||||
|
||||
#endif
|
||||
default:
|
||||
Status = STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
/* $Id$
|
||||
*
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: services/fs/ms/msfs.c
|
||||
* FILE: drivers/filesystems/msfs/msfs.c
|
||||
* PURPOSE: Mailslot filesystem
|
||||
* PROGRAMMER: Eric Kohl
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: services/fs/ms/msfs.h
|
||||
* FILE: drivers/filesystems/msfs/msfs.h
|
||||
* PURPOSE: Mailslot filesystem
|
||||
* PROGRAMMER: Eric Kohl
|
||||
*/
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
/* $Id$
|
||||
*
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: drivers/filesystems/ms/rw.c
|
||||
* FILE: drivers/filesystems/msfs/rw.c
|
||||
* PURPOSE: Mailslot filesystem
|
||||
* PROGRAMMER: Eric Kohl
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user