[PATCH 1/6] block_resize: Define the new API

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

 



---
 include/libvirt/libvirt.h.in |    4 ++++
 src/driver.h                 |    7 +++++++
 src/libvirt_public.syms      |    5 +++++
 3 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
index c51a5b9..bec470b 100644
--- a/include/libvirt/libvirt.h.in
+++ b/include/libvirt/libvirt.h.in
@@ -1184,6 +1184,10 @@ int                     virDomainBlockPeek (virDomainPtr dom,
                                             size_t size,
                                             void *buffer,
                                             unsigned int flags);
+int                     virDomainBlockResize (virDomainPtr dom,
+                                              const char *path,
+                                              unsigned long long size,
+                                              unsigned int flags);
 
 
 /** virDomainBlockInfo:
diff --git a/src/driver.h b/src/driver.h
index 80d6628..86cbbc5 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -367,6 +367,12 @@ typedef int
                      unsigned long long offset, size_t size,
                      void *buffer,
                      unsigned int flags);
+typedef int
+    (*virDrvDomainBlockResize)
+                    (virDomainPtr domain,
+                     const char *path,
+                     unsigned long long size,
+                     unsigned int flags);
 
 typedef int
     (*virDrvDomainMemoryPeek)
@@ -800,6 +806,7 @@ struct _virDriver {
     virDrvDomainMigratePrepare	domainMigratePrepare;
     virDrvDomainMigratePerform	domainMigratePerform;
     virDrvDomainMigrateFinish	domainMigrateFinish;
+    virDrvDomainBlockResize	domainBlockResize;
     virDrvDomainBlockStats      domainBlockStats;
     virDrvDomainInterfaceStats  domainInterfaceStats;
     virDrvDomainMemoryStats     domainMemoryStats;
diff --git a/src/libvirt_public.syms b/src/libvirt_public.syms
index c2b6666..448209d 100644
--- a/src/libvirt_public.syms
+++ b/src/libvirt_public.syms
@@ -480,4 +480,9 @@ LIBVIRT_0.9.4 {
         virDomainBlockPull;
 } LIBVIRT_0.9.3;
 
+LIBVIRT_0.9.5 {
+    global:
+        virDomainBlockResize;
+} LIBVIRT_0.9.4;
+
 # .... define new API here using predicted next version number ....
-- 
1.7.6

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