[libvirt] [PATCH 1/5] util: storage: Convert disk locality check to switch statement