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
@@ -365,12 +365,9 @@ static int portable_extract_by_path(
if (r < 0)
return log_debug_errno(r, "Failed to create temporary directory: %m");
r = dissect_image(
d->fd,
r = dissect_loop_device(
d,
NULL, NULL,
d->diskseq,
d->uevent_seqnum_not_before,
d->timestamp_not_before,
DISSECT_IMAGE_READ_ONLY |
DISSECT_IMAGE_GENERIC_ROOT |
DISSECT_IMAGE_REQUIRE_ROOT |