|
ReactOS 0.4.17-dev-1190-g4c812f4
|

Go to the source code of this file.
Macros | |
| #define | NDEBUG |
| #define | NTFS_GROW_AHEAD_MIN (64 * 1024) |
| #define | NTFS_GROW_AHEAD_MAX (4 * 1024 * 1024) |
Functions | |||||||||||||||
NtfsReadWriteVolume | |||||||||||||||
@implemented Serves a read or write made through a handle on the volume itself.
| |||||||||||||||
| static NTSTATUS | NtfsReadWriteVolume (PDEVICE_EXTENSION DeviceExt, UCHAR MajorFunction, PUCHAR Buffer, ULONG Length, LONGLONG Offset, PIRP Irp, PULONG LengthTransferred) | ||||||||||||||
| static NTSTATUS | NtfsReadFile (PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT FileObject, PUCHAR Buffer, ULONG Length, ULONGLONG ReadOffset, ULONG IrpFlags, PIRP Irp, PULONG LengthRead) | ||||||||||||||
| static VOID NTAPI | NtfsEnsureCacheMap (_In_ PFILE_OBJECT FileObject, _In_ PNTFS_FCB Fcb) | ||||||||||||||
| static NTSTATUS NTAPI | NtfsCachedRead (_In_ PNTFS_IRP_CONTEXT IrpContext, _In_ PNTFS_FCB Fcb, _Out_writes_bytes_(Length) PVOID Buffer, _In_ ULONG Length, _In_ PLARGE_INTEGER ReadOffset, _Out_ PULONG LengthRead) | ||||||||||||||
| NTSTATUS | NtfsRead (PNTFS_IRP_CONTEXT IrpContext) | ||||||||||||||
| static NTSTATUS NTAPI | NtfsGrowStream (_In_ PDEVICE_EXTENSION DeviceExt, _In_ PFILE_OBJECT FileObject, _In_ PNTFS_FCB Fcb, _In_ PNTFS_ATTR_CONTEXT DataContext, _In_ ULONG AttributeOffset, _Inout_ PFILE_RECORD_HEADER FileRecord, _In_ ULONGLONG NewEnd, _In_ BOOLEAN CaseSensitive) | ||||||||||||||
NtfsWriteFile | |||||||||||||||
@implemented Writes a file to the disk. It presently borrows a lot of code from NtfsReadFile() and VFatWriteFileData(). It needs some more work before it will be complete; it won't handle page files, asnyc io, cached writes, etc.
@Param Length The size of the data buffer being written, in bytes
| |||||||||||||||
| NTSTATUS | NtfsWriteFile (PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT FileObject, const PUCHAR Buffer, ULONG Length, ULONGLONG WriteOffset, ULONG IrpFlags, BOOLEAN CaseSensitive, PIRP Irp, PULONG LengthWritten) | ||||||||||||||
| static NTSTATUS NTAPI | NtfsGrowFileForWrite (_In_ PFILE_OBJECT FileObject, _In_ PNTFS_FCB Fcb, _In_ ULONGLONG NewEnd, _In_ BOOLEAN CaseSensitive) | ||||||||||||||
| static NTSTATUS NTAPI | NtfsCachedWrite (_In_ PNTFS_IRP_CONTEXT IrpContext, _In_ PNTFS_FCB Fcb, _In_reads_bytes_(Length) PVOID Buffer, _In_ ULONG Length, _In_ PLARGE_INTEGER WriteOffset, _In_ BOOLEAN CaseSensitive, _Out_ PULONG LengthWritten) | ||||||||||||||
NtfsWrite | |||||||||||||||
@implemented Handles IRP_MJ_WRITE I/O Request Packets for NTFS. This code borrows a lot from VfatWrite, and needs a lot of cleaning up. It also needs a lot more of the code from VfatWrite integrated.
| |||||||||||||||
| NTSTATUS | NtfsWrite (PNTFS_IRP_CONTEXT IrpContext) | ||||||||||||||
|
static |
Definition at line 327 of file rw.c.
Referenced by NtfsRead().
|
static |
Definition at line 862 of file rw.c.
Referenced by NtfsWrite().
Definition at line 310 of file rw.c.
Referenced by NtfsCachedRead(), and NtfsCachedWrite().
|
static |
Definition at line 827 of file rw.c.
Referenced by NtfsCachedWrite().
|
static |
Definition at line 508 of file rw.c.
Referenced by NtfsGrowFileForWrite(), and NtfsWriteFile().
| NTSTATUS NtfsRead | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 396 of file rw.c.
|
static |
Definition at line 124 of file rw.c.
Referenced by NtfsRead().
|
static |
Definition at line 80 of file rw.c.
Referenced by NtfsRead(), and NtfsWrite().
| NTSTATUS NtfsWrite | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 965 of file rw.c.
Referenced by NtfsDispatch().
| NTSTATUS NtfsWriteFile | ( | PDEVICE_EXTENSION | DeviceExt, |
| PFILE_OBJECT | FileObject, | ||
| const PUCHAR | Buffer, | ||
| ULONG | Length, | ||
| ULONGLONG | WriteOffset, | ||
| ULONG | IrpFlags, | ||
| BOOLEAN | CaseSensitive, | ||
| PIRP | Irp, | ||
| PULONG | LengthWritten | ||
| ) |
Definition at line 611 of file rw.c.
Referenced by NtfsWrite().