• D
    Require format to be passed into virStorageFileGetMetadata · bf80fc68
    Daniel P. Berrange 提交于
    Require the disk image to be passed into virStorageFileGetMetadata.
    If this is set to VIR_STORAGE_FILE_AUTO, then the format will be
    resolved using probing. This makes it easier to control when
    probing will be used
    
    * src/qemu/qemu_driver.c, src/qemu/qemu_security_dac.c,
      src/security/security_selinux.c, src/security/virt-aa-helper.c:
      Set VIR_STORAGE_FILE_AUTO when calling virStorageFileGetMetadata.
    * src/storage/storage_backend_fs.c: Probe for disk format before
      calling virStorageFileGetMetadata.
    * src/util/storage_file.h, src/util/storage_file.c: Remove format
      from virStorageFileMeta struct & require it to be passed into
      method.
    bf80fc68
qemu_driver.c 379.2 KB