From: Matthias Bolte Date: Mon, 17 May 2010 23:18:38 +0000 (+0200) Subject: Add VIR_STORAGE_POOL_INACCESSIBLE to denote inaccessible storage pools X-Git-Tag: v0.8.2~265 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32d9e0707cfa02630f200c82dcfe40ea6edb51cf;p=thirdparty%2Flibvirt.git Add VIR_STORAGE_POOL_INACCESSIBLE to denote inaccessible storage pools 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. --- diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index db107ccc9e..838028d529 100644 --- a/include/libvirt/libvirt.h.in +++ b/include/libvirt/libvirt.h.in @@ -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; diff --git a/tools/virsh.c b/tools/virsh.c index 693d40917e..4930ad7ad6 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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 ||