dissect-image: introduce dissect_loop_device() which takes LoopDevice object

This commit is contained in:
Yu Watanabe
2022-09-03 01:32:01 +09:00
parent 062d511776
commit bad31660ed
9 changed files with 32 additions and 58 deletions
+2 -5
View File
@@ -2063,13 +2063,10 @@ int setup_namespace(
if (r < 0)
return log_debug_errno(r, "Failed to create loop device for root image: %m");
r = dissect_image(
loop_device->fd,
r = dissect_loop_device(
loop_device,
&verity,
root_image_options,
loop_device->diskseq,
loop_device->uevent_seqnum_not_before,
loop_device->timestamp_not_before,
dissect_image_flags,
&dissected_image);
if (r < 0)