mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NPFS_NEW]: Add file header info.
svn path=/trunk/; revision=60047
This commit is contained in:
parent
e7ced8199e
commit
a9b62ec084
20 changed files with 275 additions and 4 deletions
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/cleanup.c
|
||||
* PURPOSE: Pipes Cleanup
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
NpCommonCleanup(IN PDEVICE_OBJECT DeviceObject,
|
||||
|
@ -61,3 +73,4 @@ NpFsdCleanup(IN PDEVICE_OBJECT DeviceObject,
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/close.c
|
||||
* PURPOSE: Pipes Closing
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
NpCommonClose(IN PDEVICE_OBJECT DeviceObject,
|
||||
|
@ -56,3 +68,4 @@ NpFsdClose(IN PDEVICE_OBJECT DeviceObject,
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/create.c
|
||||
* PURPOSE: Pipes Creation
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
NpCheckForNotify(IN PNP_DCB Dcb,
|
||||
|
@ -728,3 +740,4 @@ Quickie:
|
|||
return IoStatus.Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/datasup.c
|
||||
* PURPOSE: Data Queues Support
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
NpUninitializeDataQueue(IN PNP_DATA_QUEUE DataQueue)
|
||||
|
@ -457,3 +469,5 @@ NpAddDataQueueEntry(IN ULONG NamedPipeEnd,
|
|||
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/fileinfo.c
|
||||
* PURPOSE: Pipes Information
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
NpSetBasicInfo(IN PNP_CCB Ccb,
|
||||
|
@ -466,6 +478,4 @@ NpFsdQueryInformation(IN PDEVICE_OBJECT DeviceObject,
|
|||
return Status;
|
||||
}
|
||||
|
||||
//
|
||||
// volinfo.c
|
||||
//
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/fileobsup.c
|
||||
* PURPOSE: Pipes File Object Support
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NODE_TYPE_CODE
|
||||
NTAPI
|
||||
NpDecodeFileObject(IN PFILE_OBJECT FileObject,
|
||||
|
@ -73,3 +85,4 @@ NpSetFileObject(IN PFILE_OBJECT FileObject,
|
|||
if (FileIsPipe) FileObject->Flags |= FO_NAMED_PIPE;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/flushbuf.c
|
||||
* PURPOSE: Buffers Flushing Support
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
NpCommonFlushBuffers(IN PDEVICE_OBJECT DeviceObject,
|
||||
|
@ -69,3 +81,4 @@ NpFsdFlushBuffers(IN PDEVICE_OBJECT DeviceObject,
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,7 +1,21 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/fsctrl.c
|
||||
* PURPOSE: Named Pipe FileSystem I/O Controls
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
||||
IO_STATUS_BLOCK NpUserIoStatusBlock;
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
NpInternalTransceive(IN PDEVICE_OBJECT DeviceObject,
|
||||
|
@ -687,4 +701,4 @@ NpFsdFileSystemControl(IN PDEVICE_OBJECT DeviceObject,
|
|||
return Status;
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,7 +1,21 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/main.c
|
||||
* PURPOSE: Named Pipe FileSystem Driver Initialization
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
||||
PDEVICE_OBJECT NpfsDeviceObject;
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
NpFsdDirectoryControl(IN PDEVICE_OBJECT DeviceObject,
|
||||
|
@ -70,3 +84,5 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
|
|||
ASSERT(Status == STATUS_SUCCESS);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/prefxsup.c
|
||||
* PURPOSE: Pipes Prefixes Support
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
PNP_FCB
|
||||
NTAPI
|
||||
NpFindPrefix(IN PUNICODE_STRING Name,
|
||||
|
@ -75,3 +87,4 @@ NpFindRelativePrefix(IN PNP_DCB Dcb,
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,7 +1,21 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/read.c
|
||||
* PURPOSE: Pipes Reading
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
||||
LONG NpSlowReadCalls;
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
NpCommonRead(IN PFILE_OBJECT FileObject,
|
||||
|
@ -172,3 +186,5 @@ NpFsdRead(IN PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
return IoStatus.Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/readsup.c
|
||||
* PURPOSE: Pipes Reading Support
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
IO_STATUS_BLOCK
|
||||
NTAPI
|
||||
NpReadDataQueue(IN PNP_DATA_QUEUE DataQueue,
|
||||
|
@ -140,3 +152,4 @@ NpReadDataQueue(IN PNP_DATA_QUEUE DataQueue,
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/secursup.c
|
||||
* PURPOSE: Pipes Security Support
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
NpFreeClientSecurityContext(IN PSECURITY_CLIENT_CONTEXT ClientContext)
|
||||
|
@ -118,3 +130,4 @@ NpGetClientSecurityContext(IN ULONG NamedPipeEnd,
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/seinfo.c
|
||||
* PURPOSE: Pipes Security Information
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
NpCommonQuerySecurityInfo(IN PDEVICE_OBJECT DeviceObject,
|
||||
|
@ -126,3 +138,4 @@ NpFsdSetSecurityInfo(IN PDEVICE_OBJECT DeviceObject,
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/statesup.c
|
||||
* PURPOSE: Pipes State Support
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
NpCancelListeningQueueIrp(IN PDEVICE_OBJECT DeviceObject,
|
||||
|
@ -371,3 +383,4 @@ NpSetClosingPipeState(IN PNP_CCB Ccb,
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,10 +1,24 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/strucsup.c
|
||||
* PURPOSE:
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
||||
#define UNIMPLEMENTED
|
||||
|
||||
PWCHAR NpRootDCBName = L"\\";
|
||||
PNP_VCB NpVcb;
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
RTL_GENERIC_COMPARE_RESULTS
|
||||
NTAPI
|
||||
NpEventTableCompareRoutine(IN PRTL_GENERIC_TABLE Table,
|
||||
|
@ -344,3 +358,4 @@ NpCreateCcb(IN PNP_FCB Fcb,
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/volinfo.c
|
||||
* PURPOSE: Named Pipe FileSystem Volume Information
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
NpQueryFsVolumeInfo(IN PVOID Buffer,
|
||||
|
@ -186,3 +198,5 @@ NpFsdQueryVolumeInformation(IN PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/waitsup.c
|
||||
* PURPOSE: Pipes Waiting Support
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
NpCancelWaitQueueIrp(IN PDEVICE_OBJECT DeviceObject,
|
||||
|
@ -189,3 +201,5 @@ NpAddWaiter(IN PNP_WAIT_QUEUE WaitQueue,
|
|||
}
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,7 +1,21 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/write.c
|
||||
* PURPOSE: Pipes Writing
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
||||
LONG NpSlowWriteCalls;
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
NpCommonWrite(IN PFILE_OBJECT FileObject,
|
||||
|
@ -188,3 +202,4 @@ NpFsdWrite(IN PDEVICE_OBJECT DeviceObject,
|
|||
return IoStatus.Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Named Pipe FileSystem
|
||||
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
||||
* FILE: drivers/filesystems/npfs/writesup.c
|
||||
* PURPOSE: Pipes Writing Support
|
||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include "npfs.h"
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
NpWriteDataQueue(IN PNP_DATA_QUEUE WriteQueue,
|
||||
|
@ -153,3 +165,4 @@ NpWriteDataQueue(IN PNP_DATA_QUEUE WriteQueue,
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue