From: Lennart Poettering Date: Tue, 14 Apr 2026 13:15:05 +0000 (+0200) Subject: mountfsd: generate properly underscored designator json strings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5575d9eb519968f48a15e8e9c5a4d8ea1d154fb;p=thirdparty%2Fsystemd.git mountfsd: generate properly underscored designator json strings Let's make sure we generate data that will actually pass the IDL checks, and use underscores for designator names. (This is a bugfix) --- diff --git a/src/mountfsd/mountwork.c b/src/mountfsd/mountwork.c index a5d34d44790..42860db1347 100644 --- a/src/mountfsd/mountwork.c +++ b/src/mountfsd/mountwork.c @@ -748,7 +748,7 @@ static int vl_method_mount_image( r = sd_json_variant_append_arraybo( &aj, - SD_JSON_BUILD_PAIR_STRING("designator", partition_designator_to_string(d)), + JSON_BUILD_PAIR_ENUM("designator", partition_designator_to_string(d)), SD_JSON_BUILD_PAIR_BOOLEAN("writable", pp->rw), SD_JSON_BUILD_PAIR_BOOLEAN("growFileSystem", pp->growfs), SD_JSON_BUILD_PAIR_CONDITION(pp->partno > 0, "partitionNumber", SD_JSON_BUILD_INTEGER(pp->partno)),