mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:52:56 +00:00
[NTFS]
With the newly introduced mechanism (in r68829), on attributes list loop, there shouldn't be any AttributeList attribute anymore. So, don't attempt to dump them. svn path=/trunk/; revision=68933
This commit is contained in:
parent
43a7da8886
commit
5fed17ea9a
1 changed files with 0 additions and 49 deletions
|
@ -384,51 +384,6 @@ NtfsDumpIndexRootAttribute(PNTFS_ATTR_RECORD Attribute)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static
|
|
||||||
VOID
|
|
||||||
NtfsDumpAttribute(PDEVICE_EXTENSION Vcb, PNTFS_ATTR_RECORD Attribute);
|
|
||||||
|
|
||||||
|
|
||||||
static
|
|
||||||
VOID
|
|
||||||
NtfsDumpAttributeListAttribute(PDEVICE_EXTENSION Vcb,
|
|
||||||
PNTFS_ATTR_RECORD Attribute)
|
|
||||||
{
|
|
||||||
PNTFS_ATTR_CONTEXT ListContext;
|
|
||||||
PVOID ListBuffer;
|
|
||||||
ULONGLONG ListSize;
|
|
||||||
|
|
||||||
ListContext = PrepareAttributeContext(Attribute);
|
|
||||||
|
|
||||||
ListSize = AttributeDataLength(&ListContext->Record);
|
|
||||||
if (ListSize <= 0xFFFFFFFF)
|
|
||||||
ListBuffer = ExAllocatePoolWithTag(NonPagedPool, (ULONG)ListSize, TAG_NTFS);
|
|
||||||
else
|
|
||||||
ListBuffer = NULL;
|
|
||||||
|
|
||||||
if (!ListBuffer)
|
|
||||||
{
|
|
||||||
DPRINT("Failed to allocate memory: %x\n", (ULONG)ListSize);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ReadAttribute(Vcb, ListContext, 0, ListBuffer, (ULONG)ListSize) == ListSize)
|
|
||||||
{
|
|
||||||
Attribute = (PNTFS_ATTR_RECORD)ListBuffer;
|
|
||||||
while (Attribute < (PNTFS_ATTR_RECORD)((PCHAR)ListBuffer + ListSize) &&
|
|
||||||
Attribute->Type != AttributeEnd)
|
|
||||||
{
|
|
||||||
NtfsDumpAttribute(Vcb, Attribute);
|
|
||||||
|
|
||||||
Attribute = (PNTFS_ATTR_RECORD)((ULONG_PTR)Attribute + Attribute->Length);
|
|
||||||
}
|
|
||||||
|
|
||||||
ReleaseAttributeContext(ListContext);
|
|
||||||
ExFreePoolWithTag(ListBuffer, TAG_NTFS);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static
|
static
|
||||||
VOID
|
VOID
|
||||||
NtfsDumpAttribute(PDEVICE_EXTENSION Vcb,
|
NtfsDumpAttribute(PDEVICE_EXTENSION Vcb,
|
||||||
|
@ -449,10 +404,6 @@ NtfsDumpAttribute(PDEVICE_EXTENSION Vcb,
|
||||||
NtfsDumpStandardInformationAttribute(Attribute);
|
NtfsDumpStandardInformationAttribute(Attribute);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AttributeAttributeList:
|
|
||||||
NtfsDumpAttributeListAttribute(Vcb, Attribute);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case AttributeObjectId:
|
case AttributeObjectId:
|
||||||
DbgPrint(" $OBJECT_ID ");
|
DbgPrint(" $OBJECT_ID ");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue