From 3a95a07d88a6926bd2f67dc53c977b8dbc828f9c Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Thu, 9 Jul 2020 10:21:29 +0200 Subject: media-server: Add ability for retry. This adds the possibility to request a retry in the media-listener if an operation failed. Usefull for example if you want to automatically reformat a disk if it wasn't possible to mount it. --- cpukit/include/rtems/media.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpukit/include/rtems/media.h') diff --git a/cpukit/include/rtems/media.h b/cpukit/include/rtems/media.h index b2a3e2dc91..3fea38b261 100644 --- a/cpukit/include/rtems/media.h +++ b/cpukit/include/rtems/media.h @@ -281,6 +281,9 @@ typedef enum { * * @retval RTEMS_SUCCESSFUL Successful operation. * @retval RTEMS_IO_ERROR In the inquiry state this will abort the action. + * @retval RTEMS_INCORRECT_STATE In the failed state this will cause a retry. + * Make sure to have a retry counter or similar to avoid endless loops if you + * use this value. */ typedef rtems_status_code (*rtems_media_listener)( rtems_media_event event, -- cgit v1.2.3