@param EntryPos - The position of the directory entry to be accessed.\r
@param Entry - The directory entry read or written.\r
\r
- @retval EFI_SUCCESS - Access the directory entry sucessfully.\r
+ @retval EFI_SUCCESS - Access the directory entry successfully.\r
@return other - An error occurred when reading the directory entry.\r
\r
**/\r
@param Volume - FAT file system volume.\r
@param Name - The file name of the volume.\r
\r
- @retval EFI_SUCCESS - Update the volume with the directory entry sucessfully.\r
+ @retval EFI_SUCCESS - Update the volume with the directory entry successfully.\r
@return others - An error occurred when getting volume label.\r
\r
**/\r
@param Volume - FAT file system volume.\r
@param Name - The new file name of the volume.\r
\r
- @retval EFI_SUCCESS - Update the Volume sucessfully.\r
+ @retval EFI_SUCCESS - Update the Volume successfully.\r
@retval EFI_UNSUPPORTED - The input label is not a valid volume label.\r
@return other - An error occurred when setting volume label.\r
\r
not be created either).\r
@retval EFI_INVALID_PARAMETER - The parameter is not valid.\r
@retval EFI_SUCCESS - Open the file successfully.\r
- @return other - An error occured when locating the OFile.\r
+ @return other - An error occurred when locating the OFile.\r
\r
**/\r
EFI_STATUS\r
are older than the contents in disk, so they are invalid; just mark them invalid.\r
\r
When this function is called by read command, if any entry in this range\r
- is dirty, it means that the relative info directly readed from media is older than\r
+ is dirty, it means that the relative info directly read from media is older than\r
than the info in the cache; So need to update the relative info in the Buffer.\r
\r
@param Volume - FAT file system volume.\r
\r
@param OFile - The open file.\r
\r
- @retval EFI_SUCCESS - Shrinked sucessfully.\r
+ @retval EFI_SUCCESS - Shrinked successfully.\r
@retval EFI_VOLUME_CORRUPTED - There are errors in the file's clusters.\r
\r
**/\r
@param OFile - The open file.\r
@param NewSizeInBytes - The new size in bytes of the open file.\r
\r
- @retval EFI_SUCCESS - The file is grown sucessfully.\r
+ @retval EFI_SUCCESS - The file is grown successfully.\r
@retval EFI_UNSUPPORTED - The file size is larger than 4GB.\r
@retval EFI_VOLUME_CORRUPTED - There are errors in the files' clusters.\r
@retval EFI_VOLUME_FULL - The volume is full and can not grow the file.\r
@param Handle - The handle of parent device.\r
@param DiskIo - The DiskIo of parent device.\r
@param DiskIo2 - The DiskIo2 of parent device.\r
- @param BlockIo - The BlockIo of parent devicel\r
+ @param BlockIo - The BlockIo of parent device.\r
\r
@retval EFI_SUCCESS - Allocate a new volume successfully.\r
@retval EFI_OUT_OF_RESOURCES - Can not allocate the memory.\r
@param IFile - The instance of the open file.\r
@param Task - The task to be executed.\r
\r
- @retval EFI_SUCCESS - The task was executed sucessfully.\r
+ @retval EFI_SUCCESS - The task was executed successfully.\r
@return other - An error occurred when executing the task.\r
\r
**/\r
@param IoMode - The access mode.\r
@param DirtyValue - Set the volume as dirty or not.\r
\r
- @retval EFI_SUCCESS - Set the new FAT entry value sucessfully.\r
+ @retval EFI_SUCCESS - Set the new FAT entry value successfully.\r
@return other - An error occurred when operation the FAT entries.\r
\r
**/\r
@param Task point to task instance.\r
\r
@retval EFI_SUCCESS - The operation is performed successfully.\r
- @retval EFI_VOLUME_CORRUPTED - The accesss is\r
+ @retval EFI_VOLUME_CORRUPTED - The access is\r
@return Others - The status of read/write the disk\r
\r
**/\r
@retval EFI_SUCCESS - Open the file successfully.\r
@retval EFI_INVALID_PARAMETER - The open mode is conflict with the attributes\r
or the file name is not valid.\r
- @retval EFI_NOT_FOUND - Conficts between dir intention and attribute.\r
+ @retval EFI_NOT_FOUND - Conflicts between dir intention and attribute.\r
@retval EFI_WRITE_PROTECTED - Can't open for write if the volume is read only.\r
@retval EFI_ACCESS_DENIED - If the file's attribute is read only, and the\r
open is for read-write fail it.\r
not be created either).\r
@retval EFI_INVALID_PARAMETER - The parameter is not valid.\r
@retval EFI_SUCCESS - Open the file successfully.\r
- @return other - An error occured when locating the OFile.\r
+ @return other - An error occurred when locating the OFile.\r
\r
**/\r
EFI_STATUS\r
@param Volume - FAT file system volume.\r
@param Name - The file name of the volume.\r
\r
- @retval EFI_SUCCESS - Update the volume with the directory entry sucessfully.\r
+ @retval EFI_SUCCESS - Update the volume with the directory entry successfully.\r
@return others - An error occurred when getting volume label.\r
\r
**/\r
@param Volume - FAT file system volume.\r
@param Name - The new file name of the volume.\r
\r
- @retval EFI_SUCCESS - Update the Volume sucessfully.\r
+ @retval EFI_SUCCESS - Update the Volume successfully.\r
@retval EFI_UNSUPPORTED - The input label is not a valid volume label.\r
@return other - An error occurred when setting volume label.\r
\r
\r
Trim the trailing blanks of fat name.\r
\r
- @param Name - The Char8 string needs to be trimed.\r
+ @param Name - The Char8 string needs to be trimmed.\r
@param Len - The length of the fat name.\r
\r
The real length of the fat name after the trailing blanks are trimmed.\r
@param Index - The index of the FAT entry of the volume.\r
@param Value - The new value of the FAT entry.\r
\r
- @retval EFI_SUCCESS - Set the new FAT entry value sucessfully.\r
+ @retval EFI_SUCCESS - Set the new FAT entry value successfully.\r
@retval EFI_VOLUME_CORRUPTED - The FAT type of the volume is error.\r
@return other - An error occurred when operation the FAT entries.\r
\r
\r
@param OFile - The open file.\r
\r
- @retval EFI_SUCCESS - Shrinked sucessfully.\r
+ @retval EFI_SUCCESS - Shrinked successfully.\r
@retval EFI_VOLUME_CORRUPTED - There are errors in the file's clusters.\r
\r
**/\r
@param OFile - The open file.\r
@param NewSizeInBytes - The new size in bytes of the open file.\r
\r
- @retval EFI_SUCCESS - The file is grown sucessfully.\r
+ @retval EFI_SUCCESS - The file is grown successfully.\r
@retval EFI_UNSUPPORTED - The file size is larger than 4GB.\r
@retval EFI_VOLUME_CORRUPTED - There are errors in the files' clusters.\r
@retval EFI_VOLUME_FULL - The volume is full and can not grow the file.\r
//\r
if (OFile->ODir != NULL) {\r
//\r
- // Syncronize its dot entry\r
+ // Synchronize its dot entry\r
//\r
FatResetODirCursor (OFile);\r
ASSERT (OFile->Parent != NULL);\r
@param Handle - The handle of parent device.\r
@param DiskIo - The DiskIo of parent device.\r
@param DiskIo2 - The DiskIo2 of parent device.\r
- @param BlockIo - The BlockIo of parent devicel\r
+ @param BlockIo - The BlockIo of parent device.\r
\r
@retval EFI_SUCCESS - Allocate a new volume successfully.\r
@retval EFI_OUT_OF_RESOURCES - Can not allocate the memory.\r
@param IFile - The instance of the open file.\r
@param Task - The task to be executed.\r
\r
- @retval EFI_SUCCESS - The task was executed sucessfully.\r
+ @retval EFI_SUCCESS - The task was executed successfully.\r
@return other - An error occurred when executing the task.\r
\r
**/\r
@param IoMode - The access mode.\r
@param DirtyValue - Set the volume as dirty or not.\r
\r
- @retval EFI_SUCCESS - Set the new FAT entry value sucessfully.\r
+ @retval EFI_SUCCESS - Set the new FAT entry value successfully.\r
@return other - An error occurred when operation the FAT entries.\r
\r
**/\r
@param Task point to task instance.\r
\r
@retval EFI_SUCCESS - The operation is performed successfully.\r
- @retval EFI_VOLUME_CORRUPTED - The accesss is\r
+ @retval EFI_VOLUME_CORRUPTED - The access is\r
@return Others - The status of read/write the disk\r
\r
**/\r
@retval EFI_SUCCESS - Open the file successfully.\r
@retval EFI_INVALID_PARAMETER - The open mode is conflict with the attributes\r
or the file name is not valid.\r
- @retval EFI_NOT_FOUND - Conficts between dir intention and attribute.\r
+ @retval EFI_NOT_FOUND - Conflicts between dir intention and attribute.\r
@retval EFI_WRITE_PROTECTED - Can't open for write if the volume is read only.\r
@retval EFI_ACCESS_DENIED - If the file's attribute is read only, and the\r
open is for read-write fail it.\r
PEI_FAT_PRIVATE_DATA *mPrivateData = NULL;\r
\r
/**\r
- BlockIo installation nofication function. Find out all the current BlockIO\r
+ BlockIo installation notification function. Find out all the current BlockIO\r
PPIs in the system and add them into private data. Assume there is\r
\r
@param PeiServices General purpose services available to every\r
\r
Status = PeiServicesAllocatePages (\r
EfiBootServicesCode,\r
- (sizeof (PEI_FAT_PRIVATE_DATA) - 1) / PEI_FAT_MEMMORY_PAGE_SIZE + 1,\r
+ (sizeof (PEI_FAT_PRIVATE_DATA) - 1) / PEI_FAT_MEMORY_PAGE_SIZE + 1,\r
&Address\r
);\r
if (EFI_ERROR (Status)) {\r
@param FileName The recovery file name to find.\r
@param Handle The output file handle.\r
\r
- @retval EFI_DEVICE_ERROR Some error occured when operating the FAT\r
+ @retval EFI_DEVICE_ERROR Some error occurred when operating the FAT\r
volume.\r
@retval EFI_NOT_FOUND The recovery file was not found.\r
@retval EFI_SUCCESS The recovery file was successfully found on the\r
#define PEI_FAT_MAX_BLOCK_IO_PPI 32\r
#define PEI_FAT_MAX_VOLUME 64\r
\r
-#define PEI_FAT_MEMMORY_PAGE_SIZE 0x1000\r
+#define PEI_FAT_MEMORY_PAGE_SIZE 0x1000\r
\r
//\r
// Data Structures\r
@param FileName The recovery file name to find.\r
@param Handle The output file handle.\r
\r
- @retval EFI_DEVICE_ERROR Some error occured when operating the FAT\r
+ @retval EFI_DEVICE_ERROR Some error occurred when operating the FAT\r
volume.\r
@retval EFI_NOT_FOUND The recovery file was not found.\r
@retval EFI_SUCCESS The recovery file was successfully found on the\r
GptHdrCrc = PartHeader->Header.CRC32;\r
\r
//\r
- // Set CRC field to zero when doing calcuation\r
+ // Set CRC field to zero when doing calculation\r
//\r
PartHeader->Header.CRC32 = 0;\r
\r
if (EndingLBA > LastLba) {\r
//\r
// Compatability Errata:\r
- // Some systems try to hide drive space with thier INT 13h driver\r
+ // Some systems try to hide drive space with their INT 13h driver\r
// This does not hide space from the OS driver. This means the MBR\r
// that gets created from DOS is smaller than the MBR created from\r
// a real OS (NT & Win98). This leads to BlockIo->LastBlock being\r