summaryrefslogtreecommitdiff
path: root/DuetPkg/FSVariable
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-05 06:50:12 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-05 06:50:12 +0000
commitbe768885bfe481e6f0b89a5b0b6bccf357b2a8e5 (patch)
tree43a1092fc7576cc9a84385fe4e71b44ceb5b168d /DuetPkg/FSVariable
parent10590588cce553a3d8d304974982845682cbce5b (diff)
downloadedk2-be768885bfe481e6f0b89a5b0b6bccf357b2a8e5.zip
edk2-be768885bfe481e6f0b89a5b0b6bccf357b2a8e5.tar.gz
edk2-be768885bfe481e6f0b89a5b0b6bccf357b2a8e5.tar.bz2
Fix many bugs in DUET package and now DUET package is enabled for floppy successful.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5158 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/FSVariable')
-rw-r--r--DuetPkg/FSVariable/FSVariable.c2
-rw-r--r--DuetPkg/FSVariable/FileStorage.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/DuetPkg/FSVariable/FSVariable.c b/DuetPkg/FSVariable/FSVariable.c
index 0977887..085a492 100644
--- a/DuetPkg/FSVariable/FSVariable.c
+++ b/DuetPkg/FSVariable/FSVariable.c
@@ -1164,7 +1164,7 @@ Returns:
Status = EFI_NOT_FOUND;
return Status;
}
-
+
VariableStoreEntry = FlashMapEntryData->Entries[0];
//
diff --git a/DuetPkg/FSVariable/FileStorage.c b/DuetPkg/FSVariable/FileStorage.c
index 4e366de..c4c239a 100644
--- a/DuetPkg/FSVariable/FileStorage.c
+++ b/DuetPkg/FSVariable/FileStorage.c
@@ -229,7 +229,9 @@ OnSimpleFileSystemInstall (
NumBytes = Dev->Size;
Status = File->Write (File, &NumBytes, VAR_DATA_PTR (Dev));
ASSERT_EFI_ERROR (Status);
- FileClose (File);
+ // KEN: bugbug here if closing file, volume handle will be free,
+ // and system will be hang when accessing volume handle in future.
+ //FileClose (File);
DEBUG ((EFI_D_ERROR, "FileStorage: Mapped to file!\n"));
}
@@ -407,7 +409,7 @@ OpenStore (
if (EFI_ERROR (Status)) {
return Status;
}
-
+
//
// Open the root directory of the volume
//