diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c index d61185ff4..3e87ddc3a 100644 --- a/lib/device/dev-cache.c +++ b/lib/device/dev-cache.c @@ -29,6 +29,7 @@ #include #include #include +#include /* coverity[unnecessary_header] needed for MuslC */ #include @@ -1812,7 +1813,51 @@ static int _setup_devices_file_dmeventd(struct cmd_context *cmd) (void) dm_strncpy(cmd->devices_file_path, path, sizeof(cmd->devices_file_path)); return 1; } - + +/* + * When lvm.conf use_devicesfile=0, then an existing system.devices + * is renamed to system.devices-unused..