X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=FatPkg%2FFatPei%2FFatLiteAccess.c;fp=FatPkg%2FFatPei%2FFatLiteAccess.c;h=53f5e3f60cbbc118c01846b66fc99e9ea43257bb;hp=0a688a3185e6971779cd9b5dfd2269ea84978f90;hb=1d951a3086ab569073ee60e890a1cddf512d122c;hpb=4d0e0c4510719cea131701edb667160d75f3bff9 diff --git a/FatPkg/FatPei/FatLiteAccess.c b/FatPkg/FatPei/FatLiteAccess.c index 0a688a3185..53f5e3f60c 100644 --- a/FatPkg/FatPei/FatLiteAccess.c +++ b/FatPkg/FatPei/FatLiteAccess.c @@ -1,7 +1,7 @@ /** @file FAT file system access routines for FAT recovery PEIM -Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this @@ -315,7 +315,10 @@ FatSetFilePos ( } File->CurrentPos += Pos; - + // + // Calculate the amount of consecutive cluster occupied by the file. + // FatReadFile() will use it to read these blocks once. + // File->StraightReadAmount = 0; Cluster = File->CurrentCluster; while (!FAT_CLUSTER_FUNCTIONAL (Cluster)) { @@ -517,9 +520,6 @@ FatReadNextDirectoryEntry ( SubFile->StartingCluster = SubFile->CurrentCluster; SubFile->Volume = ParentDir->Volume; - if (SubFile->StartingCluster != 0) { - Status = FatSetFilePos (PrivateData, SubFile, 0); - } // // in Pei phase, time parameters do not need to be filled for minimum use. //