mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-19 14:36:38 -05:00
Skip devices without a backing block device (network/virtual filesystems) in device operations
This commit is contained in:
parent
487305a760
commit
47e439ddff
3 changed files with 23 additions and 2 deletions
|
|
@ -1237,13 +1237,16 @@ int state_device_force(struct snapraid_state* state, int operation, tommy_list*
|
|||
}
|
||||
}
|
||||
|
||||
/* distinguish skipped devices from unsupported device queries */
|
||||
if (ret == 0 && tommy_list_empty(&low)) {
|
||||
ret = -1;
|
||||
if (tommy_list_empty(&high)) {
|
||||
ret = -1;
|
||||
log_error(ESOFT, "No accessible devices selected for this operation.\n");
|
||||
goto bail;
|
||||
}
|
||||
|
||||
/* not an error, the selected disks are on network or virtual filesystems without a block device to manage */
|
||||
msg_info("No physical devices found for the selected disks, nothing to do.\n");
|
||||
goto bail;
|
||||
}
|
||||
|
||||
if (ret != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue