mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 09:56:29 -05:00
Fail Btrfs device listing if an unexpeced error happens
This commit is contained in:
parent
e010c8e88c
commit
c0b7900f4c
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)
|
if (errno == ENODEV || errno == ENOENT)
|
||||||
continue; /* this is the expected error on missing id */
|
continue; /* this is the expected error on missing id */
|
||||||
log_error(errno, "Ioctl BTRFS_IOC_DEV_INFO failed. %s.", strerror(errno));
|
log_error(errno, "Ioctl BTRFS_IOC_DEV_INFO failed. %s.", strerror(errno));
|
||||||
continue;
|
return -1;
|
||||||
/* LCOV_EXCL_STOP */
|
/* LCOV_EXCL_STOP */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue