/* Create "." and ".." directory entries in the newly-created parent OFile. */
EFI_STATUS FatCreateDotDirEnts(IN FAT_OFILE *OFile)
/* Create "." and ".." directory entries in the newly-created parent OFile. */
EFI_STATUS FatCreateDotDirEnts(IN FAT_OFILE *OFile)
{
  EFI_STATUS  Status;
  FAT_DIRENT  *DirEnt;
  Status = FatExpandODir (OFile);
  if (EFI_ERROR (Status)) {
    return Status;
  }
  FatSetDirEntCluster (OFile);
  Status = FatCreateDirEnt (OFile, L".", FAT_ATTRIBUTE_DIRECTORY, &DirEnt);
  if (EFI_ERROR (Status)) {
    return Status;
  }
  Status = FatCreateDirEnt (OFile, L"..", FAT_ATTRIBUTE_DIRECTORY, &DirEnt);
  return Status;
}