[PATCH 04/39] storage_file: Remove virStorageFileBackendFsPriv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The private data structure is no longer used.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/storage_file/storage_file_backend_fs.c | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/src/storage_file/storage_file_backend_fs.c b/src/storage_file/storage_file_backend_fs.c
index f34ffd5fc8..8422543057 100644
--- a/src/storage_file/storage_file_backend_fs.c
+++ b/src/storage_file/storage_file_backend_fs.c
@@ -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;
 }

-- 
2.29.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux