From 32d9e0707cfa02630f200c82dcfe40ea6edb51cf Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Tue, 18 May 2010 01:18:38 +0200 Subject: [PATCH] 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. --- include/libvirt/libvirt.h.in | 1 + tools/virsh.c | 4 ++++ 2 files changed, 5 insertions(+) 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 ||