]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mount-tool: use lowercase table column names
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Jul 2024 11:38:09 +0000 (13:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Jul 2024 07:35:31 +0000 (09:35 +0200)
The "systemd-mount" tool is the one outlier in our codebase to specify
upper case column names. And it's quite pointless given that our table
output logic uppercases this anyway on output. Hence, let's fix that.

(This would be a compat break, if we'd support JSON output of this
table, but we do not currently. JSON fields use the literal column
name after all.)

src/mount/mount-tool.c

index 8ac08e95b8dd02335efb129329ad200fdc6c9cd0..a0ca17f0f07f525f42b585d677d223643a5d11dd 100644 (file)
@@ -1424,7 +1424,7 @@ static int list_devices(void) {
         if (r < 0)
                 return log_error_errno(r, "Failed to add property match: %m");
 
-        table = table_new("NODE", "PATH", "MODEL", "WWN", "FSTYPE", "LABEL", "UUID");
+        table = table_new("node", "path", "model", "wwn", "fstype", "label", "uuid");
         if (!table)
                 return log_oom();