Author: pschweitzer
Date: Sun May 14 10:15:43 2017
New Revision: 74544
URL:
http://svn.reactos.org/svn/reactos?rev=74544&view=rev
Log:
[MUP]
Split MUP into two parts; MUP on one side, DFS on the second side.
This will allow using headers in other parts
Added:
trunk/reactos/drivers/filesystems/mup/dfs.c (with props)
trunk/reactos/drivers/filesystems/mup/dfs.h (with props)
Modified:
trunk/reactos/drivers/filesystems/mup/CMakeLists.txt
trunk/reactos/drivers/filesystems/mup/mup.c
trunk/reactos/drivers/filesystems/mup/mup.h
Modified: trunk/reactos/drivers/filesystems/mup/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/mup/CM…
==============================================================================
--- trunk/reactos/drivers/filesystems/mup/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/mup/CMakeLists.txt [iso-8859-1] Sun May 14 10:15:43
2017
@@ -1,6 +1,8 @@
list(APPEND SOURCE
+ dfs.c
mup.c
+ dfs.h
mup.h)
add_library(mup SHARED ${SOURCE} mup.rc)
Added: trunk/reactos/drivers/filesystems/mup/dfs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/mup/df…
==============================================================================
--- trunk/reactos/drivers/filesystems/mup/dfs.c (added)
+++ trunk/reactos/drivers/filesystems/mup/dfs.c [iso-8859-1] Sun May 14 10:15:43 2017
@@ -0,0 +1,96 @@
+/*
+ * ReactOS kernel
+ * Copyright (C) 2002 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS kernel
+ * FILE: drivers/filesystems/mup/dfs.c
+ * PURPOSE: Multi UNC Provider
+ * PROGRAMMER: Pierre Schweitzer (pierre(a)reactos.org)
+ */
+
+/* INCLUDES *****************************************************************/
+
+#include "mup.h"
+
+#define NDEBUG
+#include <debug.h>
+
+#if defined(ALLOC_PRAGMA)
+#pragma alloc_text(INIT, DfsDriverEntry)
+#endif
+
+/* FUNCTIONS ****************************************************************/
+
+NTSTATUS
+NTAPI
+DfsVolumePassThrough(PDEVICE_OBJECT DeviceObject,
+ PIRP Irp)
+{
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+NTSTATUS
+DfsFsdFileSystemControl(PDEVICE_OBJECT DeviceObject,
+ PIRP Irp)
+{
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+NTSTATUS
+DfsFsdCreate(PDEVICE_OBJECT DeviceObject,
+ PIRP Irp)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+NTSTATUS
+DfsFsdCleanup(PDEVICE_OBJECT DeviceObject,
+ PIRP Irp)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+NTSTATUS
+DfsFsdClose(PDEVICE_OBJECT DeviceObject,
+ PIRP Irp)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+VOID
+DfsUnload(PDRIVER_OBJECT DriverObject)
+{
+ UNIMPLEMENTED;
+}
+
+INIT_SECTION
+NTSTATUS
+DfsDriverEntry(PDRIVER_OBJECT DriverObject,
+ PUNICODE_STRING RegistryPath)
+{
+ /* We don't support DFS yet, so
+ * fail to make sure it remains disabled
+ */
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
Propchange: trunk/reactos/drivers/filesystems/mup/dfs.c
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/drivers/filesystems/mup/dfs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/mup/df…
==============================================================================
--- trunk/reactos/drivers/filesystems/mup/dfs.h (added)
+++ trunk/reactos/drivers/filesystems/mup/dfs.h [iso-8859-1] Sun May 14 10:15:43 2017
@@ -0,0 +1,58 @@
+#ifndef _DFS_PCH_
+#define _DFS_PCH_
+
+#define DFS_OPEN_CONTEXT 0xFF444653
+#define DFS_DOWNLEVEL_OPEN_CONTEXT 0x11444653
+#define DFS_CSCAGENT_NAME_CONTEXT 0xAAAAAAAA
+#define DFS_USER_NAME_CONTEXT 0xBBBBBBBB
+
+typedef struct _DFS_NAME_CONTEXT_
+{
+ UNICODE_STRING UNCFileName;
+ LONG NameContextType;
+ ULONG Flags;
+} DFS_NAME_CONTEXT, *PDFS_NAME_CONTEXT;
+
+NTSTATUS
+NTAPI
+DfsVolumePassThrough(
+ PDEVICE_OBJECT DeviceObject,
+ PIRP Irp
+);
+
+NTSTATUS
+DfsFsdFileSystemControl(
+ PDEVICE_OBJECT DeviceObject,
+ PIRP Irp
+);
+
+NTSTATUS
+DfsFsdCreate(
+ PDEVICE_OBJECT DeviceObject,
+ PIRP Irp
+);
+
+NTSTATUS
+DfsFsdCleanup(
+ PDEVICE_OBJECT DeviceObject,
+ PIRP Irp
+);
+
+NTSTATUS
+DfsFsdClose(
+ PDEVICE_OBJECT DeviceObject,
+ PIRP Irp
+);
+
+VOID
+DfsUnload(
+ PDRIVER_OBJECT DriverObject
+);
+
+NTSTATUS
+DfsDriverEntry(
+ PDRIVER_OBJECT DriverObject,
+ PUNICODE_STRING RegistryPath
+);
+
+#endif
Propchange: trunk/reactos/drivers/filesystems/mup/dfs.h
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/drivers/filesystems/mup/mup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/mup/mu…
==============================================================================
--- trunk/reactos/drivers/filesystems/mup/mup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/mup/mup.c [iso-8859-1] Sun May 14 10:15:43 2017
@@ -39,12 +39,6 @@
PUNICODE_STRING RegistryPath
);
-NTSTATUS
-DfsDriverEntry(
- PDRIVER_OBJECT DriverObject,
- PUNICODE_STRING RegistryPath
-);
-
VOID
MupInitializeData(
VOID
@@ -57,7 +51,6 @@
#if defined(ALLOC_PRAGMA)
#pragma alloc_text(INIT, DriverEntry)
-#pragma alloc_text(INIT, DfsDriverEntry)
#pragma alloc_text(INIT, MupInitializeData)
#pragma alloc_text(INIT, MupInitializeVcb)
#endif
@@ -788,14 +781,6 @@
NTSTATUS
NTAPI
-DfsVolumePassThrough(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
-{
- return STATUS_NOT_IMPLEMENTED;
-}
-
-NTSTATUS
-NTAPI
MupForwardIoRequest(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
@@ -1273,13 +1258,6 @@
_SEH2_END;
return Status;
-}
-
-NTSTATUS
-DfsFsdFileSystemControl(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
-{
- return STATUS_NOT_IMPLEMENTED;
}
NTSTATUS
@@ -1913,14 +1891,6 @@
}
NTSTATUS
-DfsFsdCreate(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
-{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
-}
-
-NTSTATUS
CreateRedirectedFile(PIRP Irp,
PFILE_OBJECT FileObject,
PIO_SECURITY_CONTEXT SecurityContext)
@@ -2323,14 +2293,6 @@
}
NTSTATUS
-DfsFsdCleanup(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
-{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
-}
-
-NTSTATUS
NTAPI
MupCleanup(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
@@ -2454,14 +2416,6 @@
}
NTSTATUS
-DfsFsdClose(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
-{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
-}
-
-NTSTATUS
NTAPI
MupClose(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
@@ -2533,12 +2487,6 @@
}
VOID
-DfsUnload(PDRIVER_OBJECT DriverObject)
-{
- UNIMPLEMENTED;
-}
-
-VOID
NTAPI
MupUnload(PDRIVER_OBJECT DriverObject)
{
@@ -2550,18 +2498,6 @@
}
MupUninitializeData();
-}
-
-INIT_SECTION
-NTSTATUS
-DfsDriverEntry(PDRIVER_OBJECT DriverObject,
- PUNICODE_STRING RegistryPath)
-{
- /* We don't support DFS yet, so
- * fail to make sure it remains disabled
- */
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
}
/*
Modified: trunk/reactos/drivers/filesystems/mup/mup.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/mup/mu…
==============================================================================
--- trunk/reactos/drivers/filesystems/mup/mup.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/mup/mup.h [iso-8859-1] Sun May 14 10:15:43 2017
@@ -18,11 +18,6 @@
#define TAG_MUP ' puM'
#define FILE_SIMPLE_RIGHTS_MASK (FILE_ALL_ACCESS & ~STANDARD_RIGHTS_REQUIRED &~
SYNCHRONIZE)
-
-#define DFS_OPEN_CONTEXT 0xFF444653
-#define DFS_DOWNLEVEL_OPEN_CONTEXT 0x11444653
-#define DFS_CSCAGENT_NAME_CONTEXT 0xAAAAAAAA
-#define DFS_USER_NAME_CONTEXT 0xBBBBBBBB
#define NODE_TYPE_VCB 0x1
#define NODE_TYPE_UNC 0x2
@@ -146,4 +141,6 @@
PIRP Irp;
} QUERY_PATH_CONTEXT, *PQUERY_PATH_CONTEXT;
+#include "dfs.h"
+
#endif /* _MUP_PCH_ */