Re: [PATCH] Delete

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

 



On 17/02/16 14:39, Olga Krishtal wrote:
Signed-off-by: Olga Krishtal <okrishtal@xxxxxxxxxxxxx>
---
  src/storage/storage_backend.c    | 3 +--
  src/storage/storage_backend.h    | 3 +--
  src/storage/storage_backend_fs.c | 2 +-
  3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c
index d97ad22..dc95036 100644
--- a/src/storage/storage_backend.c
+++ b/src/storage/storage_backend.c
@@ -870,8 +870,7 @@ int virStorageBackendCreatePloop(virConnectPtr conn ATTRIBUTE_UNUSED,
      return ret;
  }
-int virStorageBackendDeletePloop(virConnectPtr conn ATTRIBUTE_UNUSED,
-                           virStorageVolDefPtr vol)
+int virStorageBackendDeletePloop(virStorageVolDefPtr vol)
  {
      return virFileDeleteTree(vol->target.path);
  }
diff --git a/src/storage/storage_backend.h b/src/storage/storage_backend.h
index b99671a..de48012 100644
--- a/src/storage/storage_backend.h
+++ b/src/storage/storage_backend.h
@@ -115,8 +115,7 @@ int virStorageBackendCreatePloop(virConnectPtr conn,
                                   virStorageVolDefPtr inputvol,
                                   unsigned int flags);
-int virStorageBackendDeletePloop(virConnectPtr conn,
-                                 virStorageVolDefPtr vol);
+int virStorageBackendDeletePloop(virStorageVolDefPtr vol);
int virStoragePloopResize(virStorageVolDefPtr vol,
                            unsigned long long capacity);
diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c
index 9d934cc..f978b6e 100644
--- a/src/storage/storage_backend_fs.c
+++ b/src/storage/storage_backend_fs.c
@@ -1250,7 +1250,7 @@ virStorageBackendFileSystemVolDelete(virConnectPtr conn ATTRIBUTE_UNUSED,
      case VIR_STORAGE_VOL_FILE:
      case VIR_STORAGE_VOL_DIR:
          if (vol->target.format == VIR_STORAGE_FILE_PLOOP) {
-            if (virStorageBackendDeletePloop(conn, vol) < 0)
+            if (virStorageBackendDeletePloop(vol) < 0)
                  return -1;
              break;
          }
Pls, disregard this patch.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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]