]> git.ipfire.org Git - thirdparty/systemd.git/commit
varlink-io.systemd.MachineInstance,vmspawn: treat AddStorage/RemoveStorage name as... 42017/head
authorChristian Brauner <brauner@kernel.org>
Tue, 12 May 2026 10:54:13 +0000 (12:54 +0200)
committerChristian Brauner <brauner@kernel.org>
Tue, 12 May 2026 20:54:08 +0000 (22:54 +0200)
commit91575e3a5ad4fe107d2e73e5b790d4b8d0069d6d
tree852aea479dd39f368109c9c52ce110d01bc041bb
parent968d189414b706e0515962e5a1b57d6c954d190e
varlink-io.systemd.MachineInstance,vmspawn: treat AddStorage/RemoveStorage name as opaque

The 'name' field on AddStorage and RemoveStorage was documented as
'<provider>:<volume>' and enforced via machine_storage_name_split() at
the varlink boundary. That form is only the convention machinectl
inherits from the StorageProvider routing path; the API itself only
needs a unique identifier the caller can re-use to detach the binding.

Drop the strict format check, require only a non-empty string, and
update the IDL docs to describe the field as a caller-supplied
identifier with machinectl's convention as a non-normative example.

Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
src/shared/varlink-io.systemd.MachineInstance.c
src/vmspawn/vmspawn-varlink.c