1. 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
  2. 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
  3. 08 6月, 2016 2 次提交
  4. 24 7月, 2015 1 次提交
  5. 24 4月, 2015 2 次提交
  6. 13 4月, 2015 1 次提交
  7. 02 3月, 2015 3 次提交
  8. 01 8月, 2014 1 次提交
  9. 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
  10. 25 3月, 2014 1 次提交
  11. 18 3月, 2014 1 次提交
  12. 08 10月, 2013 1 次提交
  13. 27 8月, 2013 1 次提交
  14. 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
  15. 25 7月, 2013 4 次提交
  16. 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
  17. 21 6月, 2013 1 次提交
  18. 05 6月, 2013 1 次提交
  19. 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
  20. 27 2月, 2013 1 次提交
  21. 25 2月, 2013 1 次提交