Make .unrecoverable a persistent one-way recovery quarantine
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2026-08-29 21:25:49 +02:00
parent 1a5b5728d2
commit 87fe20eb25
46 changed files with 623 additions and 346 deletions

View file

@ -261,6 +261,12 @@ struct snapraid_block {
*/
#define FILE_IS_UNSYNCED 0x100
/**
* If the current recovery attempt was actually moved to the .unrecoverable name.
* It's used only in fix to track the physical quarantine state independently
* from FILE_IS_DAMAGED.
*/
#define FILE_IS_QUARANTINED 0x200
/**
* The file is deleted.