filesystems/fsw_efi.c
EFI_STATUS fsw_efi_map_status(fsw_status_t fsw_status, FSW_VOLUME_DATA *Volume)
{
    switch (fsw_status) {
        case FSW_SUCCESS:
            return EFI_SUCCESS;
        case FSW_OUT_OF_MEMORY:
            return EFI_VOLUME_CORRUPTED;
        case FSW_IO_ERROR:
            return Volume->LastIOStatus;
        case FSW_UNSUPPORTED:
            return EFI_UNSUPPORTED;
        case FSW_NOT_FOUND:
            return EFI_NOT_FOUND;
        case FSW_VOLUME_CORRUPTED:
            return EFI_VOLUME_CORRUPTED;
        default:
            return EFI_DEVICE_ERROR;
    }
}
/**
 * Map FSW status codes to EFI status codes. The FSW_IO_ERROR code is only produced
 * by fsw_efi_read_block, so we map it back to the EFI status code remembered from
 * the last I/O operation.
 */
Map FSW status codes to EFI status codes. The FSW_IO_ERROR code is only produced
by fsw_efi_read_block, so we map it back to the EFI status code remembered from
the last I/O operation.
Map FSW status codes to EFI status codes . The FSW_IO_ERROR code is only produced by fsw_efi_read_block so we map it back to the EFI status code remembered from the last I / O operation .
EFI_STATUS fsw_efi_map_status(fsw_status_t fsw_status, FSW_VOLUME_DATA *Volume)
{
    switch (fsw_status) {
        case FSW_SUCCESS:
            return EFI_SUCCESS;
        case FSW_OUT_OF_MEMORY:
            return EFI_VOLUME_CORRUPTED;
        case FSW_IO_ERROR:
            return Volume->LastIOStatus;
        case FSW_UNSUPPORTED:
            return EFI_UNSUPPORTED;
        case FSW_NOT_FOUND:
            return EFI_NOT_FOUND;
        case FSW_VOLUME_CORRUPTED:
            return EFI_VOLUME_CORRUPTED;
        default:
            return EFI_DEVICE_ERROR;
    }
}
EFI_STATUS fsw_efi_map_status ( fsw_status_t fsw_status , FSW_VOLUME_DATA * Volume ) { switch ( fsw_status ) { case FSW_SUCCESS : return EFI_SUCCESS ; case FSW_OUT_OF_MEMORY : return EFI_VOLUME_CORRUPTED ; case FSW_IO_ERROR : return Volume -> LastIOStatus ; case FSW_UNSUPPORTED : return EFI_UNSUPPORTED ; case FSW_NOT_FOUND : return EFI_NOT_FOUND ; case FSW_VOLUME_CORRUPTED : return EFI_VOLUME_CORRUPTED ; default : return EFI_DEVICE_ERROR ; } }
Map FSW status codes to EFI status codes.
Map FSW status codes to EFI status codes .