/* Retrieves attributes, insures positive polarity of attribute bits, returns resulting attributes in output parameter. */
EFI_STATUS EFIAPI FvGetVolumeAttributes(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, OUT EFI_FV_ATTRIBUTES *Attributes)
/* Retrieves attributes, insures positive polarity of attribute bits, returns resulting attributes in output parameter. */
EFI_STATUS EFIAPI FvGetVolumeAttributes(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, OUT EFI_FV_ATTRIBUTES *Attributes)
{
  EFI_STATUS                          Status;
  FV_DEVICE                           *FvDevice;
  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *Fvb;
  EFI_FVB_ATTRIBUTES_2                FvbAttributes;
  FvDevice = FV_DEVICE_FROM_THIS (This);
  Fvb      = FvDevice->Fvb;
  Status = Fvb->GetAttributes (Fvb, &FvbAttributes);
  FvbAttributes &= 0xfffff0ff;
  *Attributes = (EFI_FV_ATTRIBUTES)FvbAttributes;
  return Status;
}