/* Set the OFile and its child OFile with the error Status */
VOID FatSetVolumeError(IN FAT_OFILE *OFile, IN EFI_STATUS Status)
/* Set the OFile and its child OFile with the error Status */
VOID FatSetVolumeError(IN FAT_OFILE *OFile, IN EFI_STATUS Status)
{
  LIST_ENTRY  *Link;
  FAT_OFILE   *ChildOFile;
  if (!EFI_ERROR (OFile->Error)) {
    OFile->Error = Status;
  }
  for (Link = OFile->ChildHead.ForwardLink; Link != &OFile->ChildHead; Link = Link->ForwardLink) {
    ChildOFile = OFILE_FROM_CHILDLINK (Link);
    FatSetVolumeError (ChildOFile, Status);
  }
}