|
ReactOS 0.4.17-dev-1190-g4c812f4
|
#include <ntifs.h>#include <pseh/pseh2.h>#include <section_attribs.h>#include <pshpack1.h>#include <poppack.h>

Go to the source code of this file.
Classes | |
| struct | _BIOS_PARAMETERS_BLOCK |
| struct | _EXTENDED_BIOS_PARAMETERS_BLOCK |
| struct | _BOOT_SECTOR |
| struct | _NTFS_INFO |
| struct | NTFSIDENTIFIER |
| struct | DEVICE_EXTENSION |
| struct | NTFS_CCB |
| struct | NTFS_GLOBAL_DATA |
| struct | NTFS_RECORD_HEADER |
| struct | _FILE_RECORD_HEADER |
| struct | NTFS_ATTR_RECORD |
| struct | NTFS_ATTRIBUTE_LIST_ITEM |
| struct | STANDARD_INFORMATION |
| struct | ATTRIBUTE_LIST |
| struct | FILENAME_ATTRIBUTE |
| struct | INDEX_HEADER_ATTRIBUTE |
| struct | INDEX_ROOT_ATTRIBUTE |
| struct | INDEX_BUFFER |
| struct | INDEX_ENTRY_ATTRIBUTE |
| struct | _B_TREE_KEY |
| struct | _B_TREE_FILENAME_NODE |
| struct | B_TREE |
| struct | VOLINFO_ATTRIBUTE |
| struct | REPARSE_POINT_ATTRIBUTE |
| struct | _NTFS_IO_RUN |
| struct | _NTFS_IO_RUN_LIST |
| struct | _NTFS_IO_CONTEXT |
| struct | NTFS_IRP_CONTEXT |
| struct | _NTFS_ATTR_CONTEXT |
| struct | _FCB |
| struct | _FIND_ATTR_CONTXT |
| struct | FIXUP_ARRAY |
| struct | _NTFS_FILENAME_UPDATE |
Variables | |
| PNTFS_GLOBAL_DATA | NtfsGlobalData |
| DRIVER_DISPATCH | NtfsFsdDispatch |
| FAST_IO_CHECK_IF_POSSIBLE | NtfsFastIoCheckIfPossible |
| FAST_IO_READ | NtfsFastIoRead |
| FAST_IO_WRITE | NtfsFastIoWrite |
| DRIVER_INITIALIZE | DriverEntry |
| #define CACHEPAGESIZE | ( | pDeviceExt | ) |
| typedef struct _B_TREE_KEY B_TREE_KEY |
| typedef struct _BOOT_SECTOR BOOT_SECTOR |
| typedef struct _FIND_ATTR_CONTXT FIND_ATTR_CONTXT |
| typedef struct _NTFS_INFO NTFS_INFO |
| typedef struct _NTFS_IO_CONTEXT NTFS_IO_CONTEXT |
| typedef struct _NTFS_IO_RUN NTFS_IO_RUN |
| typedef struct _NTFS_IO_RUN_LIST NTFS_IO_RUN_LIST |
| typedef struct DEVICE_EXTENSION NTFS_VCB |
| typedef struct ATTRIBUTE_LIST * PATTRIBUTE_LIST |
| typedef enum ATTRIBUTE_TYPE * PATTRIBUTE_TYPE |
| typedef struct _B_TREE_FILENAME_NODE * PB_TREE_FILENAME_NODE |
| typedef struct _B_TREE_KEY * PB_TREE_KEY |
| typedef struct _BOOT_SECTOR * PBOOT_SECTOR |
| typedef struct DEVICE_EXTENSION * PDEVICE_EXTENSION |
| typedef struct _FILE_RECORD_HEADER * PFILE_RECORD_HEADER |
| typedef struct FILENAME_ATTRIBUTE * PFILENAME_ATTRIBUTE |
| typedef struct _FIND_ATTR_CONTXT * PFIND_ATTR_CONTXT |
| typedef struct FIXUP_ARRAY * PFIXUP_ARRAY |
| typedef struct INDEX_BUFFER * PINDEX_BUFFER |
| typedef struct INDEX_ROOT_ATTRIBUTE * PINDEX_ROOT_ATTRIBUTE |
| typedef struct _NTFS_ATTR_CONTEXT * PNTFS_ATTR_CONTEXT |
| typedef struct NTFS_ATTR_RECORD * PNTFS_ATTR_RECORD |
| typedef struct _NTFS_FILENAME_UPDATE * PNTFS_FILENAME_UPDATE |
| typedef struct NTFS_GLOBAL_DATA * PNTFS_GLOBAL_DATA |
| typedef struct _NTFS_INFO * PNTFS_INFO |
| typedef struct _NTFS_IO_CONTEXT * PNTFS_IO_CONTEXT |
| typedef struct _NTFS_IO_RUN * PNTFS_IO_RUN |
| typedef struct _NTFS_IO_RUN_LIST * PNTFS_IO_RUN_LIST |
| typedef struct NTFS_IRP_CONTEXT * PNTFS_IRP_CONTEXT |
| typedef struct NTFS_RECORD_HEADER * PNTFS_RECORD_HEADER |
| typedef struct DEVICE_EXTENSION * PNTFS_VCB |
| typedef struct NTFSIDENTIFIER * PNTFSIDENTIFIER |
| typedef struct STANDARD_INFORMATION * PSTANDARD_INFORMATION |
| typedef struct VOLINFO_ATTRIBUTE * PVOLINFO_ATTRIBUTE |
Definition at line 186 of file ntfs.h.
| NTSTATUS AddBitmap | ( | PNTFS_VCB | Vcb, |
| PFILE_RECORD_HEADER | FileRecord, | ||
| PNTFS_ATTR_RECORD | AttributeAddress, | ||
| PCWSTR | Name, | ||
| USHORT | NameLength | ||
| ) |
Definition at line 76 of file attrib.c.
Referenced by DECLARE_INTERFACE_(), CFontsDialog::InitToolbar(), and UpdateIndexAllocation().
| NTSTATUS AddData | ( | PFILE_RECORD_HEADER | FileRecord, |
| PNTFS_ATTR_RECORD | AttributeAddress | ||
| ) |
Definition at line 164 of file attrib.c.
Referenced by DECLARE_INTERFACE_(), and NtfsCreateFileRecord().
| NTSTATUS AddFileName | ( | PFILE_RECORD_HEADER | FileRecord, |
| PNTFS_ATTR_RECORD | AttributeAddress, | ||
| PDEVICE_EXTENSION | DeviceExt, | ||
| PFILE_OBJECT | FileObject, | ||
| BOOLEAN | CaseSensitive, | ||
| PULONGLONG | ParentMftIndex | ||
| ) |
Definition at line 234 of file attrib.c.
Referenced by NtfsCreateDirectory(), and NtfsCreateFileRecord().
| NTSTATUS AddFixupArray | ( | PDEVICE_EXTENSION | Vcb, |
| PNTFS_RECORD_HEADER | Record | ||
| ) |
Definition at line 3575 of file mft.c.
Referenced by CreateIndexBufferFromBTreeNode(), UpdateFileRecord(), and UpdateIndexEntryFileName().
| NTSTATUS AddIndexAllocation | ( | PNTFS_VCB | Vcb, |
| PFILE_RECORD_HEADER | FileRecord, | ||
| PNTFS_ATTR_RECORD | AttributeAddress, | ||
| PCWSTR | Name, | ||
| USHORT | NameLength | ||
| ) |
Definition at line 380 of file attrib.c.
Referenced by UpdateIndexAllocation().
| NTSTATUS AddIndexRoot | ( | PNTFS_VCB | Vcb, |
| PFILE_RECORD_HEADER | FileRecord, | ||
| PNTFS_ATTR_RECORD | AttributeAddress, | ||
| PINDEX_ROOT_ATTRIBUTE | NewIndexRoot, | ||
| ULONG | RootLength, | ||
| PCWSTR | Name, | ||
| USHORT | NameLength | ||
| ) |
Definition at line 487 of file attrib.c.
Referenced by NtfsCreateDirectory().
| NTSTATUS AddNewMftEntry | ( | PFILE_RECORD_HEADER | FileRecord, |
| PDEVICE_EXTENSION | DeviceExt, | ||
| PULONGLONG | DestinationIndex, | ||
| BOOLEAN | CanWait | ||
| ) |
Definition at line 2482 of file mft.c.
Referenced by AddNewMftEntry(), NtfsCreateDirectory(), and NtfsCreateFileRecord().
| NTSTATUS AddRun | ( | PNTFS_VCB | Vcb, |
| PNTFS_ATTR_CONTEXT | AttrContext, | ||
| ULONG | AttrOffset, | ||
| PFILE_RECORD_HEADER | FileRecord, | ||
| ULONGLONG | NextAssignedCluster, | ||
| ULONG | RunLength | ||
| ) |
Definition at line 591 of file attrib.c.
Referenced by NtfsExtendAllocation().
| NTSTATUS AddStandardInformation | ( | PFILE_RECORD_HEADER | FileRecord, |
| PNTFS_ATTR_RECORD | AttributeAddress | ||
| ) |
Definition at line 783 of file attrib.c.
Referenced by NtfsCreateDirectory(), and NtfsCreateFileRecord().
| ULONGLONG AttributeAllocatedLength | ( | PNTFS_ATTR_RECORD | AttrRecord | ) |
Definition at line 249 of file mft.c.
Referenced by NtfsGetFileSize(), NtfsGetStreamInformation(), and NtfsReadFile().
| ULONGLONG AttributeDataLength | ( | PNTFS_ATTR_RECORD | AttrRecord | ) |
Definition at line 259 of file mft.c.
Referenced by AddFilenameToDirectoryWorker(), AddNewMftEntry(), AllocateIndexNode(), BrowseIndexEntries(), FreeMftEntry(), IncreaseMftSize(), InternalReadNonResidentAttributes(), NtfsGetFileSize(), NtfsGetStreamInformation(), NtfsGetVolumeData(), NtfsIsDirectoryEmpty(), NtfsLoadVolumeBitmap(), NtfsReadFCBAttribute(), NtfsReadFile(), NtfsReadUpCaseTable(), NtfsSetEndOfFile(), NtfsWriteFile(), PrintAllVCNs(), RemoveFilenameFromDirectoryWorker(), SetAttributeDataLength(), UpdateFileNameRecordWorker(), UpdateIndexEntryFileName(), and UpdateMftMirror().
| BOOLEAN CompareFileName | ( | PDEVICE_EXTENSION | Vcb, |
| PUNICODE_STRING | FileName, | ||
| PINDEX_ENTRY_ATTRIBUTE | IndexEntry, | ||
| BOOLEAN | DirSearch, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Definition at line 3622 of file mft.c.
Referenced by BrowseIndexEntries(), BrowseSubNodeIndexEntries(), and UpdateIndexEntryFileName().
| LONG CompareTreeKeys | ( | PB_TREE_KEY | Key1, |
| PB_TREE_KEY | Key2, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Definition at line 422 of file btree.c.
Referenced by NtfsInsertKey(), and NtfsRemoveKey().
| NTSTATUS ConvertDataRunsToLargeMCB | ( | PUCHAR | DataRun, |
| PLARGE_MCB | DataRunsMCB, | ||
| PULONGLONG | pNextVBN | ||
| ) |
Definition at line 842 of file attrib.c.
Referenced by PrepareAttributeContext().
| NTSTATUS ConvertLargeMCBToDataRuns | ( | PLARGE_MCB | DataRunsMCB, |
| ULONGLONG | VcnCount, | ||
| PUCHAR | RunBuffer, | ||
| ULONG | MaxBufferSize, | ||
| PULONG | UsedBufferSize | ||
| ) |
Definition at line 917 of file attrib.c.
Referenced by AddRun(), FreeClusters(), and NtfsMapAttributeRuns().
| NTSTATUS CreateBTreeFromIndex | ( | PDEVICE_EXTENSION | Vcb, |
| PFILE_RECORD_HEADER | FileRecordWithIndex, | ||
| PNTFS_ATTR_CONTEXT | IndexRootContext, | ||
| PINDEX_ROOT_ATTRIBUTE | IndexRoot, | ||
| PB_TREE * | NewTree | ||
| ) |
Definition at line 687 of file btree.c.
Referenced by AddFilenameToDirectoryWorker(), and RemoveFilenameFromDirectoryWorker().
| PB_TREE_KEY CreateBTreeKeyFromFilename | ( | ULONGLONG | FileReference, |
| PFILENAME_ATTRIBUTE | FileNameAttribute | ||
| ) |
Definition at line 1466 of file btree.c.
Referenced by NtfsInsertKey(), and RemoveFilenameFromDirectoryWorker().
Definition at line 353 of file btree.c.
Referenced by NtfsCreateDirectory().
| NTSTATUS CreateIndexRootFromBTree | ( | PDEVICE_EXTENSION | DeviceExt, |
| PB_TREE | Tree, | ||
| ULONG | MaxIndexSize, | ||
| PINDEX_ROOT_ATTRIBUTE * | IndexRoot, | ||
| ULONG * | Length | ||
| ) |
Definition at line 915 of file btree.c.
Referenced by AddFilenameToDirectoryWorker(), NtfsCreateDirectory(), and RemoveFilenameFromDirectoryWorker().
Definition at line 1010 of file attrib.c.
Referenced by ConvertDataRunsToLargeMCB(), FindRun(), GetLastClusterInDataRun(), NtfsDumpDataRuns(), NtfsMapAttributeRuns(), PrepareAttributeContext(), and PrintAttributeInfo().
Definition at line 1094 of file btree.c.
Referenced by AddFilenameToDirectoryWorker().
Definition at line 1549 of file btree.c.
Referenced by AddFilenameToDirectoryWorker(), CreateBTreeFromIndex(), NtfsCreateDirectory(), and RemoveFilenameFromDirectoryWorker().
| VOID DestroyBTreeKey | ( | PB_TREE_KEY | Key | ) |
Definition at line 1506 of file btree.c.
Referenced by DestroyBTreeNode(), NtfsInsertKey(), RemoveFilenameFromDirectoryWorker(), and RemoveKeyFromNode().
| VOID DestroyBTreeNode | ( | PB_TREE_FILENAME_NODE | Node | ) |
Definition at line 1518 of file btree.c.
Referenced by CreateBTreeNodeFromIndexNode(), DestroyBTree(), and DestroyBTreeKey().
Definition at line 1629 of file btree.c.
Referenced by AddFilenameToDirectoryWorker(), CreateIndexRootFromBTree(), DemoteBTreeRoot(), NtfsInsertKey(), and UpdateIndexAllocation().
| VOID DumpBTreeKey | ( | PB_TREE | Tree, |
| PB_TREE_KEY | Key, | ||
| ULONG | Number, | ||
| ULONG | Depth | ||
| ) |
Definition at line 1556 of file btree.c.
Referenced by DumpBTreeNode().
| VOID DumpBTreeNode | ( | PB_TREE | Tree, |
| PB_TREE_FILENAME_NODE | Node, | ||
| ULONG | Number, | ||
| ULONG | Depth | ||
| ) |
Definition at line 1590 of file btree.c.
Referenced by DumpBTree(), DumpBTreeKey(), and SplitBTreeNode().
| VOID EnumerAttribute | ( | PFILE_RECORD_HEADER | file, |
| PDEVICE_EXTENSION | Vcb, | ||
| PDEVICE_OBJECT | DeviceObject | ||
| ) |
| NTSTATUS FindAttribute | ( | PDEVICE_EXTENSION | Vcb, |
| PFILE_RECORD_HEADER | MftRecord, | ||
| ULONG | Type, | ||
| PCWSTR | Name, | ||
| ULONG | NameLength, | ||
| PNTFS_ATTR_CONTEXT * | AttrCtx, | ||
| PULONG | Offset | ||
| ) |
Definition at line 131 of file mft.c.
Referenced by AddFilenameToDirectoryWorker(), AddNewMftEntry(), AllocateIndexNode(), BrowseIndexEntries(), CreateBTreeFromIndex(), tinyxml2::XMLElement::FindAttribute(), FindAttribute(), FreeMftEntry(), IncreaseMftSize(), NtfsCreateFile(), NtfsDeleteFileRecord(), NtfsDirFindFile(), NtfsFindMftRecord(), NtfsGetFileSize(), NtfsGetVolumeData(), NtfsGrowFileForWrite(), NtfsIsDirectoryEmpty(), NtfsLoadVolumeBitmap(), NtfsReadFCBAttribute(), NtfsReadFile(), NtfsReadUpCaseTable(), NtfsResizeAllocation(), NtfsSetEndOfFile(), NtfsTrimAllocation(), NtfsWriteFile(), tinyxml2::XMLElement::QueryBoolAttribute(), tinyxml2::XMLElement::QueryDoubleAttribute(), tinyxml2::XMLElement::QueryFloatAttribute(), tinyxml2::XMLElement::QueryIntAttribute(), tinyxml2::XMLElement::QueryUnsignedAttribute(), RemoveFilenameFromDirectoryWorker(), UpdateFileNameRecordWorker(), UpdateIndexAllocation(), UpdateIndexEntryFileName(), UpdateMftMirror(), and WriteAttributeFromIrp().
| VOID FindCloseAttribute | ( | PFIND_ATTR_CONTXT | Context | ) |
Definition at line 1495 of file attrib.c.
Referenced by FindAttribute(), GetFileNameFromRecord(), GetNfsVolumeData(), GetStandardInformationFromRecord(), NtfsDumpFileAttributes(), NtfsGetStreamInformation(), NtfsReadFile(), and NtfsWriteFile().
| NTSTATUS FindFirstAttribute | ( | PFIND_ATTR_CONTXT | Context, |
| PDEVICE_EXTENSION | Vcb, | ||
| PFILE_RECORD_HEADER | FileRecord, | ||
| BOOLEAN | OnlyResident, | ||
| PNTFS_ATTR_RECORD * | Attribute | ||
| ) |
Definition at line 1413 of file attrib.c.
Referenced by FindAttribute(), GetFileNameFromRecord(), GetNfsVolumeData(), GetStandardInformationFromRecord(), NtfsDumpFileAttributes(), NtfsGetStreamInformation(), NtfsReadFile(), and NtfsWriteFile().
| NTSTATUS FindFirstAttributeListItem | ( | PFIND_ATTR_CONTXT | Context, |
| PNTFS_ATTRIBUTE_LIST_ITEM * | Item | ||
| ) |
Definition at line 1337 of file attrib.c.
Referenced by FindAttribute().
| NTSTATUS FindNextAttribute | ( | PFIND_ATTR_CONTXT | Context, |
| PNTFS_ATTR_RECORD * | Attribute | ||
| ) |
Definition at line 1461 of file attrib.c.
Referenced by FindAttribute(), GetFileNameFromRecord(), GetNfsVolumeData(), GetStandardInformationFromRecord(), NtfsDumpFileAttributes(), NtfsGetStreamInformation(), NtfsReadFile(), and NtfsWriteFile().
| NTSTATUS FindNextAttributeListItem | ( | PFIND_ATTR_CONTXT | Context, |
| PNTFS_ATTRIBUTE_LIST_ITEM * | Item | ||
| ) |
Definition at line 1351 of file attrib.c.
Referenced by FindAttribute().
| NTSTATUS FixupUpdateSequenceArray | ( | PDEVICE_EXTENSION | Vcb, |
| PNTFS_RECORD_HEADER | Record | ||
| ) |
Definition at line 2425 of file mft.c.
Referenced by BrowseSubNodeIndexEntries(), CreateBTreeNodeFromIndexNode(), NtfsIndexNodeIsEmpty(), PrintAllVCNs(), ReadFileRecord(), UpdateFileRecord(), and UpdateIndexEntryFileName().
| NTSTATUS FreeClusters | ( | PNTFS_VCB | Vcb, |
| PNTFS_ATTR_CONTEXT | AttrContext, | ||
| ULONG | AttrOffset, | ||
| PFILE_RECORD_HEADER | FileRecord, | ||
| ULONG | ClustersToFree | ||
| ) |
Definition at line 1101 of file attrib.c.
Referenced by FatExamineFatEntries(), GetDiskFreeSpaceW(), HandleNotify(), NtfsDeleteFileRecord(), NtfsGetFreeClusters(), NtfsResizeAllocation(), NtfsTrimAllocation(), and SetNonResidentAttributeDataLength().
| NTSTATUS FreeMftEntry | ( | PDEVICE_EXTENSION | DeviceExt, |
| ULONGLONG | MftIndex | ||
| ) |
Definition at line 3336 of file mft.c.
Referenced by NtfsDeleteFileRecord().
| ULONGLONG GetAllocationOffsetFromVCN | ( | PDEVICE_EXTENSION | DeviceExt, |
| ULONG | IndexBufferSize, | ||
| ULONGLONG | Vcn | ||
| ) |
Definition at line 1637 of file btree.c.
Referenced by BrowseSubNodeIndexEntries(), CreateBTreeNodeFromIndexNode(), NtfsIndexNodeIsEmpty(), and UpdateIndexNode().
| PFILENAME_ATTRIBUTE GetBestFileNameFromRecord | ( | PDEVICE_EXTENSION | Vcb, |
| PFILE_RECORD_HEADER | FileRecord | ||
| ) |
Definition at line 2015 of file attrib.c.
Referenced by NtfsGetBothDirectoryInformation(), NtfsGetDirectoryInformation(), NtfsGetFullDirectoryInformation(), NtfsGetNamesInformation(), NtfsGetParentMftIndex(), NtfsMakeFCBFromDirEntry(), NtfsMoonWalkID(), NtfsSetEndOfFile(), and NtfsUpdateDuplicatedInformation().
| ULONG GetFileNameAttributeLength | ( | PFILENAME_ATTRIBUTE | FileNameAttribute | ) |
Definition at line 2008 of file attrib.c.
Referenced by CreateBTreeKeyFromFilename(), and ReplaceKeyIndexEntry().
| PFILENAME_ATTRIBUTE GetFileNameFromRecord | ( | PDEVICE_EXTENSION | Vcb, |
| PFILE_RECORD_HEADER | FileRecord, | ||
| UCHAR | NameType | ||
| ) |
Definition at line 1839 of file attrib.c.
Referenced by GetBestFileNameFromRecord(), NtfsGetBothDirectoryInformation(), and NtfsMakeRootFCB().
| ULONGLONG GetIndexEntryVCN | ( | PINDEX_ENTRY_ATTRIBUTE | IndexEntry | ) |
Definition at line 1648 of file btree.c.
Referenced by BrowseIndexEntries(), BrowseSubNodeIndexEntries(), NtfsIndexEntriesAreEmpty(), and SplitBTreeNode().
| NTSTATUS GetLastClusterInDataRun | ( | PDEVICE_EXTENSION | Vcb, |
| PNTFS_ATTR_RECORD | Attribute, | ||
| PULONGLONG | LastCluster | ||
| ) |
Definition at line 1938 of file attrib.c.
GetPackedByteCount Returns the minimum number of bytes needed to represent the value of a 64-bit number. Used to encode data runs.
Definition at line 1876 of file attrib.c.
Referenced by ConvertLargeMCBToDataRuns().
| ULONG GetSizeOfIndexEntries | ( | PB_TREE_FILENAME_NODE | Node | ) |
Definition at line 860 of file btree.c.
Referenced by AddFilenameToDirectoryWorker(), and NtfsInsertKey().
| PSTANDARD_INFORMATION GetStandardInformationFromRecord | ( | PDEVICE_EXTENSION | Vcb, |
| PFILE_RECORD_HEADER | FileRecord | ||
| ) |
Definition at line 1970 of file attrib.c.
Referenced by NtfsGetBothDirectoryInformation(), NtfsGetDirectoryInformation(), NtfsGetFullDirectoryInformation(), NtfsMakeFCBFromDirEntry(), NtfsSetBasicInformation(), and NtfsUpdateDuplicatedInformation().
| NTSTATUS InternalSetResidentAttributeLength | ( | PDEVICE_EXTENSION | DeviceExt, |
| PNTFS_ATTR_CONTEXT | AttrContext, | ||
| PFILE_RECORD_HEADER | FileRecord, | ||
| ULONG | AttrOffset, | ||
| ULONG | DataSize | ||
| ) |
Definition at line 542 of file mft.c.
Referenced by AddFilenameToDirectoryWorker(), RemoveFilenameFromDirectoryWorker(), and SetResidentAttributeDataLength().
| PNTFS_ATTR_RECORD MoveAttributes | ( | PDEVICE_EXTENSION | DeviceExt, |
| PNTFS_ATTR_RECORD | FirstAttributeToMove, | ||
| ULONG | FirstAttributeOffset, | ||
| ULONG_PTR | MoveTo | ||
| ) |
Definition at line 512 of file mft.c.
Referenced by AddRun(), and InternalSetResidentAttributeLength().
Definition at line 250 of file fcb.c.
Referenced by NtfsMakeFCBFromDirEntry(), and NtfsMakeRootFCB().
| NTSTATUS NtfsAddFilenameToDirectory | ( | PDEVICE_EXTENSION | DeviceExt, |
| ULONGLONG | DirectoryMftIndex, | ||
| ULONGLONG | FileReferenceNumber, | ||
| PFILENAME_ATTRIBUTE | FilenameAttribute, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Definition at line 3049 of file mft.c.
Referenced by NtfsCommitRename(), NtfsCreateDirectory(), NtfsCreateFileRecord(), and NtfsRelinkFileNames().
Definition at line 74 of file blockdev.c.
Referenced by NtfsMapAttributeRuns(), NtfsReadDisk(), NtfsReadWriteVolume(), and NtfsWriteDisk().
| NTSTATUS NtfsAllocateClusters | ( | PDEVICE_EXTENSION | DeviceExt, |
| ULONG | FirstDesiredCluster, | ||
| ULONG | DesiredClusters, | ||
| PULONG | FirstAssignedCluster, | ||
| PULONG | AssignedClusters | ||
| ) |
NtfsAllocateClusters Allocates a run of clusters. The run allocated might be smaller than DesiredClusters.
Definition at line 213 of file volinfo.c.
Referenced by NtfsExtendAllocation().
| PNTFS_IRP_CONTEXT NtfsAllocateIrpContext | ( | PDEVICE_OBJECT | DeviceObject, |
| PIRP | Irp | ||
| ) |
Definition at line 66 of file misc.c.
Referenced by NtfsFsdDispatch().
| NTSTATUS NtfsAttachFCBToFileObject | ( | PNTFS_VCB | Vcb, |
| PNTFS_FCB | Fcb, | ||
| PFILE_OBJECT | FileObject | ||
| ) |
Definition at line 533 of file fcb.c.
Referenced by NtfsCreateFile(), NtfsOpenFile(), NtfsOpenFileById(), and NtfsOpenTargetDirectory().
| NTSTATUS NtfsCleanup | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 171 of file cleanup.c.
Referenced by NtfsDispatch().
| NTSTATUS NtfsClose | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 87 of file close.c.
| NTSTATUS NtfsCloseFile | ( | PDEVICE_EXTENSION | DeviceExt, |
| PFILE_OBJECT | FileObject | ||
| ) |
Definition at line 40 of file close.c.
Referenced by NtfsClose(), and NtfsCreateFile().
| NTSTATUS NtfsCreate | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 824 of file create.c.
Referenced by NtfsDispatch().
| NTSTATUS NtfsCreateDirectory | ( | PDEVICE_EXTENSION | DeviceExt, |
| PFILE_OBJECT | FileObject, | ||
| BOOLEAN | CaseSensitive, | ||
| BOOLEAN | CanWait | ||
| ) |
Definition at line 883 of file create.c.
Referenced by NtfsCreateFile().
| PFILE_RECORD_HEADER NtfsCreateEmptyFileRecord | ( | PDEVICE_EXTENSION | DeviceExt | ) |
Definition at line 1026 of file create.c.
Referenced by IncreaseMftSize(), NtfsCreateDirectory(), and NtfsCreateFileRecord().
Definition at line 67 of file fcb.c.
Referenced by NtfsGetVolumeData(), NtfsMakeFCBFromDirEntry(), NtfsMakeRootFCB(), and NtfsMountVolume().
| NTSTATUS NtfsCreateFileRecord | ( | PDEVICE_EXTENSION | DeviceExt, |
| PFILE_OBJECT | FileObject, | ||
| BOOLEAN | CaseSensitive, | ||
| BOOLEAN | CanWait | ||
| ) |
Definition at line 1094 of file create.c.
Referenced by NtfsCreateFile().
| NTSTATUS NtfsDeleteFileRecord | ( | PDEVICE_EXTENSION | DeviceExt, |
| ULONGLONG | MftIndex, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Definition at line 3470 of file mft.c.
Referenced by NtfsCleanupFile(), and NtfsClearRenameTarget().
Definition at line 126 of file fcb.c.
Referenced by NtfsReleaseFCB().
| NTSTATUS NtfsDeviceControl | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 36 of file devctl.c.
Referenced by NtfsDispatch().
| NTSTATUS NtfsDeviceIoControl | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN ULONG | ControlCode, | ||
| IN PVOID | InputBuffer, | ||
| IN ULONG | InputBufferSize, | ||
| IN OUT PVOID | OutputBuffer, | ||
| IN OUT PULONG | OutputBufferSize, | ||
| IN BOOLEAN | Override | ||
| ) |
Definition at line 1029 of file blockdev.c.
Referenced by NtfsGetVolumeData(), and NtfsHasFileSystem().
| NTSTATUS NtfsDirectoryControl | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 793 of file dirctl.c.
Referenced by NtfsDispatch().
Definition at line 4305 of file mft.c.
Definition at line 1785 of file attrib.c.
Referenced by AddRun(), FreeClusters(), and NtfsDumpDataRuns().
| VOID NtfsDumpFileAttributes | ( | PDEVICE_EXTENSION | Vcb, |
| PFILE_RECORD_HEADER | FileRecord | ||
| ) |
Definition at line 1820 of file attrib.c.
Referenced by IncreaseMftSize(), NtfsDumpFileRecord(), NtfsGetBothDirectoryInformation(), NtfsGetDirectoryInformation(), NtfsGetFullDirectoryInformation(), NtfsGetNamesInformation(), and NtfsGetVolumeData().
| VOID NtfsDumpFileRecord | ( | PDEVICE_EXTENSION | Vcb, |
| PFILE_RECORD_HEADER | FileRecord | ||
| ) |
Definition at line 4342 of file mft.c.
Referenced by AddFilenameToDirectoryWorker(), NtfsCreateDirectory(), and NtfsCreateFileRecord().
| NTSTATUS NtfsExtendAllocation | ( | _In_ PDEVICE_EXTENSION | Vcb, |
| _In_ PNTFS_ATTR_CONTEXT | AttrContext, | ||
| _In_ ULONG | AttrOffset, | ||
| _In_ PFILE_RECORD_HEADER | FileRecord, | ||
| _In_ ULONGLONG | AllocationSize | ||
| ) |
Definition at line 753 of file mft.c.
Referenced by NtfsGrowStream(), NtfsResizeAllocation(), and SetNonResidentAttributeDataLength().
Definition at line 334 of file fcb.c.
Referenced by NtfsMakeFCBFromDirEntry(), and NtfsMakeRootFCB().
Definition at line 173 of file fcb.c.
Referenced by NtfsCachedRead(), NtfsCachedWrite(), NtfsFastIoCheckIfPossible(), NtfsQueryDirectory(), NtfsReadFile(), and NtfsWriteFile().
Definition at line 144 of file fcb.c.
Referenced by NtfsAttachFCBToFileObject(), NtfsBuildRenamePath(), NtfsCleanupFile(), NtfsCreateFile(), NtfsGetFCBForFile(), NtfsGetStandardInformation(), NtfsIsRegularFileObject(), NtfsMakeAbsoluteFilename(), NtfsOpenTargetDirectory(), NtfsRead(), NtfsReleaseFCB(), NtfsSetAllocationInformation(), NtfsSetDispositionInformation(), and NtfsWrite().
Definition at line 179 of file fcb.c.
Referenced by NtfsCachedRead(), NtfsFastIoCheckIfPossible(), and NtfsReadFile().
Definition at line 185 of file fcb.c.
Referenced by NtfsBuildRenamePath(), NtfsMakeAbsoluteFilename(), NtfsMakeFCBFromDirEntry(), NtfsSetDispositionInformation(), and NtfsSetRenameInformation().
Definition at line 105 of file misc.c.
Referenced by NtfsGetAttributeTagInformation(), NtfsGetBasicInformation(), NtfsGetBothDirectoryInformation(), NtfsGetDirectoryInformation(), NtfsGetFullDirectoryInformation(), and NtfsGetNetworkOpenInformation().
| NTSTATUS NtfsFileSystemControl | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 1045 of file fsctl.c.
Referenced by NtfsDispatch().
| NTSTATUS NtfsFindFileAt | ( | PDEVICE_EXTENSION | Vcb, |
| PUNICODE_STRING | SearchPattern, | ||
| PULONG | FirstEntry, | ||
| PFILE_RECORD_HEADER * | FileRecord, | ||
| PULONGLONG | MFTIndex, | ||
| ULONGLONG | CurrentMFTIndex, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Definition at line 4363 of file mft.c.
Referenced by NtfsQueryDirectory().
| NTSTATUS NtfsFindMftRecord | ( | PDEVICE_EXTENSION | Vcb, |
| ULONGLONG | MFTIndex, | ||
| PUNICODE_STRING | FileName, | ||
| PULONG | FirstEntry, | ||
| BOOLEAN | DirSearch, | ||
| BOOLEAN | CaseSensitive, | ||
| ULONGLONG * | OutMFTIndex | ||
| ) |
Definition at line 4151 of file mft.c.
Referenced by NtfsFindFileAt(), and NtfsLookupFileAt().
| NTSTATUS NtfsFlushBuffers | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 107 of file flush.c.
Referenced by NtfsDispatch().
| NTSTATUS NtfsFlushDevice | ( | IN PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 964 of file blockdev.c.
Referenced by NtfsFlushBuffers().
| VOID NtfsFreeIoRunList | ( | IN OUT PNTFS_IO_RUN_LIST | RunList | ) |
Definition at line 140 of file blockdev.c.
Referenced by NtfsReadDisk(), NtfsReadWriteVolume(), NtfsWriteDisk(), ReadAttributeToIrp(), and WriteAttributeFromIrp().
| VOID NtfsFreeVolumeBitmap | ( | _In_ PDEVICE_EXTENSION | DeviceExt | ) |
Definition at line 132 of file volinfo.c.
Referenced by NtfsLoadVolumeBitmap().
| NTSTATUS NTAPI NtfsFsdDispatch | ( | PDEVICE_OBJECT | DeviceObject, |
| PIRP | Irp | ||
| ) |
Definition at line 197 of file dispatch.c.
| NTSTATUS NtfsGetFCBForFile | ( | PNTFS_VCB | Vcb, |
| PNTFS_FCB * | pParentFCB, | ||
| PNTFS_FCB * | pFCB, | ||
| PCWSTR | pFileName, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Definition at line 674 of file fcb.c.
Referenced by NtfsOpenFile(), and NtfsOpenTargetDirectory().
| ULONGLONG NtfsGetFileSize | ( | PDEVICE_EXTENSION | DeviceExt, |
| PFILE_RECORD_HEADER | FileRecord, | ||
| PCWSTR | Stream, | ||
| ULONG | StreamLength, | ||
| PULONGLONG | AllocatedSize | ||
| ) |
Definition at line 38 of file dirctl.c.
Referenced by NtfsGetBothDirectoryInformation(), NtfsGetDirectoryInformation(), NtfsGetFullDirectoryInformation(), NtfsMakeFCBFromDirEntry(), NtfsSetEndOfFile(), and NtfsUpdateDuplicatedInformation().
| ULONGLONG NtfsGetFreeClusters | ( | PDEVICE_EXTENSION | DeviceExt | ) |
Definition at line 193 of file volinfo.c.
Referenced by GetNfsVolumeData(), and NtfsGetFsSizeInformation().
Definition at line 120 of file misc.c.
Referenced by GetVolumeBitmap(), NtfsQueryDirectory(), NtfsRead(), and NtfsWrite().
Definition at line 192 of file fcb.c.
Referenced by NtfsMakeRootFCB().
Definition at line 291 of file fcb.c.
Referenced by NtfsClearRenameTarget(), NtfsGetFCBForFile(), NtfsOpenFile(), NtfsOpenFileById(), NtfsOpenRootFCB(), and NtfsOpenTargetDirectory().
| VOID NTAPI NtfsInitializeFunctionPointers | ( | PDRIVER_OBJECT | DriverObject | ) |
Definition at line 170 of file ntfs.c.
Referenced by DriverEntry().
| VOID NtfsInitIoRunList | ( | OUT PNTFS_IO_RUN_LIST | RunList | ) |
Definition at line 40 of file blockdev.c.
Referenced by NtfsReadDisk(), NtfsReadWriteVolume(), NtfsWriteDisk(), ReadAttributeToIrp(), and WriteAttributeFromIrp().
| NTSTATUS NtfsInsertKey | ( | PB_TREE | Tree, |
| ULONGLONG | FileReference, | ||
| PFILENAME_ATTRIBUTE | FileNameAttribute, | ||
| PB_TREE_FILENAME_NODE | Node, | ||
| BOOLEAN | CaseSensitive, | ||
| ULONG | MaxIndexRootSize, | ||
| ULONG | IndexRecordSize, | ||
| PB_TREE_KEY * | MedianKey, | ||
| PB_TREE_FILENAME_NODE * | NewRightHandSibling | ||
| ) |
Definition at line 1698 of file btree.c.
Referenced by AddFilenameToDirectoryWorker(), and NtfsInsertKey().
| NTSTATUS NtfsIsDirectoryEmpty | ( | _In_ PDEVICE_EXTENSION | Vcb, |
| _In_ ULONGLONG | MftIndex, | ||
| _Out_ PBOOLEAN | Empty | ||
| ) |
Definition at line 4554 of file mft.c.
Referenced by NtfsCleanupFile(), and NtfsSetDispositionInformation().
Definition at line 43 of file misc.c.
Referenced by NtfsDispatch().
| BOOLEAN NTAPI NtfsIsRegularFileObject | ( | _In_ PFILE_OBJECT | FileObject | ) |
Definition at line 153 of file fcb.c.
Referenced by NtfsCleanup(), NtfsFastIoCheckIfPossible(), NtfsFastIoRead(), NtfsFastIoWrite(), NtfsFlushBuffers(), NtfsLockControl(), NtfsRead(), and NtfsWrite().
| NTSTATUS NtfsLoadUpCaseTable | ( | PDEVICE_EXTENSION | Vcb | ) |
| NTSTATUS NtfsLoadVolumeBitmap | ( | _In_ PDEVICE_EXTENSION | DeviceExt | ) |
Definition at line 49 of file volinfo.c.
| NTSTATUS NTAPI NtfsLockControl | ( | _In_ PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 19 of file lockctrl.c.
Referenced by NtfsDispatch().
Definition at line 158 of file misc.c.
Referenced by NtfsCachedRead(), and NtfsWrite().
| NTSTATUS NtfsLookupFile | ( | PDEVICE_EXTENSION | Vcb, |
| PUNICODE_STRING | PathName, | ||
| BOOLEAN | CaseSensitive, | ||
| PFILE_RECORD_HEADER * | FileRecord, | ||
| PULONGLONG | MFTIndex | ||
| ) |
Definition at line 4295 of file mft.c.
| NTSTATUS NtfsLookupFileAt | ( | PDEVICE_EXTENSION | Vcb, |
| PUNICODE_STRING | PathName, | ||
| BOOLEAN | CaseSensitive, | ||
| PFILE_RECORD_HEADER * | FileRecord, | ||
| PULONGLONG | MFTIndex, | ||
| ULONGLONG | CurrentMFTIndex | ||
| ) |
Definition at line 4236 of file mft.c.
Referenced by NtfsDirFindFile(), and NtfsLookupFile().
| NTSTATUS NtfsMakeFCBFromDirEntry | ( | PNTFS_VCB | Vcb, |
| PNTFS_FCB | DirectoryFCB, | ||
| PUNICODE_STRING | Name, | ||
| PCWSTR | Stream, | ||
| PFILE_RECORD_HEADER | Record, | ||
| ULONGLONG | MFTIndex, | ||
| PNTFS_FCB * | fileFCB | ||
| ) |
Definition at line 458 of file fcb.c.
Referenced by NtfsDirFindFile(), and NtfsOpenFileById().
Definition at line 388 of file fcb.c.
Referenced by NtfsOpenRootFCB().
| FORCEINLINE NTSTATUS NtfsMarkIrpContextForQueue | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 652 of file ntfs.h.
Referenced by NtfsCachedRead(), NtfsCleanup(), NtfsClose(), NtfsCreate(), NtfsDirectoryControl(), NtfsFlushBuffers(), NtfsQueryInformation(), NtfsQueryVolumeInformation(), NtfsSetInformation(), and NtfsWrite().
Definition at line 443 of file fcb.c.
Referenced by NtfsGetFCBForFile().
| NTSTATUS NtfsPerformIoRuns | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN UCHAR | MajorFunction, | ||
| IN ULONG | SectorSize, | ||
| IN OUT PUCHAR | Buffer, | ||
| IN PNTFS_IO_RUN_LIST | RunList, | ||
| IN BOOLEAN | Override, | ||
| OUT PULONG BytesTransferred | OPTIONAL | ||
| ) |
Definition at line 788 of file blockdev.c.
Referenced by NtfsReadDisk(), and NtfsWriteDisk().
| NTSTATUS NtfsPerformIrpIoRuns | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN UCHAR | MajorFunction, | ||
| IN ULONG | SectorSize, | ||
| IN PIRP | Irp, | ||
| IN OUT PUCHAR | Buffer, | ||
| IN PNTFS_IO_RUN_LIST | RunList, | ||
| IN BOOLEAN | Override, | ||
| OUT PULONG | BytesTransferred | ||
| ) |
Definition at line 743 of file blockdev.c.
Referenced by NtfsReadWriteVolume(), ReadAttributeToIrp(), and WriteAttributeFromIrp().
| NTSTATUS NtfsQueryInformation | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 470 of file finfo.c.
Referenced by NtfsDispatch().
| NTSTATUS NtfsQueryVolumeInformation | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 430 of file volinfo.c.
Referenced by NtfsDispatch().
| NTSTATUS NtfsRead | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 396 of file rw.c.
| NTSTATUS NtfsReadDisk | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN LONGLONG | StartingOffset, | ||
| IN ULONG | Length, | ||
| IN ULONG | SectorSize, | ||
| IN OUT PUCHAR | Buffer, | ||
| IN BOOLEAN | Override | ||
| ) |
Definition at line 836 of file blockdev.c.
Referenced by NtfsPerformIoRunsInternal(), and NtfsReadSectors().
| NTSTATUS NtfsReadFCBAttribute | ( | PNTFS_VCB | Vcb, |
| PNTFS_FCB | pFCB, | ||
| ULONG | Type, | ||
| PCWSTR | Name, | ||
| ULONG | NameLength, | ||
| PVOID * | Data | ||
| ) |
Definition at line 806 of file fcb.c.
Referenced by NtfsCreateFile().
| NTSTATUS NtfsReadSectors | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN ULONG | DiskSector, | ||
| IN ULONG | SectorCount, | ||
| IN ULONG | SectorSize, | ||
| IN OUT PUCHAR | Buffer, | ||
| IN BOOLEAN | Override | ||
| ) |
Definition at line 1011 of file blockdev.c.
Referenced by NtfsGetVolumeData(), NtfsHasFileSystem(), and ReadLCN().
Definition at line 209 of file fcb.c.
Referenced by NtfsClearRenameTarget(), NtfsCloseFile(), NtfsFlushVolumeFiles(), NtfsGetFCBForFile(), NtfsOpenFile(), and NtfsOpenTargetDirectory().
Definition at line 270 of file fcb.c.
Referenced by NtfsCleanupFile().
| NTSTATUS NtfsRemoveFilenameFromDirectory | ( | PDEVICE_EXTENSION | DeviceExt, |
| ULONGLONG | DirectoryMftIndex, | ||
| PFILENAME_ATTRIBUTE | FilenameAttribute, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Definition at line 3297 of file mft.c.
Referenced by NtfsDeleteFileRecord(), and NtfsUnlinkFileNames().
| NTSTATUS NtfsRemoveKey | ( | PB_TREE_FILENAME_NODE | Node, |
| PB_TREE_KEY | SearchKey, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Definition at line 2067 of file btree.c.
Referenced by NtfsRemoveKey(), and RemoveFilenameFromDirectoryWorker().
| NTSTATUS NtfsResizeAllocation | ( | _In_ PNTFS_FCB | Fcb, |
| _In_ PFILE_OBJECT | FileObject, | ||
| _In_ BOOLEAN | CaseSensitive, | ||
| _In_ ULONGLONG | AllocationSize | ||
| ) |
Definition at line 924 of file mft.c.
Referenced by NtfsSetAllocationInformation().
| NTSTATUS NtfsSetEndOfFile | ( | PNTFS_FCB | Fcb, |
| PFILE_OBJECT | FileObject, | ||
| PDEVICE_EXTENSION | DeviceExt, | ||
| ULONG | IrpFlags, | ||
| BOOLEAN | CaseSensitive, | ||
| PLARGE_INTEGER | NewFileSize | ||
| ) |
Definition at line 625 of file finfo.c.
Referenced by NtfsSetAllocationInformation(), and NtfsSetInformation().
| NTSTATUS NtfsSetInformation | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 1748 of file finfo.c.
Referenced by NtfsDispatch().
| NTSTATUS NtfsSetVolumeInformation | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 507 of file volinfo.c.
Referenced by NtfsDispatch().
Definition at line 842 of file mft.c.
Referenced by NtfsCleanupFile().
| NTSTATUS NtfsUpdateDuplicatedInformation | ( | PDEVICE_EXTENSION | Vcb, |
| PFILE_RECORD_HEADER | FileRecord, | ||
| ULONGLONG | MFTIndex, | ||
| ULONG | Flags, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Definition at line 1995 of file mft.c.
Referenced by NtfsGrowStream(), NtfsResizeAllocation(), NtfsSetBasicInformation(), and NtfsSetEndOfFile().
| NTSTATUS NtfsWrite | ( | PNTFS_IRP_CONTEXT | IrpContext | ) |
Definition at line 965 of file rw.c.
Referenced by NtfsDispatch().
| NTSTATUS NtfsWriteDisk | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN LONGLONG | StartingOffset, | ||
| IN ULONG | Length, | ||
| IN ULONG | SectorSize, | ||
| IN const PUCHAR | Buffer | ||
| ) |
Definition at line 907 of file blockdev.c.
| NTSTATUS NtfsWriteVolumeBitmap | ( | _In_ PDEVICE_EXTENSION | DeviceExt, |
| _In_ ULONG | FirstCluster, | ||
| _In_ ULONG | ClusterCount | ||
| ) |
Definition at line 167 of file volinfo.c.
Referenced by FreeClusters(), and NtfsAllocateClusters().
| PNTFS_ATTR_CONTEXT PrepareAttributeContext | ( | PNTFS_ATTR_RECORD | AttrRecord | ) |
Definition at line 41 of file mft.c.
Referenced by FindAttribute(), and InternalReadNonResidentAttributes().
| ULONG ReadAttribute | ( | PDEVICE_EXTENSION | Vcb, |
| PNTFS_ATTR_CONTEXT | Context, | ||
| ULONGLONG | Offset, | ||
| PCHAR | Buffer, | ||
| ULONG | Length | ||
| ) |
Definition at line 1625 of file mft.c.
Referenced by AddFilenameToDirectoryWorker(), AddNewMftEntry(), AllocateIndexNode(), BrowseIndexEntries(), BrowseSubNodeIndexEntries(), CreateBTreeNodeFromIndexNode(), FreeMftEntry(), IncreaseMftSize(), InternalReadNonResidentAttributes(), NtfsFindMftRecord(), NtfsIndexNodeIsEmpty(), NtfsIsDirectoryEmpty(), NtfsLoadVolumeBitmap(), NtfsReadFCBAttribute(), NtfsReadUpCaseTable(), PrintAllVCNs(), ReadFileRecord(), RemoveFilenameFromDirectoryWorker(), SetResidentAttributeDataLength(), UpdateFileNameRecordWorker(), UpdateIndexEntryFileName(), and UpdateMftMirror().
| ULONG ReadAttributeToIrp | ( | PDEVICE_EXTENSION | Vcb, |
| PNTFS_ATTR_CONTEXT | Context, | ||
| ULONGLONG | Offset, | ||
| PCHAR | Buffer, | ||
| ULONG | Length, | ||
| PIRP | Irp | ||
| ) |
Definition at line 1556 of file mft.c.
Referenced by NtfsReadFile(), and ReadAttribute().
| NTSTATUS ReadFileRecord | ( | PDEVICE_EXTENSION | Vcb, |
| ULONGLONG | index, | ||
| PFILE_RECORD_HEADER | file | ||
| ) |
Definition at line 1936 of file mft.c.
Referenced by AddFilenameToDirectoryWorker(), FindAttribute(), FreeMftEntry(), GetNtfsFileRecord(), NtfsBuildRenamedFileName(), NtfsClearRenameTarget(), NtfsCreateFile(), NtfsDeleteFileRecord(), NtfsFindFileAt(), NtfsFindMftRecord(), NtfsGetDotEntry(), NtfsGetParentMftIndex(), NtfsGetStreamInformation(), NtfsGetVolumeData(), NtfsGrowFileForWrite(), NtfsIsDirectoryEmpty(), NtfsLoadVolumeBitmap(), NtfsLookupFileAt(), NtfsMakeRootFCB(), NtfsMoonWalkID(), NtfsOpenFileById(), NtfsReadFCBAttribute(), NtfsReadFile(), NtfsReadUpCaseTable(), NtfsResizeAllocation(), NtfsSetBasicInformation(), NtfsSetEndOfFile(), NtfsSetRenameInformation(), NtfsTrimAllocation(), NtfsWriteFile(), RemoveFilenameFromDirectoryWorker(), UpdateFileNameRecordWorker(), UpdateMftMirror(), and WriteAttributeFromIrp().
| NTSTATUS ReadLCN | ( | PDEVICE_EXTENSION | Vcb, |
| ULONGLONG | lcn, | ||
| ULONG | count, | ||
| PVOID | buffer | ||
| ) |
Definition at line 3603 of file mft.c.
| VOID ReadVCN | ( | PDEVICE_EXTENSION | Vcb, |
| PFILE_RECORD_HEADER | file, | ||
| ATTRIBUTE_TYPE | type, | ||
| ULONGLONG | vcn, | ||
| ULONG | count, | ||
| PVOID | buffer | ||
| ) |
| VOID ReleaseAttributeContext | ( | PNTFS_ATTR_CONTEXT | Context | ) |
Definition at line 104 of file mft.c.
Referenced by AddFilenameToDirectoryWorker(), AddNewMftEntry(), AllocateIndexNode(), BrowseIndexEntries(), CreateBTreeFromIndex(), FreeMftEntry(), IncreaseMftSize(), InternalReadNonResidentAttributes(), NtfsCreateFile(), NtfsDeleteFileRecord(), NtfsDirFindFile(), NtfsFindMftRecord(), NtfsFreeVolumeBitmap(), NtfsGetFileSize(), NtfsGetVolumeData(), NtfsGrowFileForWrite(), NtfsIsDirectoryEmpty(), NtfsReadFCBAttribute(), NtfsReadFile(), NtfsReadUpCaseTable(), NtfsResizeAllocation(), NtfsSetEndOfFile(), NtfsTrimAllocation(), NtfsWriteFile(), RemoveFilenameFromDirectoryWorker(), UpdateFileNameRecordWorker(), UpdateIndexAllocation(), UpdateIndexEntryFileName(), UpdateMftMirror(), and WriteAttributeFromIrp().
| NTSTATUS SetAttributeDataLength | ( | PFILE_OBJECT | FileObject, |
| PNTFS_FCB | Fcb, | ||
| PNTFS_ATTR_CONTEXT | AttrContext, | ||
| ULONG | AttrOffset, | ||
| PFILE_RECORD_HEADER | FileRecord, | ||
| PLARGE_INTEGER | DataSize | ||
| ) |
@parameter FileRecord Pointer to a file record. Must be a full record at least Fcb->Vcb->NtfsInfo.BytesPerFileRecord bytes large, not just the header.
Definition at line 615 of file mft.c.
Referenced by NtfsCreateFile(), NtfsGrowStream(), and NtfsSetEndOfFile().
| VOID SetFileRecordEnd | ( | PFILE_RECORD_HEADER | FileRecord, |
| PNTFS_ATTR_RECORD | AttrEnd, | ||
| ULONG | EndMarker | ||
| ) |
Definition at line 706 of file mft.c.
Referenced by AddBitmap(), AddData(), AddFileName(), AddIndexAllocation(), AddIndexRoot(), AddRun(), AddStandardInformation(), FreeClusters(), InternalSetResidentAttributeLength(), NtfsSetFileNameAttribute(), and SetResidentAttributeDataLength().
| NTSTATUS SetNonResidentAttributeDataLength | ( | PDEVICE_EXTENSION | Vcb, |
| PNTFS_ATTR_CONTEXT | AttrContext, | ||
| ULONG | AttrOffset, | ||
| PFILE_RECORD_HEADER | FileRecord, | ||
| PLARGE_INTEGER | DataSize | ||
| ) |
Definition at line 1065 of file mft.c.
Referenced by AllocateIndexNode(), IncreaseMftSize(), SetAttributeDataLength(), and SetResidentAttributeDataLength().
| NTSTATUS SetResidentAttributeDataLength | ( | PDEVICE_EXTENSION | Vcb, |
| PNTFS_ATTR_CONTEXT | AttrContext, | ||
| ULONG | AttrOffset, | ||
| PFILE_RECORD_HEADER | FileRecord, | ||
| PLARGE_INTEGER | DataSize | ||
| ) |
Definition at line 1148 of file mft.c.
Referenced by AllocateIndexNode(), IncreaseMftSize(), and SetAttributeDataLength().
| NTSTATUS SplitBTreeNode | ( | PB_TREE | Tree, |
| PB_TREE_FILENAME_NODE | Node, | ||
| PB_TREE_KEY * | MedianKey, | ||
| PB_TREE_FILENAME_NODE * | NewRightHandSibling, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Definition at line 2138 of file btree.c.
Referenced by NtfsInsertKey().
| NTSTATUS UpdateFileNameRecord | ( | PDEVICE_EXTENSION | Vcb, |
| ULONGLONG | ParentMFTIndex, | ||
| PUNICODE_STRING | FileName, | ||
| BOOLEAN | DirSearch, | ||
| PNTFS_FILENAME_UPDATE | Update, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Definition at line 2191 of file mft.c.
Referenced by NtfsUpdateDuplicatedInformation().
| NTSTATUS UpdateFileRecord | ( | PDEVICE_EXTENSION | Vcb, |
| ULONGLONG | MftIndex, | ||
| PFILE_RECORD_HEADER | FileRecord | ||
| ) |
Definition at line 2391 of file mft.c.
Referenced by AddFilenameToDirectoryWorker(), AddNewMftEntry(), AddRun(), AllocateIndexNode(), FreeClusters(), FreeMftEntry(), IncreaseMftSize(), NtfsCommitRename(), NtfsResizeAllocation(), NtfsTrimAllocation(), NtfsUpdateDuplicatedInformation(), RemoveFilenameFromDirectoryWorker(), SetAttributeDataLength(), SetResidentAttributeDataLength(), and WriteAttributeFromIrp().
| NTSTATUS UpdateIndexAllocation | ( | PDEVICE_EXTENSION | DeviceExt, |
| PB_TREE | Tree, | ||
| ULONG | IndexBufferSize, | ||
| PFILE_RECORD_HEADER | FileRecord | ||
| ) |
Definition at line 1187 of file btree.c.
Referenced by AddFilenameToDirectoryWorker(), and RemoveFilenameFromDirectoryWorker().
| NTSTATUS UpdateIndexEntryFileName | ( | PDEVICE_EXTENSION | Vcb, |
| PFILE_RECORD_HEADER | MftRecord, | ||
| PCHAR | IndexRecord, | ||
| ULONG | IndexBlockSize, | ||
| PINDEX_ENTRY_ATTRIBUTE | FirstEntry, | ||
| PINDEX_ENTRY_ATTRIBUTE | LastEntry, | ||
| PUNICODE_STRING | FileName, | ||
| PULONG | StartEntry, | ||
| PULONG | CurrentEntry, | ||
| BOOLEAN | DirSearch, | ||
| PNTFS_FILENAME_UPDATE | Update, | ||
| BOOLEAN | CaseSensitive | ||
| ) |
Recursively searches a directory index and applies the requested update to the $FILE_NAME attribute of the proper index entry. (Heavily based on BrowseIndexEntries)
Definition at line 2215 of file mft.c.
Referenced by UpdateFileNameRecordWorker(), and UpdateIndexEntryFileName().
| NTSTATUS UpdateIndexNode | ( | PDEVICE_EXTENSION | DeviceExt, |
| PFILE_RECORD_HEADER | FileRecord, | ||
| PB_TREE_FILENAME_NODE | Node, | ||
| ULONG | IndexBufferSize, | ||
| PNTFS_ATTR_CONTEXT | IndexAllocationContext, | ||
| ULONG | IndexAllocationOffset | ||
| ) |
Definition at line 1324 of file btree.c.
Referenced by UpdateIndexAllocation(), and UpdateIndexNode().
Definition at line 3690 of file mft.c.
Referenced by IncreaseMftSize().
| NTSTATUS WriteAttribute | ( | PDEVICE_EXTENSION | Vcb, |
| PNTFS_ATTR_CONTEXT | Context, | ||
| ULONGLONG | Offset, | ||
| const PUCHAR | Buffer, | ||
| ULONG | Length, | ||
| PULONG | LengthWritten, | ||
| PFILE_RECORD_HEADER | FileRecord | ||
| ) |
Definition at line 1829 of file mft.c.
Referenced by AddFilenameToDirectoryWorker(), AddNewMftEntry(), AllocateIndexNode(), FreeMftEntry(), IncreaseMftSize(), NtfsWriteVolumeBitmap(), RemoveFilenameFromDirectoryWorker(), SetResidentAttributeDataLength(), UpdateFileNameRecordWorker(), UpdateFileRecord(), UpdateIndexEntryFileName(), UpdateIndexNode(), and UpdateMftMirror().
| NTSTATUS WriteAttributeFromIrp | ( | PDEVICE_EXTENSION | Vcb, |
| PNTFS_ATTR_CONTEXT | Context, | ||
| ULONGLONG | Offset, | ||
| const PUCHAR | Buffer, | ||
| ULONG | Length, | ||
| PULONG | LengthWritten, | ||
| PFILE_RECORD_HEADER | FileRecord, | ||
| PIRP | Irp | ||
| ) |
Definition at line 1677 of file mft.c.
Referenced by NtfsWriteFile(), and WriteAttribute().
| FAST_IO_CHECK_IF_POSSIBLE NtfsFastIoCheckIfPossible |
Definition at line 1043 of file ntfs.h.
Referenced by DriverEntry().
| FAST_IO_READ NtfsFastIoRead |
Definition at line 1044 of file ntfs.h.
Referenced by DriverEntry().
| FAST_IO_WRITE NtfsFastIoWrite |
Definition at line 1045 of file ntfs.h.
Referenced by DriverEntry().
| DRIVER_DISPATCH NtfsFsdDispatch |
Definition at line 1021 of file ntfs.h.
Referenced by NtfsInitializeFunctionPointers().
|
extern |
Definition at line 36 of file ntfs.c.
Referenced by AddNewMftEntry(), DriverEntry(), NtfsAllocateIrpContext(), NtfsAttachFCBToFileObject(), NtfsCleanup(), NtfsClose(), NtfsCreate(), NtfsCreateFCB(), NtfsCreateFile(), NtfsDestroyFCB(), NtfsDispatch(), NtfsEnsureCacheMap(), NtfsFastIoCheckIfPossible(), NtfsFastIoWrite(), NtfsFCBInitializeCache(), NtfsFlushBuffers(), NtfsLockControl(), NtfsMountVolume(), NtfsSetDispositionInformation(), NtfsSetRenameInformation(), NtfsWrite(), PrepareAttributeContext(), and ReleaseAttributeContext().