1. 19 7月, 2017 5 次提交
    • J
      test/Makefile.am: drop WARN_CFLAGS from LDFLAGS · 255cd95a
      Ján Tomko 提交于
      Introduced by commit 0832c58c, with the intention to link with
      the stack protector library.
      
      Another instance introduced by commit 4cbc15d0 which separated
      commandhelper_LDADD from LDADDS.
      
      Not needed because per commit 71b54636, automake should pass
      all the CFLAGS to the linker.
      255cd95a
    • W
      qemu: avoid deadlock on domain object enter monitor fail · 057c2fba
      Wang King 提交于
      Should be followed with qemuDomainObjExitMonitor only if
      qemuDomainObjEnterMonitorAsync returns 0.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      057c2fba
    • P
      security: apparmor: Properly link with storage driver in helper program · 5e515b54
      Peter Krempa 提交于
      The refactor to split up storage driver into modules broke the apparmor
      helper program, since that did not initialize the storage driver
      properly and thus detection of the backing chain could not work.
      
      Register the storage driver backends explicitly. Unfortunately it's now
      necessary to link with the full storage driver to satisfy dependencies
      of the loadable modules.
      Reviewed-by: NChristian Ehrhardt <christian.ehrhardt@canonical.com>
      Reported-by: NChristian Ehrhardt <christian.ehrhardt@canonical.com>
      Tested-by: NChristian Ehrhardt <christian.ehrhardt@canonical.com>
      5e515b54
    • M
      virFileInData: Report an error if unable to reposition file · 8ae82e67
      Michal Privoznik 提交于
      The purpose of this function is to tell if the current position
      in given FD is in data section or a hole and how much bytes there
      is remaining until the end of the section. This is achieved by
      couple of lseeks(). The most important part is that we reposition
      the FD back, so that the position is unchanged from the caller
      POV. And until now the final lseek() back to the original
      position was done with no check for errors. And I was convinced
      that that's okay since nothing can go wrong. However, review
      feedback from a related series persuaded me, that it's better to
      be safe than sorry. Therefore, lets check if the final lseek()
      succeeded and if it doesn't report an error.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      8ae82e67
    • J
      docs: schema: make disk driver name attribute optional · b494e09d
      Jim Fehlig 提交于
      /domain/devices/disk/driver/@name is not a required or mandatory
      attribute according to formatdomain, and indeed it was agreed on
      IRC that the attribute is "optional for input, recommended (but
      not required) for output". Currently the schema requires the
      attribute, causing virt-xml-validate to fail on disk config where
      the driver name is not explicitly specified. E.g.
      
      # cat test.xml | grep -A 5 cdrom
          <disk type='file' device='cdrom'>
            <driver type='raw'/>
            <target dev='hdb' bus='ide'/>
            <readonly/>
            <address type='drive' controller='0' bus='0' target='0' unit='1'/>
          </disk>
      
      # virt-xml-validate test.xml
      Relax-NG validity error : Extra element devices in interleave
      test.xml:21: element devices: Relax-NG validity error : Element domain failed to validate content
      test.xml fails to validate
      
      Relaxing the name attribute to be optional fixes the validation
      
      # virt-xml-validate test.xml
      test.xml validates
      b494e09d
  2. 18 7月, 2017 7 次提交
  3. 17 7月, 2017 15 次提交
  4. 16 7月, 2017 9 次提交
  5. 15 7月, 2017 4 次提交