1. FAT doesn't support to store time information in its FileLastAccess field. The...
authorgikidy <gikidy@65ba2f78-6c18-0410-a7b4-885970cf29fa>
Mon, 8 Jun 2009 07:59:04 +0000 (07:59 +0000)
committergikidy <gikidy@65ba2f78-6c18-0410-a7b4-885970cf29fa>
Mon, 8 Jun 2009 07:59:04 +0000 (07:59 +0000)
2. Replaced RFC 3066 with RFC 4646.

git-svn-id: https://fat-driver2.tianocore.org/svn/fat-driver2/trunk@40 65ba2f78-6c18-0410-a7b4-885970cf29fa

FatPkg/EnhancedFatDxe/ComponentName.c
FatPkg/EnhancedFatDxe/DirectoryManage.c

index b9dfadf..f5f1bc1 100644 (file)
@@ -39,7 +39,7 @@ Abstract:
                                 languages specified in SupportedLanguages. The\r
                                 number of languages supported by a driver is up\r
                                 to the driver writer. Language is specified\r
-                                in RFC 3066 or ISO 639-2 language code format.\r
+                                in RFC 4646 or ISO 639-2 language code format.\r
 \r
   @param  DriverName[out]       A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
@@ -104,7 +104,7 @@ FatComponentNameGetDriverName (
                                 languages specified in SupportedLanguages. The\r
                                 number of languages supported by a driver is up\r
                                 to the driver writer. Language is specified in\r
-                                RFC 3066 or ISO 639-2 language code format.\r
+                                RFC 4646 or ISO 639-2 language code format.\r
 \r
   @param  ControllerName[out]   A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
@@ -206,7 +206,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mFatControllerNameTable[]
                                 languages specified in SupportedLanguages. The\r
                                 number of languages supported by a driver is up\r
                                 to the driver writer. Language is specified\r
-                                in RFC 3066 or ISO 639-2 language code format.\r
+                                in RFC 4646 or ISO 639-2 language code format.\r
 \r
   @param  DriverName[out]       A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
@@ -279,7 +279,7 @@ FatComponentNameGetDriverName (
                                 languages specified in SupportedLanguages. The\r
                                 number of languages supported by a driver is up\r
                                 to the driver writer. Language is specified in\r
-                                RFC 3066 or ISO 639-2 language code format.\r
+                                RFC 4646 or ISO 639-2 language code format.\r
 \r
   @param  ControllerName[out]   A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
index de6c0d0..d9f7ae5 100644 (file)
@@ -985,7 +985,8 @@ Returns:
   // We will append this entry to the end of directory\r
   //\r
   FatGetCurrentFatTime (&DirEnt->Entry.FileCreateTime);\r
-  FatGetCurrentFatTime (&DirEnt->Entry.FileModificationTime);\r
+  CopyMem (&DirEnt->Entry.FileModificationTime, &DirEnt->Entry.FileCreateTime, sizeof (FAT_DATE_TIME));\r
+  CopyMem (&DirEnt->Entry.FileLastAccess, &DirEnt->Entry.FileCreateTime.Date, sizeof (FAT_DATE));\r
   NewEndPos = ODir->CurrentEndPos + DirEnt->EntryCount;\r
   if (NewEndPos * sizeof (FAT_DIRECTORY_ENTRY) > OFile->FileSize) {\r
     if (NewEndPos >= (OFile->IsFixedRootDir ? OFile->Volume->RootEntries : FAT_MAX_DIRENTRY_COUNT)) {\r