]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Fix vstorage detection
authorAndrea Bolognani <abologna@redhat.com>
Wed, 26 May 2021 15:47:05 +0000 (17:47 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 1 Jun 2021 12:30:39 +0000 (14:30 +0200)
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: 2127d53f2f90443f3e4919c1082350ee2b3096f1
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
meson.build

index 6a3f5fa5788c6a0f5b1fe44140a6d1ceb3ef973b..c203c43299b85843f21adb02eb5ab0b507d903f4 100644 (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