Persist content state and bad block markings on sync errors while preserving deallocation state

This commit is contained in:
Andrea Mazzoleni 2026-09-03 16:35:16 +02:00
parent 719bc5a3d5
commit d96eecfd60
2 changed files with 132 additions and 56 deletions

View file

@ -31,10 +31,12 @@
/**
* State of the task.
*/
#define TASK_STATE_IOERROR_CONTINUE -4 /**< IO error. Continuation requested. */
#define TASK_STATE_ERROR_CONTINUE -3 /**< Generic error. Continuation requested. */
#define TASK_STATE_IOERROR -2 /**< IO error. Failure requested. */
#define TASK_STATE_ERROR -1 /**< Generic error. Failure requested. */
#define TASK_STATE_IOERROR_CONTINUE -6 /**< IO error. Continuation requested. */
#define TASK_STATE_ERROR_CONTINUE -5 /**< Generic error. Continuation requested. */
#define TASK_STATE_IOERROR -4 /**< IO error. Failure requested. */
#define TASK_STATE_ERROR -3 /**< Generic error. Failure requested. */
#define TASK_STATE_IOABORT -2 /**< IO error. Abort requested. */
#define TASK_STATE_ABORT -1 /**< Generic error. Abort requested. */
#define TASK_STATE_EMPTY 0 /**< Nothing to do. */
#define TASK_STATE_READY 1 /**< Ready to start. */
#define TASK_STATE_DONE 2 /**< Task completed. */