1. 12 7月, 2019 2 次提交
  2. 25 6月, 2019 1 次提交
  3. 18 6月, 2019 1 次提交
    • Y
      storage: escape ipv6 for ceph mon hosts to librados · cdd362e0
      Yi Li 提交于
      Hosts for rbd are ceph monitor daemons. These have fixed IP addresses,
      so they are often referenced by IP rather than hostname for
      convenience, or to avoid relying on DNS. Using IPv4 addresses as the
      host name works already, but IPv6 addresses require rbd-specific
      escaping because the colon is used as an option separator in the
      string passed to librados.
      
      Escape these colons, and enclose the IPv6 address in square brackets
      so it is distinguished from the port, which is currently mandatory.
      Signed-off-by: NYi Li <yili@winhong.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NJán Tomko <jtomko@redhat.com>
      cdd362e0
  4. 03 4月, 2019 2 次提交
  5. 19 3月, 2019 2 次提交
  6. 18 3月, 2019 2 次提交
  7. 16 3月, 2019 1 次提交
  8. 13 2月, 2019 1 次提交
  9. 12 2月, 2019 1 次提交
  10. 31 1月, 2019 1 次提交
  11. 30 1月, 2019 1 次提交
  12. 14 12月, 2018 1 次提交
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  13. 04 9月, 2018 2 次提交
  14. 01 2月, 2018 2 次提交
  15. 08 11月, 2017 1 次提交
  16. 19 9月, 2017 1 次提交
    • J
      storage: Introduce storage volume add, delete, count APIs · 40630a8e
      John Ferlan 提交于
      Create/use virStoragePoolObjAddVol in order to add volumes onto list.
      
      Create/use virStoragePoolObjRemoveVol in order to remove volumes from list.
      
      Create/use virStoragePoolObjGetVolumesCount to get count of volumes on list.
      
      For the storage driver, the logic alters when the volumes.obj list grows
      to after we've fetched the volobj. This is an optimization of sorts, but
      also doesn't "needlessly" grow the volumes.objs list and then just decr
      the count if the virGetStorageVol fails.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      40630a8e
  17. 22 7月, 2017 1 次提交
  18. 21 2月, 2017 1 次提交
  19. 19 1月, 2017 1 次提交
  20. 28 11月, 2016 1 次提交
  21. 05 10月, 2016 3 次提交
  22. 26 9月, 2016 1 次提交
  23. 25 8月, 2016 1 次提交
  24. 24 6月, 2016 1 次提交
    • J
      secret: Move virStorageSecretType and rename · 1eca5f65
      John Ferlan 提交于
      Move the enum into a new src/util/virsecret.h, rename it to be
      virSecretLookupType. Add a src/util/virsecret.h in order to perform
      a couple of simple operations on the secret XML and virSecretLookupTypeDef
      for clearing and copying.
      
      This includes quite a bit of collateral damage, but the goal is to remove
      the "virStorage*" and replace with the virSecretLookupType so that it's
      easier to to add new lookups that aren't necessarily storage pool related.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      1eca5f65
  25. 22 6月, 2016 1 次提交
  26. 16 5月, 2016 1 次提交
  27. 29 3月, 2016 1 次提交
    • P
      storage: rbd: Fix build · 98033a8b
      Peter Krempa 提交于
      After the recent commits the build didn't work for me. Fix it by
      using size_t as the callback argument is using and the correct
      formatter. The attempted fixup to use %llu as a formatter was wrong.
      98033a8b
  28. 25 3月, 2016 1 次提交
  29. 21 3月, 2016 1 次提交
  30. 24 2月, 2016 1 次提交
    • E
      rbd: fix 32-bit build · 5a5c2837
      Eric Blake 提交于
      %zu is not always synonymous with uint64_t; on 32-bit machines,
      size_t is only 32 bits.  Prefer "%lld"/'unsigned long long' when
      the variable is under our control, and "%"PRIu64 when we are
      stuck with 'uint64_t' from RBD.
      
      Fixes errors such as:
      
      ../../src/storage/storage_backend_rbd.c: In function 'virStorageBackendRBDVolWipe':
      ../../src/storage/storage_backend_rbd.c:1281:15: error: format '%zu' expects argument of type 'size_t', but argument 8 has type 'uint64_t {aka long long unsigned int}' [-Werror=format=]
           VIR_DEBUG("Need to wipe %zu bytes from RBD image %s/%s",
                     ^
      ../../src/util/virlog.h:90:73: note: in definition of macro 'VIR_DEBUG_INT'
           virLogMessage(src, VIR_LOG_DEBUG, filename, linenr, funcname, NULL, __VA_ARGS__)
                                                                               ^
      ../../src/storage/storage_backend_rbd.c:1281:5: note: in expansion of macro 'VIR_DEBUG'
           VIR_DEBUG("Need to wipe %zu bytes from RBD image %s/%s",
           ^
      Signed-off-by: NEric Blake <eblake@redhat.com>
      5a5c2837
  31. 22 2月, 2016 1 次提交
  32. 13 2月, 2016 1 次提交
    • W
      rbd: Use RBD fast-diff for querying actual volume allocation · 98782f88
      Wido den Hollander 提交于
      Since Ceph version Infernalis (9.2.0) the new fast-diff mechanism
      of RBD allows for querying actual volume usage.
      
      Prior to this version there was no easy and fast way to query how
      much allocation a RBD volume had inside a Ceph cluster.
      
      To use the fast-diff feature it needs to be enabled per RBD image
      and is only supported by Ceph cluster running version Infernalis
      (9.2.0) or newer.
      
      Without the fast-diff feature enabled libvirt will report an allocation
      identical to the image capacity. This is how libvirt behaves currently.
      
      'virsh vol-info rbd/image2' might output for example:
      
        Name:           image2
        Type:           network
        Capacity:       1,00 GiB
        Allocation:     124,00 MiB
      
      Newly created volumes will have the fast-diff feature enabled if the
      backing Ceph cluster supports it.
      Signed-off-by: NWido den Hollander <wido@widodh.nl>
      98782f88