]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared: move storage-util to libshared
authorChristian Brauner <brauner@kernel.org>
Fri, 1 May 2026 11:29:56 +0000 (13:29 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 6 May 2026 08:30:16 +0000 (10:30 +0200)
commitefb0a0fa7a4c4f25a5abb5df60f4813951279772
treeef22b4b810b70e3fc68f391b676c427ec85b37a0
parenteaa0073027b06c384b5f5e9cb57ec850ea024728
shared: move storage-util to libshared

The storage backend providers (block, fs) and storagectl currently each
extract storage-util.c into their target. Several upcoming consumers
(machine-util's BindVolume parser, vmspawn's hotplug glue, machinectl's
new bind-volume verbs) need the StorageProvider type/string-table
helpers and a future shared Acquire client helper.

Move storage-util.{c,h} to src/shared so libshared exports the symbols
once and every consumer (storage providers, storagectl, libshared
itself) picks them up by linking libshared. Drop the now-redundant
'extract'/'objects' wiring in src/storage/meson.build.

No code changes; this is purely a relocation.

Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
src/shared/meson.build
src/shared/storage-util.c [moved from src/storage/storage-util.c with 100% similarity]
src/shared/storage-util.h [moved from src/storage/storage-util.h with 100% similarity]
src/storage/meson.build