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
@@ -945,14 +945,11 @@ static int run(int argc, char *argv[]) {
if (r < 0)
return log_error_errno(r, "Failed to set up loopback device for %s: %m", arg_image);
r = dissect_image_and_warn(
d->fd,
r = dissect_loop_device_and_warn(
arg_image,
d,
&arg_verity_settings,
NULL,
d->diskseq,
d->uevent_seqnum_not_before,
d->timestamp_not_before,
arg_flags,
&m);
if (r < 0)