mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-27 09:57:43 +03:00
storage_file: Remove virStorageFileBackendFsPriv
The private data structure is no longer used. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
218ddd60e7
commit
170b075da3
@ -40,27 +40,12 @@
|
||||
VIR_LOG_INIT("storage.storage_backend_fs");
|
||||
|
||||
|
||||
typedef struct _virStorageFileBackendFsPriv virStorageFileBackendFsPriv;
|
||||
typedef virStorageFileBackendFsPriv *virStorageFileBackendFsPrivPtr;
|
||||
|
||||
struct _virStorageFileBackendFsPriv {
|
||||
char *canonpath; /* unique file identifier (canonical path) */
|
||||
};
|
||||
|
||||
|
||||
static void
|
||||
virStorageFileBackendFileDeinit(virStorageSourcePtr src)
|
||||
{
|
||||
virStorageDriverDataPtr drv = src->drv;
|
||||
virStorageFileBackendFsPrivPtr priv = drv->priv;
|
||||
|
||||
VIR_DEBUG("deinitializing FS storage file %p (%s:%s)", src,
|
||||
virStorageTypeToString(virStorageSourceGetActualType(src)),
|
||||
src->path);
|
||||
|
||||
|
||||
VIR_FREE(priv->canonpath);
|
||||
VIR_FREE(priv);
|
||||
}
|
||||
|
||||
|
||||
@ -68,17 +53,12 @@ static int
|
||||
virStorageFileBackendFileInit(virStorageSourcePtr src)
|
||||
{
|
||||
virStorageDriverDataPtr drv = src->drv;
|
||||
virStorageFileBackendFsPrivPtr priv = NULL;
|
||||
|
||||
VIR_DEBUG("initializing FS storage file %p (%s:%s)[%u:%u]", src,
|
||||
virStorageTypeToString(virStorageSourceGetActualType(src)),
|
||||
src->path,
|
||||
(unsigned int)drv->uid, (unsigned int)drv->gid);
|
||||
|
||||
priv = g_new0(virStorageFileBackendFsPriv, 1);
|
||||
|
||||
drv->priv = priv;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user