blockdev: propagate one more unexpected error

This commit is contained in:
Lennart Poettering
2020-05-18 18:41:56 +02:00
parent 34d16bad2d
commit 6cba41ab0d
+2
View File
@@ -29,6 +29,8 @@ int block_get_whole_disk(dev_t d, dev_t *ret) {
*ret = d;
return 0;
}
if (errno != ENOENT)
return -errno;
/* If it is a partition find the originating device */
xsprintf_sys_block_path(p, "/partition", d);