For native gluster pools the <dir> field denotes a directory inside the pool. For the actual pool name the <name> field has to be used.
Use the relative lookup specifier rather than the global one. Otherwise only the first name would be looked up. Add a test case to cover the scenario. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1436574
Add a test program called virstorageutiltest and test the gluster pool detection code.