summaryrefslogtreecommitdiff
path: root/FatPkg
diff options
context:
space:
mode:
authorgikidy <gikidy@efd2e655-3735-4b16-a529-16bfa2dd702b>2009-06-08 07:59:04 +0000
committergikidy <gikidy@efd2e655-3735-4b16-a529-16bfa2dd702b>2009-06-08 07:59:04 +0000
commit3435f7bd26ecabcf9b2119967ea56a1e576e59c9 (patch)
tree9a9b32b499513ecdbb0a43258044d33027a8e43d /FatPkg
parent13e768a2e3d71a792e47216c34bbbd0b5123b34d (diff)
1. FAT doesn't support to store time information in its FileLastAccess field. The FileLastAccess only contains date information;
2. Replaced RFC 3066 with RFC 4646. git-svn-id: https://edk2-fatdriver2.svn.sourceforge.net/svnroot/edk2-fatdriver2/trunk@40 efd2e655-3735-4b16-a529-16bfa2dd702b
Diffstat (limited to 'FatPkg')
-rw-r--r--FatPkg/EnhancedFatDxe/ComponentName.c8
-rw-r--r--FatPkg/EnhancedFatDxe/DirectoryManage.c3
2 files changed, 6 insertions, 5 deletions
diff --git a/FatPkg/EnhancedFatDxe/ComponentName.c b/FatPkg/EnhancedFatDxe/ComponentName.c
index b9dfadf6a2..f5f1bc1bff 100644
--- a/FatPkg/EnhancedFatDxe/ComponentName.c
+++ b/FatPkg/EnhancedFatDxe/ComponentName.c
@@ -39,7 +39,7 @@ Abstract:
languages specified in SupportedLanguages. The
number of languages supported by a driver is up
to the driver writer. Language is specified
- in RFC 3066 or ISO 639-2 language code format.
+ in RFC 4646 or ISO 639-2 language code format.
@param DriverName[out] A pointer to the Unicode string to return.
This Unicode string is the name of the
@@ -104,7 +104,7 @@ FatComponentNameGetDriverName (
languages specified in SupportedLanguages. The
number of languages supported by a driver is up
to the driver writer. Language is specified in
- RFC 3066 or ISO 639-2 language code format.
+ RFC 4646 or ISO 639-2 language code format.
@param ControllerName[out] A pointer to the Unicode string to return.
This Unicode string is the name of the
@@ -206,7 +206,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mFatControllerNameTable[]
languages specified in SupportedLanguages. The
number of languages supported by a driver is up
to the driver writer. Language is specified
- in RFC 3066 or ISO 639-2 language code format.
+ in RFC 4646 or ISO 639-2 language code format.
@param DriverName[out] A pointer to the Unicode string to return.
This Unicode string is the name of the
@@ -279,7 +279,7 @@ FatComponentNameGetDriverName (
languages specified in SupportedLanguages. The
number of languages supported by a driver is up
to the driver writer. Language is specified in
- RFC 3066 or ISO 639-2 language code format.
+ RFC 4646 or ISO 639-2 language code format.
@param ControllerName[out] A pointer to the Unicode string to return.
This Unicode string is the name of the
diff --git a/FatPkg/EnhancedFatDxe/DirectoryManage.c b/FatPkg/EnhancedFatDxe/DirectoryManage.c
index de6c0d0d23..d9f7ae5b64 100644
--- a/FatPkg/EnhancedFatDxe/DirectoryManage.c
+++ b/FatPkg/EnhancedFatDxe/DirectoryManage.c
@@ -985,7 +985,8 @@ Returns:
// We will append this entry to the end of directory
//
FatGetCurrentFatTime (&DirEnt->Entry.FileCreateTime);
- FatGetCurrentFatTime (&DirEnt->Entry.FileModificationTime);
+ CopyMem (&DirEnt->Entry.FileModificationTime, &DirEnt->Entry.FileCreateTime, sizeof (FAT_DATE_TIME));
+ CopyMem (&DirEnt->Entry.FileLastAccess, &DirEnt->Entry.FileCreateTime.Date, sizeof (FAT_DATE));
NewEndPos = ODir->CurrentEndPos + DirEnt->EntryCount;
if (NewEndPos * sizeof (FAT_DIRECTORY_ENTRY) > OFile->FileSize) {
if (NewEndPos >= (OFile->IsFixedRootDir ? OFile->Volume->RootEntries : FAT_MAX_DIRENTRY_COUNT)) {