storage: improve handling of symlinks in gluster
storage: improve handling of symlinks in gluster

With this patch, dangling and looping symlinks are silently
ignored, while links to files and directories are treated the
same as the underlying file or directory.  This is the same
behavior as both 'directory' and 'netfs' pools.

* src/storage/storage_backend_gluster.c
(virStorageBackendGlusterRefreshVol): Treat symlinks similar to
directory and netfs pools.

Signed-off-by: Eric Blake <a9da18479c871fe903d9590822cfe2629c6a4d11@redhat.com>

nertpinx/libvirt,crobinso/libvirt,jfehlig/libvirt,datto/libvirt,datto/libvirt,shugaoye/libvirt,jfehlig/libvirt,datto/libvirt,zhlcindy/libvirt-1.1.4-maintain,zippy2/libvirt,cbosdo/libvirt,eskultety/libvirt,fabianfreyer/libvirt,libvirt/libvirt,shugaoye/libvirt,zhlcindy/libvirt-1.1.4-maintain,andreabolognani/libvirt,shugaoye/libvirt,elmarco/libvirt,VenkatDatta/libvirt,crobinso/libvirt,elmarco/libvirt,datto/libvirt,nertpinx/libvirt,libvirt/libvirt,nertpinx/libvirt,crobinso/libvirt,cbosdo/libvirt,taget/libvirt,taget/libvirt,fabianfreyer/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,jfehlig/libvirt,eskultety/libvirt,taget/libvirt,libvirt/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,zippy2/libvirt,fabianfreyer/libvirt,zhlcindy/libvirt-1.1.4-maintain,zhlcindy/libvirt-1.1.4-maintain,fabianfreyer/libvirt,libvirt/libvirt,jardasgit/libvirt,olafhering/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,jardasgit/libvirt,crobinso/libvirt,cbosdo/libvirt,rlaager/libvirt,jardasgit/libvirt,eskultety/libvirt,zippy2/libvirt,andreabolognani/libvirt,agx/libvirt,agx/libvirt,cbosdo/libvirt,agx/libvirt,andreabolognani/libvirt,elmarco/libvirt,taget/libvirt,eskultety/libvirt,agx/libvirt,andreabolognani/libvirt,nertpinx/libvirt,olafhering/libvirt,rlaager/libvirt,elmarco/libvirt,shugaoye/libvirt,cbosdo/libvirt,rlaager/libvirt,VenkatDatta/libvirt,eskultety/libvirt,rlaager/libvirt,shugaoye/libvirt,olafhering/libvirt,olafhering/libvirt,zippy2/libvirt,agx/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,taget/libvirt,jfehlig/libvirt,datto/libvirt,rlaager/libvirt,VenkatDatta/libvirt