1. 22 2月, 2017 5 次提交
    • P
      spec: Modularize the storage driver · 27c8e36d
      Peter Krempa 提交于
      Create a new set of sub-packages containing the new storage driver
      modules so that certain heavy-weight backends (gluster, rbd) can be
      installed separately only if required.
      
      To keep backward compatibility the 'libvirt-driver-storage' package
      will be turned into a virtual package pulling in all the new storage
      backend sub-packages. The storage driver module will be moved into
      libvirt-driver-storage-core including the filesystem backend which is
      mandatory.
      
      This then allows to make libvirt-daemon-driver-qemu depend only on the
      core of the storage driver.
      
      All other meta-packages still depend on the full storage driver and thus
      pull in all the backends.
      27c8e36d
    • P
      tests: drivermodule: Make sure that all compiled storage backends can be loaded · 93a3f516
      Peter Krempa 提交于
      Add a new storage driver registration function that will force the
      backend code to fail if any of the storage backend modules can't be
      loaded. This will make sure that they work and are present.
      93a3f516
    • P
      storage: Turn storage backends into dynamic modules · 0a6d3e51
      Peter Krempa 提交于
      If driver modules are enabled turn storage driver backends into
      dynamically loadable objects. This will allow greater modularity for
      binary distributions, where heavyweight dependencies as rbd and gluster
      can be avoided by selecting only a subset of drivers if the rest is not
      necessary.
      
      The storage modules are installed into 'LIBDIR/libvirt/storage-backend/'
      and users can override the location by using
      'LIBVIRT_STORAGE_BACKEND_DIR' environment variable.
      
      rpm based distros will at this point install all the backends when
      libvirt-daemon-driver-storage package is installed.
      0a6d3e51
    • P
      spec: Don't check for storage driver backends in configure script · 4fb105f6
      Peter Krempa 提交于
      Explicitly enable --with-storage-scsi and disable --without-storage-zfs
      and --without-storage-vstorage so that the configure script doesn't
      check for them.
      
      Note that --with-storage-dir is enabled by default.
      4fb105f6
    • M
      conf: Don't accept dummy values for <memoryBacking/> attributes · 0888cb6a
      Michal Privoznik 提交于
      Our virSomeEnumTypeFromString() functions return either the value
      of item from the enum or -1 on error. Usually however the value 0
      means 'this value is not set in the domain XML, use some sensible
      default'. Therefore, we don't accept corresponding string in
      domain XML, for instance:
      
      <memoryBacking>
        <source mode="none"/>
        <access mode="default"/>
        <allocation mode="none"/>
      </memoryBacking>
      
      should be rejected as invalid XML.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      0888cb6a
  2. 21 2月, 2017 30 次提交
  3. 20 2月, 2017 5 次提交