Author: pschweitzer
Date: Sun Sep 24 12:35:37 2017
New Revision: 75961
URL:
http://svn.reactos.org/svn/reactos?rev=75961&view=rev
Log:
[FASTFAT]
Implement statistics counting for non cached read/write operations.
Modified:
trunk/reactos/drivers/filesystems/fastfat/rw.c
Modified: trunk/reactos/drivers/filesystems/fastfat/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] Sun Sep 24 12:35:37 2017
@@ -722,6 +722,9 @@
Length = (ULONG)(ROUND_UP_64(Fcb->RFCB.FileSize.QuadPart, BytesPerSector)
- ByteOffset.QuadPart);
}
+ vfatAddToStat(IrpContext->DeviceExt, Fat.NonCachedReads, 1);
+ vfatAddToStat(IrpContext->DeviceExt, Fat.NonCachedReadBytes, Length);
+
Status = VfatReadFileData(IrpContext, Length, ByteOffset, &ReturnedLength);
if (NT_SUCCESS(Status))
{
@@ -1003,6 +1006,9 @@
CcZeroData(IrpContext->FileObject, &OldFileSize, &ByteOffset,
TRUE);
}
+ vfatAddToStat(IrpContext->DeviceExt, Fat.NonCachedWrites, 1);
+ vfatAddToStat(IrpContext->DeviceExt, Fat.NonCachedWriteBytes, Length);
+
Status = VfatWriteFileData(IrpContext, Length, ByteOffset);
if (NT_SUCCESS(Status))
{