Make the devices commands to fail if unsupported in the platform

This commit is contained in:
Andrea Mazzoleni 2026-05-21 14:51:01 +02:00
parent ee5c7ebf13
commit 23b4cc5fa0
3 changed files with 29 additions and 7 deletions

View file

@ -250,7 +250,7 @@ void state_touch(struct snapraid_state* state);
/**
* Devices operations.
*/
void state_device(struct snapraid_state* state, int operation, tommy_list* filterlist_disk);
int state_device(struct snapraid_state* state, int operation, tommy_list* filterlist_disk);
/**
* Sync the parity data.