1. 22 2月, 2017 8 次提交
    • T
      util: storage: add JSON backing volume parser 'raw' block driver · e4c6d4ae
      Tomáš Golembiovský 提交于
      The 'raw' block driver in Qemu is not directly interesting from
      libvirt's perspective, but it can be layered above some other block
      drivers and this may be interesting for the user.
      
      The patch adds support for the 'raw' block driver. The driver is treated
      simply as a pass-through and child driver in JSON is queried to get the
      necessary information.
      Signed-off-by: NTomáš Golembiovský <tgolembi@redhat.com>
      e4c6d4ae
    • T
      util: storage: split function for JSON backing volume parsing in two · cb4adb43
      Tomáš Golembiovský 提交于
      Split virStorageSourceParseBackingJSON into two functions so that the
      core can be reused by other functions. The new function called
      virStorageSourceParseBackingJSONInternal accepts virJSONValuePtr.
      Signed-off-by: NTomáš Golembiovský <tgolembi@redhat.com>
      cb4adb43
    • P
      news: Mention storage driver split · b26401fa
      Peter Krempa 提交于
      b26401fa
    • 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 2 次提交