[libvirt] [PATCH 0/8] cleanup: Use bool type instead of bitfield

Laine Stump laine at laine.org
Thu Apr 11 01:52:12 UTC 2013


On 04/10/2013 12:32 PM, Osier Yang wrote:
> This changes all the bitfield into bool type in domain_conf.h,
> except domain->autostart, domain->persistent, and domain->updated,
> as the public APIs like virDomainIsPersistent returns domain->persistent
> as integer, they can be changed internally, but not that deserved.
>
> Osier Yang (8):
>   Cleanup: Change datatype of hostdev->managed to boolean
>   Cleanup: Change datatype of origstate's members into boolean
>   cleanup: Change datatype of hostdev->missing to boolean
>   cleanup: Change datatype of auth->expires to boolean
>   cleanup: Change datatype of disk->shared to boolean
>   cleanup: Change datatype of disk->transient to boolean
>   cleanup: Change datatype of disk->readonly to boolean
>   cleanup: Change datatype of fs->readonly to boolean

For some reason these patches wouldn't apply to the head of master, but
they seem very straightforward and mechanical, and I think it's a useful
cleanup (if for no other reason that to avoid perpetuating the idea of
using bitfields).

Assuming that you've run both make check and make syntax-check
successfully, ACK for the series.




More information about the libvir-list mailing list