mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Fail Btrfs device listing if an unexpeced error happens
This commit is contained in:
parent
818bb61e3b
commit
44bce00aef
1 changed files with 1 additions and 1 deletions
|
|
@ -674,7 +674,7 @@ static int devdereference_btrfs(uint64_t device, const char* dir, int fd, tommy_
|
|||
if (errno == ENODEV || errno == ENOENT)
|
||||
continue; /* this is the expected error on missing id */
|
||||
log_error(errno, "Ioctl BTRFS_IOC_DEV_INFO failed. %s.", strerror(errno));
|
||||
continue;
|
||||
return -1;
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue