Author: pschweitzer
Date: Thu Sep 25 06:36:14 2014
New Revision: 64265
URL:
http://svn.reactos.org/svn/reactos?rev=64265&view=rev
Log:
[NTFS]
Compute index record size on mount and save it.
Modified:
trunk/reactos/drivers/filesystems/ntfs/fsctl.c
trunk/reactos/drivers/filesystems/ntfs/ntfs.h
Modified: trunk/reactos/drivers/filesystems/ntfs/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] Thu Sep 25 06:36:14 2014
@@ -232,6 +232,10 @@
NtfsInfo->BytesPerFileRecord = BootSector->EBPB.ClustersPerMftRecord *
NtfsInfo->BytesPerCluster;
else
NtfsInfo->BytesPerFileRecord = 1 <<
(-BootSector->EBPB.ClustersPerMftRecord);
+ if (BootSector->EBPB.ClustersPerIndexRecord > 0)
+ NtfsInfo->BytesPerIndexRecord = BootSector->EBPB.ClustersPerIndexRecord *
NtfsInfo->BytesPerCluster;
+ else
+ NtfsInfo->BytesPerIndexRecord = 1 <<
(-BootSector->EBPB.ClustersPerIndexRecord);
DPRINT("Boot sector information:\n");
DPRINT(" BytesPerSector: %hu\n",
BootSector->BPB.BytesPerSector);
Modified: trunk/reactos/drivers/filesystems/ntfs/ntfs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/n…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] Thu Sep 25 06:36:14 2014
@@ -63,6 +63,7 @@
ULARGE_INTEGER MftStart;
ULARGE_INTEGER MftMirrStart;
ULONG BytesPerFileRecord;
+ ULONG BytesPerIndexRecord;
ULONGLONG SerialNumber;
USHORT VolumeLabelLength;