mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
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.
This commit is contained in:
parent
f30ccb2458
commit
32d9e0707c
@ -1118,6 +1118,7 @@ typedef enum {
|
|||||||
VIR_STORAGE_POOL_BUILDING = 1, /* Initializing pool, not available */
|
VIR_STORAGE_POOL_BUILDING = 1, /* Initializing pool, not available */
|
||||||
VIR_STORAGE_POOL_RUNNING = 2, /* Running normally */
|
VIR_STORAGE_POOL_RUNNING = 2, /* Running normally */
|
||||||
VIR_STORAGE_POOL_DEGRADED = 3, /* Running degraded */
|
VIR_STORAGE_POOL_DEGRADED = 3, /* Running degraded */
|
||||||
|
VIR_STORAGE_POOL_INACCESSIBLE = 4, /* Running, but not accessible */
|
||||||
} virStoragePoolState;
|
} virStoragePoolState;
|
||||||
|
|
||||||
|
|
||||||
|
@ -5159,6 +5159,10 @@ cmdPoolInfo(vshControl *ctl, const vshCmd *cmd)
|
|||||||
vshPrint(ctl, "%-15s %s\n", _("State:"),
|
vshPrint(ctl, "%-15s %s\n", _("State:"),
|
||||||
_("degraded"));
|
_("degraded"));
|
||||||
break;
|
break;
|
||||||
|
case VIR_STORAGE_POOL_INACCESSIBLE:
|
||||||
|
vshPrint(ctl, "%-15s %s\n", _("State:"),
|
||||||
|
_("inaccessible"));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.state == VIR_STORAGE_POOL_RUNNING ||
|
if (info.state == VIR_STORAGE_POOL_RUNNING ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user