ReactOS 0.4.16-dev-852-gcfcc8d8
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Functions | |||||||||||||||
AddBitmap | |||||||||||||||
@implemented Adds a $BITMAP attribute to a given FileRecord.
| |||||||||||||||
NTSTATUS | AddBitmap (PNTFS_VCB Vcb, PFILE_RECORD_HEADER FileRecord, PNTFS_ATTR_RECORD AttributeAddress, PCWSTR Name, USHORT NameLength) | ||||||||||||||
AddData | |||||||||||||||
@implemented Adds a $DATA attribute to a given FileRecord.
| |||||||||||||||
NTSTATUS | AddData (PFILE_RECORD_HEADER FileRecord, PNTFS_ATTR_RECORD AttributeAddress) | ||||||||||||||
AddFileName | |||||||||||||||
@implemented Adds a $FILE_NAME attribute to a given FileRecord.
| |||||||||||||||
NTSTATUS | AddFileName (PFILE_RECORD_HEADER FileRecord, PNTFS_ATTR_RECORD AttributeAddress, PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT FileObject, BOOLEAN CaseSensitive, PULONGLONG ParentMftIndex) | ||||||||||||||
AddIndexAllocation | |||||||||||||||
@implemented Adds an $INDEX_ALLOCATION attribute to a given FileRecord.
| |||||||||||||||
NTSTATUS | AddIndexAllocation (PNTFS_VCB Vcb, PFILE_RECORD_HEADER FileRecord, PNTFS_ATTR_RECORD AttributeAddress, PCWSTR Name, USHORT NameLength) | ||||||||||||||
AddIndexRoot | |||||||||||||||
@implemented Adds an $INDEX_ROOT attribute to a given FileRecord.
| |||||||||||||||
NTSTATUS | AddIndexRoot (PNTFS_VCB Vcb, PFILE_RECORD_HEADER FileRecord, PNTFS_ATTR_RECORD AttributeAddress, PINDEX_ROOT_ATTRIBUTE NewIndexRoot, ULONG RootLength, PCWSTR Name, USHORT NameLength) | ||||||||||||||
AddRun | |||||||||||||||
@implemented Adds a run of allocated clusters to a non-resident attribute.
| |||||||||||||||
NTSTATUS | AddRun (PNTFS_VCB Vcb, PNTFS_ATTR_CONTEXT AttrContext, ULONG AttrOffset, PFILE_RECORD_HEADER FileRecord, ULONGLONG NextAssignedCluster, ULONG RunLength) | ||||||||||||||
AddStandardInformation | |||||||||||||||
@implemented Adds a $STANDARD_INFORMATION attribute to a given FileRecord.
| |||||||||||||||
NTSTATUS | AddStandardInformation (PFILE_RECORD_HEADER FileRecord, PNTFS_ATTR_RECORD AttributeAddress) | ||||||||||||||
ConvertDataRunsToLargeMCB | |||||||||||||||
@implemented Converts binary data runs to a map control block.
| |||||||||||||||
NTSTATUS | ConvertDataRunsToLargeMCB (PUCHAR DataRun, PLARGE_MCB DataRunsMCB, PULONGLONG pNextVBN) | ||||||||||||||
ConvertLargeMCBToDataRuns | |||||||||||||||
@implemented Converts a map control block to a series of encoded data runs (used by non-resident attributes).
| |||||||||||||||
NTSTATUS | ConvertLargeMCBToDataRuns (PLARGE_MCB DataRunsMCB, PUCHAR RunBuffer, ULONG MaxBufferSize, PULONG UsedBufferSize) | ||||||||||||||
PUCHAR | DecodeRun (PUCHAR DataRun, LONGLONG *DataRunOffset, ULONGLONG *DataRunLength) | ||||||||||||||
BOOLEAN | FindRun (PNTFS_ATTR_RECORD NresAttr, ULONGLONG vcn, PULONGLONG lcn, PULONGLONG count) | ||||||||||||||
FreeClusters | |||||||||||||||
@implemented Shrinks the allocation size of a non-resident attribute by a given number of clusters. Frees the clusters from the volume's $BITMAP file as well as the attribute's data runs.
| |||||||||||||||
NTSTATUS | FreeClusters (PNTFS_VCB Vcb, PNTFS_ATTR_CONTEXT AttrContext, ULONG AttrOffset, PFILE_RECORD_HEADER FileRecord, ULONG ClustersToFree) | ||||||||||||||
static NTSTATUS | InternalReadNonResidentAttributes (PFIND_ATTR_CONTXT Context) | ||||||||||||||
static PNTFS_ATTRIBUTE_LIST_ITEM | InternalGetNextAttributeListItem (PFIND_ATTR_CONTXT Context) | ||||||||||||||
NTSTATUS | FindFirstAttributeListItem (PFIND_ATTR_CONTXT Context, PNTFS_ATTRIBUTE_LIST_ITEM *Item) | ||||||||||||||
NTSTATUS | FindNextAttributeListItem (PFIND_ATTR_CONTXT Context, PNTFS_ATTRIBUTE_LIST_ITEM *Item) | ||||||||||||||
static PNTFS_ATTR_RECORD | InternalGetNextAttribute (PFIND_ATTR_CONTXT Context) | ||||||||||||||
NTSTATUS | FindFirstAttribute (PFIND_ATTR_CONTXT Context, PDEVICE_EXTENSION Vcb, PFILE_RECORD_HEADER FileRecord, BOOLEAN OnlyResident, PNTFS_ATTR_RECORD *Attribute) | ||||||||||||||
NTSTATUS | FindNextAttribute (PFIND_ATTR_CONTXT Context, PNTFS_ATTR_RECORD *Attribute) | ||||||||||||||
VOID | FindCloseAttribute (PFIND_ATTR_CONTXT Context) | ||||||||||||||
static VOID | NtfsDumpFileNameAttribute (PNTFS_ATTR_RECORD Attribute) | ||||||||||||||
static VOID | NtfsDumpStandardInformationAttribute (PNTFS_ATTR_RECORD Attribute) | ||||||||||||||
static VOID | NtfsDumpVolumeNameAttribute (PNTFS_ATTR_RECORD Attribute) | ||||||||||||||
static VOID | NtfsDumpVolumeInformationAttribute (PNTFS_ATTR_RECORD Attribute) | ||||||||||||||
static VOID | NtfsDumpIndexRootAttribute (PNTFS_ATTR_RECORD Attribute) | ||||||||||||||
static VOID | NtfsDumpAttribute (PDEVICE_EXTENSION Vcb, PNTFS_ATTR_RECORD Attribute) | ||||||||||||||
VOID | NtfsDumpDataRunData (PUCHAR DataRun) | ||||||||||||||
VOID | NtfsDumpDataRuns (PVOID StartOfRun, ULONGLONG CurrentLCN) | ||||||||||||||
VOID | NtfsDumpFileAttributes (PDEVICE_EXTENSION Vcb, PFILE_RECORD_HEADER FileRecord) | ||||||||||||||
PFILENAME_ATTRIBUTE | GetFileNameFromRecord (PDEVICE_EXTENSION Vcb, PFILE_RECORD_HEADER FileRecord, UCHAR NameType) | ||||||||||||||
UCHAR | GetPackedByteCount (LONGLONG NumberToPack, BOOLEAN IsSigned) | ||||||||||||||
NTSTATUS | GetLastClusterInDataRun (PDEVICE_EXTENSION Vcb, PNTFS_ATTR_RECORD Attribute, PULONGLONG LastCluster) | ||||||||||||||
PSTANDARD_INFORMATION | GetStandardInformationFromRecord (PDEVICE_EXTENSION Vcb, PFILE_RECORD_HEADER FileRecord) | ||||||||||||||
GetFileNameAttributeLength | |||||||||||||||
@implemented Returns the size of a given FILENAME_ATTRIBUTE, in bytes.
| |||||||||||||||
ULONG | GetFileNameAttributeLength (PFILENAME_ATTRIBUTE FileNameAttribute) | ||||||||||||||
PFILENAME_ATTRIBUTE | GetBestFileNameFromRecord (PDEVICE_EXTENSION Vcb, PFILE_RECORD_HEADER FileRecord) | ||||||||||||||
NTSTATUS AddBitmap | ( | PNTFS_VCB | Vcb, |
PFILE_RECORD_HEADER | FileRecord, | ||
PNTFS_ATTR_RECORD | AttributeAddress, | ||
PCWSTR | Name, | ||
USHORT | NameLength | ||
) |
Definition at line 72 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 160 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 230 of file attrib.c.
Referenced by NtfsCreateDirectory(), and NtfsCreateFileRecord().
NTSTATUS AddIndexAllocation | ( | PNTFS_VCB | Vcb, |
PFILE_RECORD_HEADER | FileRecord, | ||
PNTFS_ATTR_RECORD | AttributeAddress, | ||
PCWSTR | Name, | ||
USHORT | NameLength | ||
) |
Definition at line 388 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 495 of file attrib.c.
Referenced by NtfsCreateDirectory().
NTSTATUS AddRun | ( | PNTFS_VCB | Vcb, |
PNTFS_ATTR_CONTEXT | AttrContext, | ||
ULONG | AttrOffset, | ||
PFILE_RECORD_HEADER | FileRecord, | ||
ULONGLONG | NextAssignedCluster, | ||
ULONG | RunLength | ||
) |
Definition at line 599 of file attrib.c.
Referenced by SetNonResidentAttributeDataLength().
NTSTATUS AddStandardInformation | ( | PFILE_RECORD_HEADER | FileRecord, |
PNTFS_ATTR_RECORD | AttributeAddress | ||
) |
Definition at line 766 of file attrib.c.
Referenced by NtfsCreateDirectory(), and NtfsCreateFileRecord().
NTSTATUS ConvertDataRunsToLargeMCB | ( | PUCHAR | DataRun, |
PLARGE_MCB | DataRunsMCB, | ||
PULONGLONG | pNextVBN | ||
) |
Definition at line 825 of file attrib.c.
Referenced by PrepareAttributeContext().
NTSTATUS ConvertLargeMCBToDataRuns | ( | PLARGE_MCB | DataRunsMCB, |
PUCHAR | RunBuffer, | ||
ULONG | MaxBufferSize, | ||
PULONG | UsedBufferSize | ||
) |
Definition at line 896 of file attrib.c.
Referenced by AddRun(), FreeClusters(), ReadAttribute(), and WriteAttribute().
Definition at line 966 of file attrib.c.
Referenced by ConvertDataRunsToLargeMCB(), FindRun(), GetLastClusterInDataRun(), NtfsDumpDataRuns(), PrepareAttributeContext(), ReadAttribute(), and WriteAttribute().
VOID FindCloseAttribute | ( | PFIND_ATTR_CONTXT | Context | ) |
Definition at line 1465 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 1383 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 1307 of file attrib.c.
Referenced by FindAttribute().
NTSTATUS FindNextAttribute | ( | PFIND_ATTR_CONTXT | Context, |
PNTFS_ATTR_RECORD * | Attribute | ||
) |
Definition at line 1431 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 1321 of file attrib.c.
Referenced by FindAttribute().
BOOLEAN FindRun | ( | PNTFS_ATTR_RECORD | NresAttr, |
ULONGLONG | vcn, | ||
PULONGLONG | lcn, | ||
PULONGLONG | count | ||
) |
Definition at line 1010 of file attrib.c.
Referenced by NtfsDumpAttribute().
NTSTATUS FreeClusters | ( | PNTFS_VCB | Vcb, |
PNTFS_ATTR_CONTEXT | AttrContext, | ||
ULONG | AttrOffset, | ||
PFILE_RECORD_HEADER | FileRecord, | ||
ULONG | ClustersToFree | ||
) |
Definition at line 1057 of file attrib.c.
Referenced by FatExamineFatEntries(), GetDiskFreeSpaceW(), HandleNotify(), NtfsAllocateClusters(), NtfsGetFreeClusters(), and SetNonResidentAttributeDataLength().
PFILENAME_ATTRIBUTE GetBestFileNameFromRecord | ( | PDEVICE_EXTENSION | Vcb, |
PFILE_RECORD_HEADER | FileRecord | ||
) |
Definition at line 1985 of file attrib.c.
Referenced by NtfsGetBothDirectoryInformation(), NtfsGetDirectoryInformation(), NtfsGetFullDirectoryInformation(), NtfsGetNamesInformation(), NtfsMakeFCBFromDirEntry(), NtfsMoonWalkID(), NtfsSetEndOfFile(), and NtfsWriteFile().
ULONG GetFileNameAttributeLength | ( | PFILENAME_ATTRIBUTE | FileNameAttribute | ) |
Definition at line 1978 of file attrib.c.
Referenced by CreateBTreeKeyFromFilename().
PFILENAME_ATTRIBUTE GetFileNameFromRecord | ( | PDEVICE_EXTENSION | Vcb, |
PFILE_RECORD_HEADER | FileRecord, | ||
UCHAR | NameType | ||
) |
Definition at line 1809 of file attrib.c.
Referenced by GetBestFileNameFromRecord(), NtfsGetBothDirectoryInformation(), and NtfsMakeRootFCB().
NTSTATUS GetLastClusterInDataRun | ( | PDEVICE_EXTENSION | Vcb, |
PNTFS_ATTR_RECORD | Attribute, | ||
PULONGLONG | LastCluster | ||
) |
Definition at line 1908 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 1846 of file attrib.c.
Referenced by ConvertLargeMCBToDataRuns().
PSTANDARD_INFORMATION GetStandardInformationFromRecord | ( | PDEVICE_EXTENSION | Vcb, |
PFILE_RECORD_HEADER | FileRecord | ||
) |
Definition at line 1940 of file attrib.c.
Referenced by NtfsGetBothDirectoryInformation(), NtfsGetDirectoryInformation(), NtfsGetFullDirectoryInformation(), and NtfsMakeFCBFromDirEntry().
|
static |
Definition at line 1334 of file attrib.c.
Referenced by FindFirstAttribute(), and FindNextAttribute().
|
static |
Definition at line 1267 of file attrib.c.
Referenced by FindNextAttributeListItem().
|
static |
Definition at line 1214 of file attrib.c.
Referenced by FindFirstAttribute(), and FindNextAttribute().
|
static |
Definition at line 1617 of file attrib.c.
Referenced by NtfsDumpFileAttributes().
Definition at line 1723 of file attrib.c.
Referenced by NtfsDumpDataRunData(), and NtfsDumpDataRuns().
Definition at line 1755 of file attrib.c.
Referenced by AddRun(), FreeClusters(), and NtfsDumpDataRuns().
VOID NtfsDumpFileAttributes | ( | PDEVICE_EXTENSION | Vcb, |
PFILE_RECORD_HEADER | FileRecord | ||
) |
Definition at line 1790 of file attrib.c.
Referenced by IncreaseMftSize(), NtfsDumpFileRecord(), NtfsGetBothDirectoryInformation(), NtfsGetDirectoryInformation(), NtfsGetFullDirectoryInformation(), NtfsGetNamesInformation(), and NtfsGetVolumeData().
|
static |
Definition at line 1476 of file attrib.c.
Referenced by NtfsDumpAttribute().
|
static |
Definition at line 1542 of file attrib.c.
Referenced by NtfsDumpAttribute().
|
static |
Definition at line 1494 of file attrib.c.
Referenced by NtfsDumpAttribute().
|
static |
Definition at line 1524 of file attrib.c.
Referenced by NtfsDumpAttribute().
|
static |
Definition at line 1509 of file attrib.c.
Referenced by NtfsDumpAttribute().