• E
    conf: drop extra storage probe · fff74b27
    Eric Blake 提交于
    All callers of virStorageFileGetMetadataFromBuf were first calling
    virStorageFileProbeFormatFromBuf, to learn what format to pass in.
    But this function is already wired to do the exact same probe if
    the incoming format is VIR_STORAGE_FILE_AUTO, so it's simpler to
    just refactor the probing into the central function.
    
    * src/util/virstoragefile.h (virStorageFileGetMetadataFromBuf):
    Drop parameter.
    (virStorageFileProbeFormatFromBuf): Drop declaration.
    * src/util/virstoragefile.c (virStorageFileGetMetadataFromBuf):
    Do probe here instead of in callers.
    (virStorageFileProbeFormatFromBuf): Make static.
    * src/libvirt_private.syms (virstoragefile.h): Drop function.
    * src/storage/storage_backend_fs.c (virStorageBackendProbeTarget):
    Update caller.
    * src/storage/storage_backend_gluster.c
    (virStorageBackendGlusterRefreshVol): Likewise.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    fff74b27
libvirt_private.syms 47.1 KB