/** @file\r
FAT file system access routines for FAT recovery PEIM\r
\r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
}\r
\r
File->CurrentPos += Pos;\r
-\r
+ //\r
+ // Calculate the amount of consecutive cluster occupied by the file.\r
+ // FatReadFile() will use it to read these blocks once.\r
+ //\r
File->StraightReadAmount = 0;\r
Cluster = File->CurrentCluster;\r
while (!FAT_CLUSTER_FUNCTIONAL (Cluster)) {\r
SubFile->StartingCluster = SubFile->CurrentCluster;\r
SubFile->Volume = ParentDir->Volume;\r
\r
- if (SubFile->StartingCluster != 0) {\r
- Status = FatSetFilePos (PrivateData, SubFile, 0);\r
- }\r
//\r
// in Pei phase, time parameters do not need to be filled for minimum use.\r
//\r