mountfsd: Communicate whether the image is a single filesystem

Various parts of the image dissection logic make use of whether the
thing is a single file system or not, so communicate this info back
from mountfsd.
This commit is contained in:
Daan De Meyer
2026-01-21 12:03:08 +01:00
parent a92a9efdc0
commit f6cfd8ac1f
3 changed files with 11 additions and 5 deletions
+1
View File
@@ -713,6 +713,7 @@ static int vl_method_mount_image(
return sd_varlink_replybo(
link,
SD_JSON_BUILD_PAIR_VARIANT("partitions", aj),
SD_JSON_BUILD_PAIR_BOOLEAN("singleFileSystem", di->single_file_system),
SD_JSON_BUILD_PAIR_STRING("imagePolicy", ps),
SD_JSON_BUILD_PAIR_UNSIGNED("imageSize", di->image_size),
SD_JSON_BUILD_PAIR_UNSIGNED("sectorSize", di->sector_size),