blockdev-util: add partscan check function that takes an sd_device*

This commit is contained in:
Lennart Poettering
2024-07-01 16:35:56 +02:00
parent 68debef4c1
commit bff5d2fd5a
6 changed files with 21 additions and 12 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ static int loop_configure_verify(int fd, const struct loop_config *c) {
* into the block device. Let's hence verify if things work correctly here
* before returning. */
r = blockdev_partscan_enabled(fd);
r = blockdev_partscan_enabled_fd(fd);
if (r < 0)
return r;
if (r == 0) {