[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:
Gregor Schneider
2009-12-10 20:26:58 +00:00
parent a9580d9762
commit 765abc4bbb
6 changed files with 15 additions and 34 deletions
+2 -3
View File
@@ -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
*/
+6 -18
View File
@@ -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;
+2 -6
View File
@@ -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;
}
+2 -3
View File
@@ -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 -1
View File
@@ -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
*/
+2 -3
View File
@@ -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
*/