Author: pschweitzer
Date: Thu Sep 3 12:49:36 2015
New Revision: 68933
URL:
http://svn.reactos.org/svn/reactos?rev=68933&view=rev
Log:
[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.
Modified:
trunk/reactos/drivers/filesystems/ntfs/attrib.c
Modified: trunk/reactos/drivers/filesystems/ntfs/attrib.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/a…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/attrib.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/attrib.c [iso-8859-1] Thu Sep 3 12:49:36 2015
@@ -386,51 +386,6 @@
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
-VOID
NtfsDumpAttribute(PDEVICE_EXTENSION Vcb,
PNTFS_ATTR_RECORD Attribute)
{
@@ -447,10 +402,6 @@
case AttributeStandardInformation:
NtfsDumpStandardInformationAttribute(Attribute);
- break;
-
- case AttributeAttributeList:
- NtfsDumpAttributeListAttribute(Vcb, Attribute);
break;
case AttributeObjectId: