storage: Determine the local storage type right away
storage: Determine the local storage type right away

When walking the backing chain we previously set the storage type to
_FILE and let the virStorageFileGetMetadataFromFDInternal update it to
the correct type later on.

This patch moves the actual storage type determination to the place
where we parse the backing store name so that the code can later be
switched to use virStorageFileReadHeader() directly.

shugaoye/libvirt,andreabolognani/libvirt,elmarco/libvirt,eskultety/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,taget/libvirt,agx/libvirt,eskultety/libvirt,libvirt/libvirt,zippy2/libvirt,nertpinx/libvirt,nertpinx/libvirt,elmarco/libvirt,rlaager/libvirt,agx/libvirt,zippy2/libvirt,jfehlig/libvirt,crobinso/libvirt,rlaager/libvirt,taget/libvirt,taget/libvirt,taget/libvirt,libvirt/libvirt,olafhering/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,agx/libvirt,VenkatDatta/libvirt,crobinso/libvirt,nertpinx/libvirt,eskultety/libvirt,libvirt/libvirt,libvirt/libvirt,elmarco/libvirt,nertpinx/libvirt,jardasgit/libvirt,andreabolognani/libvirt,jfehlig/libvirt,elmarco/libvirt,taget/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,shugaoye/libvirt,crobinso/libvirt,shugaoye/libvirt,shugaoye/libvirt,rlaager/libvirt,rlaager/libvirt,jfehlig/libvirt,olafhering/libvirt,elmarco/libvirt,jardasgit/libvirt,jardasgit/libvirt,shugaoye/libvirt,eskultety/libvirt,fabianfreyer/libvirt,datto/libvirt,datto/libvirt,VenkatDatta/libvirt,crobinso/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,datto/libvirt,jardasgit/libvirt,datto/libvirt,agx/libvirt,olafhering/libvirt,zippy2/libvirt,agx/libvirt,olafhering/libvirt,eskultety/libvirt,fabianfreyer/libvirt,datto/libvirt,jfehlig/libvirt,rlaager/libvirt,jardasgit/libvirt,andreabolognani/libvirt,zippy2/libvirt