1. 21 8月, 2019 1 次提交
  2. 16 3月, 2019 1 次提交
  3. 18 2月, 2019 3 次提交
  4. 13 2月, 2019 3 次提交
  5. 12 2月, 2019 6 次提交
  6. 01 2月, 2019 2 次提交
  7. 31 1月, 2019 1 次提交
  8. 30 1月, 2019 4 次提交
  9. 14 12月, 2018 1 次提交
    • J
      storage: Fix build issue with MOUNT and VGCHANGE commands · e6f53e7a
      John Ferlan 提交于
      Turns out there some build platforms that must not define MOUNT
      or VGCHANGE in config.h... So moving the commands from the storage
      backend specific module into a common storage_util module causes
      issues for those platforms.
      
      So instead of assuming they are there, let's just pass the command
      string to the storage util API's from the storage backend specific
      code (as would have been successful before).  Also modify the test
      to determine whether the MOUNT and/or VGCHANGE doesn't exist and
      just define it to (for example) what Fedora has for the path. Could
      have just used "mount" and "vgchange" in the call, but that defeats
      the purpose of adding the call to virTestClearCommandPath.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      e6f53e7a
  10. 13 12月, 2018 4 次提交
  11. 20 9月, 2018 2 次提交
  12. 17 9月, 2018 1 次提交
  13. 12 9月, 2018 3 次提交
  14. 24 8月, 2018 2 次提交
  15. 09 8月, 2018 1 次提交
  16. 24 7月, 2018 1 次提交
  17. 06 7月, 2018 1 次提交
  18. 27 6月, 2018 3 次提交
    • J
      storage: Add support for using inputvol for encryption · 39cef12a
      John Ferlan 提交于
      Starting with QEMU 2.9, encryption convert processing requires
      a multi-step process in order to generate an encrypted image from
      some non encrypted raw image.
      
      Processing requires to first create an encrypted image using the
      sizing parameters from the input source and second to use the
      --image-opts, -n, and --target-image-opts options along with inline
      driver options to describe the input and output files, generating
      two commands such as:
      
        $ qemu-img create -f luks \
            --object secret,id=demo.img_encrypt0,file=/path/to/secretFile \
            -o key-secret=demo.img_encrypt0 \
            demo.img 500K
        Formatting 'demo.img', fmt=luks size=512000 key-secret=demo.img_encrypt0
        $ qemu-img convert --image-opts -n --target-image-opts \
            --object secret,id=demo.img_encrypt0,file=/path/to/secretFile \
            driver=raw,file.filename=sparse.img \
            driver=luks,file.filename=demo.img,key-secret=demo.img_encrypt0
        $
      
      This patch handles the convert processing by running the processing
      in a do..while loop essentially reusing the existing create logic and
      arguments to create the target vol from the inputvol and then converting
      the inputvol using new arguments.
      
      This then allows the following virsh command to work properly:
      
        virsh vol-create-from default encrypt1-luks.xml data.img --inputpool default
      
      where encrypt1-luks.xml would provided the path and secret for
      the new image, while data.img would be the source image.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      39cef12a
    • J
      storage: Remove storageBackendGenerateSecretData · 40f0e034
      John Ferlan 提交于
      Since we no longer support creating qcow2 encryption format
      volumes, we no longer have to possibly create some secret and
      have no real need for the function, so move the remaining
      functionality to build the secret path back into the caller
      storageBackendCreateQemuImg.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      40f0e034
    • J
      storage: Clean up storageBackendCreateQemuImgOpts · 9b753116
      John Ferlan 提交于
      Since we only generate the @encinfo when there's a secret object
      and thus we need to reference it in the options,
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      9b753116