A utility function for finding the first unused element
A utility function for finding the first unused element

.. in a given set. This is similar to FindFirst function in our Python
code-base, but this one automatically picks the element after the end of
the set, if the set has no holes.

Signed-off-by: Petr Pudlak <9d19625f8ee825a2c398462ed335cbcf98f79c32@google.com>
Reviewed-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>

andir/ganeti,apyrgio/ganeti,yiannist/ganeti,apyrgio/ganeti,mbakke/ganeti,ganeti/ganeti,mbakke/ganeti,onponomarev/ganeti,onponomarev/ganeti,ganeti/ganeti,dimara/ganeti,mbakke/ganeti,grnet/snf-ganeti,grnet/snf-ganeti,yiannist/ganeti,bitemyapp/ganeti,ganeti-github-testing/ganeti-test-1,dimara/ganeti,leshchevds/ganeti,andir/ganeti,leshchevds/ganeti,yiannist/ganeti,ganeti-github-testing/ganeti-test-1,ganeti/ganeti,leshchevds/ganeti,bitemyapp/ganeti,andir/ganeti