loop-util: save backing file of loopback block device

It will be used in later commits.
This commit is contained in:
Yu Watanabe
2022-09-07 20:45:24 +09:00
parent aa0295f1d9
commit e77cab8248
3 changed files with 31 additions and 3 deletions
+1
View File
@@ -55,6 +55,7 @@ static void* thread_func(void *ptr) {
log_error_errno(r, "Failed to allocate loopback device: %m");
assert_se(r >= 0);
assert_se(loop->dev);
assert_se(loop->backing_file);
log_notice("Acquired loop device %s, will mount on %s", loop->node, mounted);