mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03: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_RUNNING = 2, /* Running normally */
|
||||
VIR_STORAGE_POOL_DEGRADED = 3, /* Running degraded */
|
||||
VIR_STORAGE_POOL_INACCESSIBLE = 4, /* Running, but not accessible */
|
||||
} virStoragePoolState;
|
||||
|
||||
|
||||
|
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user