mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 09:55:18 +00:00
util: virstorage: Kill struct virStorageFileMetadata
Remove the now unused pieces of the structure.
This commit is contained in:
parent
d64d9ff948
commit
4905b983ea
@ -1823,7 +1823,6 @@ virStorageFileFeatureTypeFromString;
|
|||||||
virStorageFileFeatureTypeToString;
|
virStorageFileFeatureTypeToString;
|
||||||
virStorageFileFormatTypeFromString;
|
virStorageFileFormatTypeFromString;
|
||||||
virStorageFileFormatTypeToString;
|
virStorageFileFormatTypeToString;
|
||||||
virStorageFileFreeMetadata;
|
|
||||||
virStorageFileGetLVMKey;
|
virStorageFileGetLVMKey;
|
||||||
virStorageFileGetMetadata;
|
virStorageFileGetMetadata;
|
||||||
virStorageFileGetMetadataFromBuf;
|
virStorageFileGetMetadataFromBuf;
|
||||||
|
@ -1312,29 +1312,6 @@ virStorageFileChainGetBroken(virStorageSourcePtr chain,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* virStorageFileMetadataFree:
|
|
||||||
*
|
|
||||||
* Free pointers in passed structure and structure itself.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
virStorageFileFreeMetadata(virStorageFileMetadata *meta)
|
|
||||||
{
|
|
||||||
if (!meta)
|
|
||||||
return;
|
|
||||||
|
|
||||||
VIR_FREE(meta->relPath);
|
|
||||||
VIR_FREE(meta->path);
|
|
||||||
VIR_FREE(meta->relDir);
|
|
||||||
|
|
||||||
virStorageFileFreeMetadata(meta->backingMeta);
|
|
||||||
VIR_FREE(meta->backingStoreRaw);
|
|
||||||
VIR_FREE(meta->compat);
|
|
||||||
virBitmapFree(meta->features);
|
|
||||||
virStorageEncryptionFree(meta->encryption);
|
|
||||||
VIR_FREE(meta);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virStorageFileResize:
|
* virStorageFileResize:
|
||||||
*
|
*
|
||||||
|
@ -116,41 +116,6 @@ struct _virStorageTimestamps {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
typedef struct _virStorageFileMetadata virStorageFileMetadata;
|
|
||||||
typedef virStorageFileMetadata *virStorageFileMetadataPtr;
|
|
||||||
struct _virStorageFileMetadata {
|
|
||||||
/* Name of the current file as spelled by the user (top level) or
|
|
||||||
* metadata of the overlay (if this is a backing store). */
|
|
||||||
char *relPath;
|
|
||||||
/* Canonical name of the current file, used to detect loops in the
|
|
||||||
* backing store chain. */
|
|
||||||
char *path;
|
|
||||||
/* Directory to start from if backingStoreRaw is a relative file
|
|
||||||
* name. */
|
|
||||||
char *relDir;
|
|
||||||
/* Name of the child backing store recorded in metadata of the
|
|
||||||
* current file. */
|
|
||||||
char *backingStoreRaw;
|
|
||||||
|
|
||||||
/* Backing chain. In the common case, the child's
|
|
||||||
* backingMeta->path will be a duplicate of this file's
|
|
||||||
* backingStoreRaw; this setup makes it possible to detect missing
|
|
||||||
* backing files: if backingStoreRaw is NULL, this field should be
|
|
||||||
* NULL. If this field is NULL and backingStoreRaw is non-NULL,
|
|
||||||
* there was an error following the chain (such as a missing
|
|
||||||
* file). Otherwise, information about the child is here. */
|
|
||||||
virStorageFileMetadataPtr backingMeta;
|
|
||||||
|
|
||||||
/* Details about the current image */
|
|
||||||
int type; /* enum virStorageType */
|
|
||||||
int format; /* enum virStorageFileFormat */
|
|
||||||
virStorageEncryptionPtr encryption;
|
|
||||||
unsigned long long capacity;
|
|
||||||
virBitmapPtr features; /* bits described by enum virStorageFileFeature */
|
|
||||||
char *compat;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/* Information related to network storage */
|
/* Information related to network storage */
|
||||||
enum virStorageNetProtocol {
|
enum virStorageNetProtocol {
|
||||||
VIR_STORAGE_NET_PROTOCOL_NBD,
|
VIR_STORAGE_NET_PROTOCOL_NBD,
|
||||||
@ -323,8 +288,6 @@ const char *virStorageFileChainLookup(virStorageSourcePtr chain,
|
|||||||
const char **parent)
|
const char **parent)
|
||||||
ATTRIBUTE_NONNULL(1);
|
ATTRIBUTE_NONNULL(1);
|
||||||
|
|
||||||
void virStorageFileFreeMetadata(virStorageFileMetadataPtr meta);
|
|
||||||
|
|
||||||
int virStorageFileResize(const char *path,
|
int virStorageFileResize(const char *path,
|
||||||
unsigned long long capacity,
|
unsigned long long capacity,
|
||||||
unsigned long long orig_capacity,
|
unsigned long long orig_capacity,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user