1. 13 12月, 2018 3 次提交
  2. 05 12月, 2018 1 次提交
  3. 12 11月, 2018 1 次提交
    • E
      conf: Add new module node_device_util · f1e8d2f0
      Erik Skultety 提交于
      There's a lot of stuff going on in src/conf/nodedev_conf which is
      sometimes not directly related to config and we're not really consistent
      with putting only parser/formatter related stuff here, e.g. like we do
      for domains. So, let's start simply by adding a new module
      node_device_util containing some of the helpers. Unfortunately, even
      though these helpers tend to open a secondary driver connection and would
      be much therefore better suited as a nodedev driver module, we can't do
      that without pulling headers from the driver into conf/ and that's wrong
      because we want conf/ to stay driver-agnostic.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      f1e8d2f0
  4. 21 9月, 2018 1 次提交
  5. 20 9月, 2018 7 次提交
  6. 17 9月, 2018 1 次提交
  7. 12 9月, 2018 3 次提交
  8. 04 9月, 2018 6 次提交
  9. 24 8月, 2018 2 次提交
  10. 15 8月, 2018 1 次提交
    • M
      storage: Properly terminate secrets · bfd91dc0
      Michal Privoznik 提交于
      The virSecretGetSecretString() helper looks up a secret for given
      pool and returns its value in @secret_value and its length in
      @secret_value_size. However, the trailing '\0' is not included in
      either of the variables. This is because usually the value of the
      secret is passed to some encoder (usually base64 encoder) where
      the trailing zero must not be accounted for.
      
      However, in two places we actually want the string as we don't
      process it any further.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      bfd91dc0
  11. 13 8月, 2018 3 次提交
  12. 09 8月, 2018 1 次提交
  13. 06 8月, 2018 3 次提交
  14. 25 7月, 2018 2 次提交
  15. 24 7月, 2018 1 次提交
  16. 11 7月, 2018 1 次提交
  17. 06 7月, 2018 1 次提交
  18. 27 6月, 2018 2 次提交
    • 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