Re: [libvirt] [PATCH v3 02/18] snapshot: Rework virDomainSnapshotState enum

2019-03-07 Thread Eric Blake
On 3/7/19 9:26 AM, John Ferlan wrote: >>> +    VIR_SNAP_STATE_PMSUSPENDED = VIR_DOMAIN_PMSUSPENDED, >>> +    /* Additional enum values local to qemu */ >> >> As Eric Blake pointed out in an earlier iteration: >> s/qemu/snapshots/ D'oh - it's a bad sign when I miss incorporating my own review comm

Re: [libvirt] [PATCH v3 02/18] snapshot: Rework virDomainSnapshotState enum

2019-03-07 Thread John Ferlan
On 3/7/19 9:20 AM, Ján Tomko wrote: > On Mon, Mar 04, 2019 at 09:34:29PM -0600, Eric Blake wrote: >> The existing virDomainSnapshotState is a superset of virDomainState, >> adding one more state (disk-snapshot) on top of valid domain states. >> But as written, the enum cannot be used for gcc val

Re: [libvirt] [PATCH v3 02/18] snapshot: Rework virDomainSnapshotState enum

2019-03-07 Thread Ján Tomko
On Mon, Mar 04, 2019 at 09:34:29PM -0600, Eric Blake wrote: The existing virDomainSnapshotState is a superset of virDomainState, adding one more state (disk-snapshot) on top of valid domain states. But as written, the enum cannot be used for gcc validation that all enum values are covered in a st

Re: [libvirt] [PATCH v3 02/18] snapshot: Rework virDomainSnapshotState enum

2019-03-07 Thread John Ferlan
On 3/4/19 10:34 PM, Eric Blake wrote: > The existing virDomainSnapshotState is a superset of virDomainState, > adding one more state (disk-snapshot) on top of valid domain states. > But as written, the enum cannot be used for gcc validation that all > enum values are covered in a strongly-typed

[libvirt] [PATCH v3 02/18] snapshot: Rework virDomainSnapshotState enum

2019-03-04 Thread Eric Blake
The existing virDomainSnapshotState is a superset of virDomainState, adding one more state (disk-snapshot) on top of valid domain states. But as written, the enum cannot be used for gcc validation that all enum values are covered in a strongly-typed switch condition, because the enum does not expli