1. 21 8月, 2019 1 次提交
  2. 19 6月, 2019 1 次提交
  3. 30 1月, 2019 1 次提交
    • J
      storage: Add infrastructure to manage XML namespace options · 7a227688
      John Ferlan 提交于
      Introduce the virStoragePoolFSMountOptionsDef to be used to
      manage the Storage Pool XML Namespace for mount options.
      
      Using a new virStorageBackendNamespaceInit function, set the
      virStoragePoolXMLNamespace into the _virStoragePoolOptions when
      the storage backend is loaded.
      
      Modify the storagepool.rng to allow for the usage of a different
      XML namespace to parse the fs_mount_opts to be included with
      the fs and netfs storage pool definitions.
      
      Modify the storagepoolxml2xmltest to utilize a properly modified
      XML file to parse and format the namespace for a netfs storage pool.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      7a227688
  4. 14 12月, 2018 2 次提交
    • D
      Enforce a standard header file guard symbol name · 568a4172
      Daniel P. Berrangé 提交于
      Require that all headers are guarded by a symbol named
      
        LIBVIRT_$FILENAME
      
      where $FILENAME is the uppercased filename, with all characters
      outside a-z changed into '_'.
      
      Note we do not use a leading __ because that is technically a
      namespace reserved for the toolchain.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      568a4172
    • 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
  5. 13 12月, 2018 3 次提交
  6. 12 9月, 2018 1 次提交
  7. 27 6月, 2018 1 次提交
    • 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
  8. 07 5月, 2018 1 次提交
  9. 01 2月, 2018 2 次提交
  10. 27 10月, 2017 1 次提交
  11. 31 8月, 2017 1 次提交
  12. 15 5月, 2017 1 次提交
  13. 26 4月, 2017 1 次提交
    • J
      storage: Introduce virStorageBackendZeroPartitionTable · e8b02124
      John Ferlan 提交于
      Create a wrapper/helper that can be used to call the storage backend
      wipe helper - storageBackendVolWipeLocalFile for future use by logical
      and disk backends to clear out the partition table rather than having
      each open code the same algorithm.
      e8b02124
  14. 04 4月, 2017 2 次提交
  15. 18 3月, 2017 1 次提交
  16. 27 1月, 2017 1 次提交
    • J
      storage: Fix build due to recent storage backend code movement · 448e2d5e
      John Ferlan 提交于
      Commit id '5f07c3c0' broke the freebsd build in the libvirt CI test
      environment because the UMOUNT was not defined unless WITH_STORAGE_FS
      is defined.
      
      So remove the virStorageBackendUmountLocal from storage_util.c,h and
      restore the code back in the storage_backend_fs.c and _vstorage.c
      modules.
      448e2d5e
  17. 26 1月, 2017 2 次提交
    • J
      storage: Create common file/dir volume backend helpers · 1452c85f
      John Ferlan 提交于
      Move all the volume functions to storage_util to create local/common helpers
      using the same naming syntax as the existing upload, download, and wipe
      virStorageBackend*Local API's.
      
      In the process of doing so, found more API's that can now become local
      to storage_util. In order to distinguish between local/external - I
      changed the names of the now local only ones from "virStorageBackend..."
      to just "storageBackend..."
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      1452c85f
    • J
      storage: Create common file/dir pool backend helpers · 5f07c3c0
      John Ferlan 提交于
      Move some pool functions to storage_util to create local/common helpers
      using the same naming syntax as the existing upload, download, and wipe
      virStorageBackend*Local API's.
      
      In the process of doing so, found a few API's that can now become local
      to storage_util. In order to distinguish between local/external - I
      changed the names of the now local only ones from "virStorageBackend..."
      to just "storageBackend..."
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      5f07c3c0
  18. 19 1月, 2017 2 次提交