]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mountfsd: Make singleFileSystem non-nullable
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 21 Jan 2026 18:39:33 +0000 (19:39 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 21 Jan 2026 22:12:47 +0000 (23:12 +0100)
It's always set, so no need to be nullable.

src/shared/varlink-io.systemd.MountFileSystem.c

index 78c922e2cb1fded69a28fcc330e8e9d39816df2a..30b1faf8d7aa472274cdb3011e05f41d453e3eaf 100644 (file)
@@ -76,7 +76,7 @@ static SD_VARLINK_DEFINE_METHOD(
                 SD_VARLINK_FIELD_COMMENT("An array with information about contained partitions that have been prepared for mounting, as well as their mount file descriptors."),
                 SD_VARLINK_DEFINE_OUTPUT_BY_TYPE(partitions, PartitionInfo, SD_VARLINK_ARRAY),
                 SD_VARLINK_FIELD_COMMENT("Indicates whether the image contains only a single file system, i.e. no partition table."),
-                SD_VARLINK_DEFINE_OUTPUT(singleFileSystem, SD_VARLINK_BOOL, SD_VARLINK_NULLABLE),
+                SD_VARLINK_DEFINE_OUTPUT(singleFileSystem, SD_VARLINK_BOOL, 0),
                 SD_VARLINK_FIELD_COMMENT("The used image policy."),
                 SD_VARLINK_DEFINE_OUTPUT(imagePolicy, SD_VARLINK_STRING, 0),
                 SD_VARLINK_FIELD_COMMENT("The size of the image in bytes."),