• E
    storage: get entire metadata chain in one call · 35c74c17
    Eric Blake 提交于
    Previously, no one was using virStorageFileGetMetadata, and for good
    reason - it couldn't support root-squash NFS.  Change the signature
    and make it useful to future patches, including enhancing the metadata
    to recursively track the entire chain.
    
    * src/util/storage_file.h (_virStorageFileMetadata): Add field.
    (virStorageFileGetMetadata): Alter signature.
    * src/util/storage_file.c (virStorageFileGetMetadata): Rewrite.
    (virStorageFileGetMetadataRecurse): New function.
    (virStorageFileFreeMetadata): Handle recursion.
    35c74c17
storage_file.c 36.7 KB