1. 24 11月, 2017 2 次提交
    • J
      storage: Convert virStoragePoolObj into virObjectLockable · dcb5d8bb
      John Ferlan 提交于
      Now that we're moved the object into virstorageobj, let's make the
      code use the lockable object.
      dcb5d8bb
    • J
      storage: Introduce virStoragePoolObjEndAPI · 770aa08e
      John Ferlan 提交于
      For now it'll just call the virStoragePoolObjUnlock, but a future
      adjustment will do something different. Since the new API will check
      for a NULL object before the Unlock call, callers no longer need to
      check for NULL before calling.
      
      The virStoragePoolObjUnlock is now private/static to virstorageobj.c
      with a short term forward reference.
      770aa08e
  2. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  3. 06 10月, 2017 1 次提交
  4. 19 9月, 2017 1 次提交
  5. 04 4月, 2017 1 次提交
  6. 09 3月, 2017 1 次提交
  7. 19 1月, 2017 1 次提交
  8. 19 7月, 2016 1 次提交
    • J
      storage: Add support to create a luks volume · 5e46d7d6
      John Ferlan 提交于
      Partially resolves:
      https://bugzilla.redhat.com/show_bug.cgi?id=1301021
      
      If the volume xml was looking to create a luks volume take the necessary
      steps in order to make that happen.
      
      The processing will be:
       1. create a temporary file (virStorageBackendCreateQemuImgSecretPath)
         1a. use the storage driver state dir path that uses the pool and
             volume name as a base.
      
       2. create a secret object (virStorageBackendCreateQemuImgSecretObject)
         2a. use an alias combinding the volume name and "_luks0"
         2b. add the file to the object
      
       3. create/add luks options to the commandline (virQEMUBuildLuksOpts)
         3a. at the very least a "key-secret=%s" using the secret object alias
         3b. if found in the XML the various "cipher" and "ivgen" options
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      5e46d7d6
  9. 22 6月, 2016 1 次提交
    • J
      storage: Adjust qemu-img switches check · f6a92f8e
      John Ferlan 提交于
      Since we support QEMU 0.12 and later, checking for support of specific flags
      added prior to that isn't necessary.
      
      Thus start with the base of having the "-o options" available for the
      qemu-img create option and then determine whether we have the compat
      option for qcow2 files (which would be necessary up through qemu 2.0
      where the default changes to compat 0.11).
      
      Adjust test to no long check for NONE and FLAG options as well was removing
      results of tests that would use that option.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f6a92f8e
  10. 08 6月, 2016 2 次提交
  11. 24 7月, 2015 1 次提交
  12. 24 4月, 2015 2 次提交
  13. 13 4月, 2015 1 次提交
  14. 02 3月, 2015 3 次提交
  15. 01 8月, 2014 1 次提交
  16. 16 7月, 2014 1 次提交
    • C
      add nocow test case · 0b0c641b
      Chunyan Liu 提交于
      Add file in storagevolxml2xmlin and storagevolxml2xmlout, let
      storagevolxml2xmltest and storagevolschematest cover 'nocow'.
      Add test case to storagevolxml2argvtest to cover 'nocow'.
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      0b0c641b
  17. 25 3月, 2014 1 次提交
  18. 18 3月, 2014 1 次提交
  19. 08 10月, 2013 1 次提交
  20. 27 8月, 2013 1 次提交
  21. 26 7月, 2013 1 次提交
    • J
      Resolve Coverity complaint in storagevolxml2argvtest · 99d3a60b
      Ján Tomko 提交于
      Ignore NULL pool in testSetVolumeType to silence Coverity,
      even though we only call it with NULL pool when vol is also NULL.
      
      (13) Event var_deref_model:	Passing null pointer "inputpool" to
      function "testSetVolumeType(virStorageVolDefPtr, virStoragePoolDefPtr)",
      which dereferences it. [details]
      Also see events: [assign_zero]
      
      95    testSetVolumeType(inputvol, inputpool);
      99d3a60b
  22. 25 7月, 2013 4 次提交
  23. 10 7月, 2013 1 次提交
    • M
      Introduce OOM reporting to virAsprintf · dc6f2dad
      Michal Privoznik 提交于
      Actually, I'm turning this function into a macro as filename,
      function name and line number needs to be passed. The new
      function virAsprintfInternal is introduced with the extended set
      of arguments.
      dc6f2dad
  24. 21 6月, 2013 1 次提交
  25. 05 6月, 2013 1 次提交
  26. 02 5月, 2013 1 次提交
    • M
      virutil: Move string related functions to virstring.c · 7c9a2d88
      Michal Privoznik 提交于
      The source code base needs to be adapted as well. Some files
      include virutil.h just for the string related functions (here,
      the include is substituted to match the new file), some include
      virutil.h without any need (here, the include is removed), and
      some require both.
      7c9a2d88
  27. 27 2月, 2013 1 次提交
  28. 25 2月, 2013 1 次提交