1. 19 4月, 2016 1 次提交
    • C
      qemu: Remove redundant DomainObjIsActive calls · b0a2ba24
      Cole Robinson 提交于
      The common idiom in the driver API implementations is roughly:
      
      - ACL check
      - BeginJob (if needed)
      - AgentAvailable (if needed)
      - !IsActive
      
      A few calls had an extra !IsActive before BeginJob, which doesn't
      seem to serve much use. Drop them
      b0a2ba24
  2. 18 4月, 2016 1 次提交
  3. 15 4月, 2016 2 次提交
  4. 14 4月, 2016 1 次提交
  5. 06 4月, 2016 1 次提交
  6. 01 4月, 2016 1 次提交
    • P
      qemu: perf: Tweak flags before using them · 1d8351a9
      Peter Krempa 提交于
      @flags have a valid modification impact only after calling
      virDomainObjUpdateModificationImpact. virDomainObjGetOneDef calls it but
      doesn't update them in the caller.
      1d8351a9
  7. 31 3月, 2016 3 次提交
  8. 29 3月, 2016 7 次提交
  9. 25 3月, 2016 2 次提交
  10. 22 3月, 2016 3 次提交
  11. 21 3月, 2016 3 次提交
  12. 18 3月, 2016 1 次提交
    • M
      Drop paths.h include · 865764de
      Michal Privoznik 提交于
      We include the file in plenty of places. This is mostly due to
      historical reasons. The only place that needs something from the
      header file is storage_backend_fs which opens _PATH_MOUNTED. But
      it gets the file included indirectly via mntent.h. At no other
      place in our code we need _PATH_.*. Drop the include and
      configure check then.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      865764de
  13. 17 3月, 2016 1 次提交
  14. 16 3月, 2016 3 次提交
  15. 10 3月, 2016 5 次提交
  16. 09 3月, 2016 2 次提交
  17. 08 3月, 2016 1 次提交
  18. 07 3月, 2016 1 次提交
  19. 03 3月, 2016 1 次提交
    • M
      Initialize couple of variables. · bde6e002
      Michal Privoznik 提交于
      While trying to build with -Os couple of compile errors showed
      up.
      
      conf/domain_conf.c: In function 'virDomainChrRemove':
      conf/domain_conf.c:13666:24: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]
           virDomainChrDefPtr ret, **arrPtr = NULL;
                              ^
      Compiler fails to see that @ret is used only if set in the loop,
      but whatever, there's no harm in initializing the variable.
      
      In vboxAttachDrivesNew and _vboxAttachDrivesOld compiler thinks
      that @rc may be used uninitialized. Well, not directly, but maybe
      after some optimization. Yet again, no harm in initializing a
      variable.
      
      In file included from ./util/virthread.h:26:0,
                       from ./datatypes.h:28,
                       from vbox/vbox_tmpl.c:43,
                       from vbox/vbox_V3_1.c:37:
      vbox/vbox_tmpl.c: In function '_vboxAttachDrivesOld':
      ./util/virerror.h:181:5: error: 'rc' may be used uninitialized in this function [-Werror=maybe-uninitialized]
           virReportErrorHelper(VIR_FROM_THIS, code, __FILE__,              \
           ^
      In file included from vbox/vbox_V3_1.c:37:0:
      vbox/vbox_tmpl.c:1041:14: note: 'rc' was declared here
           nsresult rc;
                    ^
      Yet again, one uninitialized variable:
      
      qemu/qemu_driver.c: In function 'qemuDomainBlockCommit':
      qemu/qemu_driver.c:17194:9: error: 'baseSource' may be used uninitialized in this function [-Werror=maybe-uninitialized]
               qemuDomainPrepareDiskChainElement(driver, vm, baseSource,
               ^
      
      And another one:
      
      storage/storage_backend_logical.c: In function 'virStorageBackendLogicalMatchPoolSource.isra.2':
      storage/storage_backend_logical.c:618:33: error: 'thisSource' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                             thisSource->devices[j].path))
                                       ^
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      bde6e002