Author: gschneider
Date: Thu Dec 10 21:26:58 2009
New Revision: 44529
URL:
http://svn.reactos.org/svn/reactos?rev=44529&view=rev
Log:
[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
Modified:
trunk/reactos/drivers/filesystems/msfs/create.c
trunk/reactos/drivers/filesystems/msfs/finfo.c
trunk/reactos/drivers/filesystems/msfs/fsctrl.c
trunk/reactos/drivers/filesystems/msfs/msfs.c
trunk/reactos/drivers/filesystems/msfs/msfs.h
trunk/reactos/drivers/filesystems/msfs/rw.c
Modified: trunk/reactos/drivers/filesystems/msfs/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/msfs/c…
==============================================================================
--- trunk/reactos/drivers/filesystems/msfs/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/msfs/create.c [iso-8859-1] Thu Dec 10 21:26:58 2009
@@ -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
*/
Modified: trunk/reactos/drivers/filesystems/msfs/finfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/msfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/msfs/finfo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/msfs/finfo.c [iso-8859-1] Thu Dec 10 21:26:58 2009
@@ -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 @@
}
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);
@@ -93,19 +94,6 @@
Ccb = (PMSFS_CCB)FileObject->FsContext2;
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;
Modified: trunk/reactos/drivers/filesystems/msfs/fsctrl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/msfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/msfs/fsctrl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/msfs/fsctrl.c [iso-8859-1] Thu Dec 10 21:26:58 2009
@@ -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 @@
switch (IoStack->Parameters.FileSystemControl.FsControlCode)
{
-#if 0
-
-#endif
default:
Status = STATUS_NOT_IMPLEMENTED;
}
Modified: trunk/reactos/drivers/filesystems/msfs/msfs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/msfs/m…
==============================================================================
--- trunk/reactos/drivers/filesystems/msfs/msfs.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/msfs/msfs.c [iso-8859-1] Thu Dec 10 21:26:58 2009
@@ -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
*/
Modified: trunk/reactos/drivers/filesystems/msfs/msfs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/msfs/m…
==============================================================================
--- trunk/reactos/drivers/filesystems/msfs/msfs.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/msfs/msfs.h [iso-8859-1] Thu Dec 10 21:26:58 2009
@@ -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
*/
Modified: trunk/reactos/drivers/filesystems/msfs/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/msfs/r…
==============================================================================
--- trunk/reactos/drivers/filesystems/msfs/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/msfs/rw.c [iso-8859-1] Thu Dec 10 21:26:58 2009
@@ -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
*/