loop-util: store sd_device object for the loop device

It will be used in later commits.
This commit is contained in:
Yu Watanabe
2022-09-06 11:26:00 +09:00
parent 802e7f7234
commit cc5bae6cc2
3 changed files with 29 additions and 27 deletions
+1
View File
@@ -54,6 +54,7 @@ static void* thread_func(void *ptr) {
if (r < 0)
log_error_errno(r, "Failed to allocate loopback device: %m");
assert_se(r >= 0);
assert_se(loop->dev);
log_notice("Acquired loop device %s, will mount on %s", loop->node, mounted);