]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add VIR_STORAGE_POOL_INACCESSIBLE to denote inaccessible storage pools
authorMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 17 May 2010 23:18:38 +0000 (01:18 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 17 May 2010 23:34:34 +0000 (01:34 +0200)
This status will be used by the ESX storage driver.

For example a running NFS pool is inaccessible when the NFS server is
currently unreachable.

include/libvirt/libvirt.h.in
tools/virsh.c

index db107ccc9e3f8cc845a5b4c3cac539aab4293e4d..838028d529eff95ef684110d6e22da8cd70c4506 100644 (file)
@@ -1118,6 +1118,7 @@ typedef enum {
   VIR_STORAGE_POOL_BUILDING = 1, /* Initializing pool, not available */
   VIR_STORAGE_POOL_RUNNING = 2,  /* Running normally */
   VIR_STORAGE_POOL_DEGRADED = 3, /* Running degraded */
+  VIR_STORAGE_POOL_INACCESSIBLE = 4, /* Running, but not accessible */
 } virStoragePoolState;
 
 
index 693d40917e9eefd9769bcb436f7b76f950365db6..4930ad7ad6c698b3311426ccc8efe16fe66d42d4 100644 (file)
@@ -5159,6 +5159,10 @@ cmdPoolInfo(vshControl *ctl, const vshCmd *cmd)
             vshPrint(ctl, "%-15s %s\n", _("State:"),
                      _("degraded"));
             break;
+        case VIR_STORAGE_POOL_INACCESSIBLE:
+            vshPrint(ctl, "%-15s %s\n", _("State:"),
+                     _("inaccessible"));
+            break;
         }
 
         if (info.state == VIR_STORAGE_POOL_RUNNING ||