/* Query the largest block that may be updated in a fault tolerant manner. */
EFI_STATUS EFIAPI FtwGetMaxBlockSize(IN EFI_FAULT_TOLERANT_WRITE_PROTOCOL *This, OUT UINTN *BlockSize)
/* Query the largest block that may be updated in a fault tolerant manner. */
EFI_STATUS EFIAPI FtwGetMaxBlockSize(IN EFI_FAULT_TOLERANT_WRITE_PROTOCOL *This, OUT UINTN *BlockSize)
{
  EFI_FTW_DEVICE  *FtwDevice;
  if (!FeaturePcdGet (PcdFullFtwServiceEnable)) {
    return EFI_UNSUPPORTED;
  }
  FtwDevice = FTW_CONTEXT_FROM_THIS (This);
  *BlockSize = FtwDevice->SpareAreaLength;
  return EFI_SUCCESS;
}