1. 17 11月, 2010 1 次提交
    • S
      deprecate fclose() and introduce VIR_{FORCE_}FCLOSE() · 7b7cb1ec
      Stefan Berger 提交于
      Similarly to deprecating close(), I am now deprecating fclose() and
      introduce VIR_FORCE_FCLOSE() and VIR_FCLOSE(). Also, fdopen() is replaced with
      VIR_FDOPEN().
      
      Most of the files are opened in read-only mode, so usage of
      VIR_FORCE_CLOSE() seemed appropriate. Others that are opened in write
      mode already had the fclose()<  0 check and I converted those to
      VIR_FCLOSE()<  0.
      
      I did not find occurrences of possible double-closed files on the way.
      7b7cb1ec
  2. 10 11月, 2010 1 次提交
    • S
      bye to close(), welcome to VIR_(FORCE_)CLOSE() · 60ae1c34
      Stefan Berger 提交于
      Using automated replacement with sed and editing I have now replaced all
      occurrences of close() with VIR_(FORCE_)CLOSE() except for one, of
      course. Some replacements were straight forward, others I needed to pay
      attention. I hope I payed attention in all the right places... Please
      have a look. This should have at least solved one more double-close
      error.
      60ae1c34
  3. 03 8月, 2010 1 次提交
  4. 10 2月, 2010 1 次提交
    • D
      Remove virConnectPtr from storage APIs & driver · 03136638
      Daniel P. Berrange 提交于
      The virConnectPtr is no longer required for error reporting since
      that is recorded in a thread local. Remove use of virConnectPtr
      from all APIs in storage_conf.{h,c} and storage_encryption_conf.{h,c}
      and update all callers to match
      03136638
  5. 09 2月, 2010 3 次提交
  6. 02 2月, 2010 1 次提交
    • J
      avoid format-related warnings · 4cd188d4
      Jim Meyering 提交于
      * src/qemu/qemu_monitor_text.c (qemuMonitorTextGetAllPCIAddresses):
      Use %s.
      * src/storage/storage_backend_iscsi.c (virStorageBackendCreateIfaceIQN):
      Likewise.
      * tools/virsh.c (cmdSecretSetValue): Likewise.
      4cd188d4
  7. 21 1月, 2010 1 次提交
    • D
      Implement support for multi IQN · 6aabcb5b
      David Allan 提交于
      Allows the initiator to use a variety of IQNs rather than just the
      system IQN when creating iSCSI pools.
      * docs/schemas/storagepool.rng: extends the syntax with <iqn name="..."/>
      * src/conf/storage_conf.[ch]: read and stores the iqn name
      * src/storage/storage_backend_iscsi.[ch]: implement the IQN selection
        when detected
      6aabcb5b
  8. 21 9月, 2009 1 次提交
  9. 02 4月, 2009 1 次提交
  10. 29 1月, 2009 1 次提交
    • J
      error-reporting calls using VIR_ERR_NO_MEMORY: use virReportOOMError instead · bc18a91f
      Jim Meyering 提交于
      * src/uml_conf.c (VIR_FROM_THIS): Define to VIR_FROM_UML.
      * src/xs_internal.c (VIR_FROM_THIS): Define to VIR_FROM_XEN.
      * src/xml.c (VIR_FROM_THIS): Define to VIR_FROM_XML.
      * src/stats_linux.c (VIR_FROM_THIS): Define to VIR_FROM_STATS_LINUX.
      * src/datatypes.c (VIR_FROM_THIS): Define to VIR_FROM_NONE.
      * src/lxc_conf.c (VIR_FROM_THIS): Define to VIR_FROM_LXC.
      * src/libvirt.c (VIR_FROM_THIS): Define to VIR_FROM_NONE.
      * src/node_device_conf.c (VIR_FROM_THIS): Define to VIR_FROM_NODEDEV.
      * src/openvz_conf.c (VIR_FROM_THIS): Define to VIR_FROM_OPENVZ.
      * src/openvz_driver.c (VIR_FROM_THIS): Define to VIR_FROM_OPENVZ.
      * src/conf.c (VIR_FROM_THIS): Define to VIR_FROM_CONF.
      Note: this loses config_filename:config_lineno diagnostics,
      but that's ok.
      * src/node_device.c (VIR_FROM_THIS): Define to VIR_FROM_NODEDEV.
      * src/sexpr.c (VIR_FROM_THIS): Define to VIR_FROM_SEXPR.
      * po/POTFILES.in: remove src/sexpr.c and src/lxc_conf.c
      bc18a91f
  11. 28 1月, 2009 1 次提交
  12. 21 1月, 2009 2 次提交
  13. 23 12月, 2008 1 次提交
  14. 28 11月, 2008 1 次提交
  15. 17 11月, 2008 1 次提交
  16. 05 11月, 2008 1 次提交
  17. 03 11月, 2008 1 次提交
    • C
      Give iSCSI and disk storage backend drivers the · 17a9e03c
      Chris Lalancette 提交于
      ability to resolve any kind of volume path to the pool target volume
      path.  For instance, if the pool was defined with a
      <target><path>/dev/disk/by-id</path></target> section, and one of the
      volumes is /dev/disk/by-id/scsi-S_beaf11, then you would be able to
      call virStorageVolLookupByPath("/dev/sdc"), and get the correct volume
      back.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      17a9e03c
  18. 16 10月, 2008 1 次提交
    • C
      Add support for detecting the partition table type when scanning · eeff3cdc
      Chris Lalancette 提交于
      iSCSI volumes.  This is implemented in the
      virStorageBackendUpdateVolInfoFD function, so all future callers will
      automatically benefit.  This is a somewhat large patch because the
      conversion of the virStorageBackendPartTableTypeToString necessitated
      a change to the formatToString and formatFromString function pointers,
      which caused fallout in other places in the storage stuff.  The good
      news is that most of these callers are now converted over to the
      VIR_ENUM_IMPL, which means a lot of redundant code is now gone.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      eeff3cdc
  19. 10 10月, 2008 1 次提交
  20. 08 8月, 2008 1 次提交
  21. 17 6月, 2008 5 次提交
  22. 06 6月, 2008 1 次提交
  23. 23 5月, 2008 1 次提交
    • R
      Standardize use of header files, making internal.h primary. · 1d8d4f86
      Richard W.M. Jones 提交于
      	* qemud/internal.h, qemud/qemud.h: Rename this file so it
      	doesn't conflict with src/internal.h.
      	* HACKING: Document how header files should be used.
      	* qemud/Makefile.am: Add src/ directory to includes.
      	* qemud/event.c, qemud/mdns.c, qemud/qemud.c, qemud/remote.c,
      	qemud/remote_protocol.c, qemud/remote_protocol.h,
      	qemud/remote_protocol.x, src/buf.c, src/libvirt.c,
      	src/nodeinfo.c, src/qemu_conf.c, src/qemu_driver.c,
      	src/stats_linux.c, src/storage_backend.c, src/storage_backend_fs.c,
      	src/storage_backend_iscsi.c, src/storage_backend_logical.c,
      	src/storage_conf.c, src/storage_driver.c, src/util.c,
      	src/util.h, src/virsh.c, src/virterror.c, src/xend_internal.c,
      	src/xml.c, tests/reconnect.c, tests/xmlrpctest.c,
      	tests/qparamtest.c: Standardize	use of header files.
      	* docs/*, po/*: Rebuild docs.
      1d8d4f86
  24. 11 4月, 2008 1 次提交
  25. 27 3月, 2008 1 次提交
  26. 05 3月, 2008 1 次提交
  27. 23 2月, 2008 1 次提交
    • J
      avoid format string warnings · b1b23f76
      Jim Meyering 提交于
      Avoid warnings like this:
      file:nnn:format not a string literal and no format arguments
      
      * qemud/qemud.c: Insert a "%s" format argument.
      * qemud/remote.c: Likewise.
      * src/iptables.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/storage_backend.c: Likewise.
      * src/storage_backend_fs.c: Likewise.
      * src/storage_backend_iscsi.c Likewise.
      * src/storage_backend_logical.c: Likewise.
      * src/storage_conf.c: Likewise.
      * src/storage_driver.c: Likewise.
      b1b23f76
  28. 20 2月, 2008 1 次提交