endif
if not get_option('storage_vstorage').disabled()
- vstorage_enable = true
-
- foreach name : ['vstorage', 'vstorage-mount', 'umount']
- set_variable(
- '@0@_prog'.format(name.underscorify()),
- find_program(name, required: get_option('storage_vstorage'), dirs: libvirt_sbin_path)
- )
- if not get_variable('@0@_prog'.format(name.underscorify())).found()
- vstorage_enable = false
- endif
- endforeach
-
- if vstorage_enable
- use_storage = true
- conf.set('WITH_STORAGE_VSTORAGE', 1)
- foreach name : ['vstorage', 'vstorage-mount', 'umount']
- path = get_variable('@0@_prog'.format(name.underscorify())).path()
- conf.set_quoted(name.to_upper(), path)
- endforeach
- endif
+ use_storage = true
+ conf.set('WITH_STORAGE_VSTORAGE', 1)
endif
if not get_option('storage_zfs').disabled()
mode = g_strdup_printf("%o", def->target.perms.mode);
- cmd = virCommandNewArgList(VSTORAGE_MOUNT,
+ cmd = virCommandNewArgList("vstorage-mount",
"-c", def->source.name,
def->target.path,
"-m", mode,
if ((rc = virStorageBackendVzIsMounted(pool)) != 1)
return rc;
- cmd = virCommandNewArgList(UMOUNT, def->target.path, NULL);
+ cmd = virCommandNewArgList("umount", def->target.path, NULL);
return virCommandRun(cmd, NULL);
}