meson: Fix vstorage detection

We're supposed to error out if the user has explicitly asked
for vstorage support to be enabled and that can't be done, but
we've been looking at the wrong option.

Fixes: 2127d53f2f
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Andrea Bolognani 2021-05-26 17:47:05 +02:00
parent 1834e17097
commit 6f25a5ac8a

View File

@ -1838,7 +1838,7 @@ if conf.has('WITH_LIBVIRTD')
if not get_option('storage_vstorage').disabled()
vstorage_enable = true
if host_machine.system() != 'linux'
if get_option('storage_fs').enabled()
if get_option('storage_vstorage').enabled()
error('Vstorage is supported only on Linux')
else
vstorage_enable = false