Fix bug #14010 - regression with latest gluster
requested to merge samba-team/devel/samba:obnox-gluster-get-real-filename-ENOENT-ENOATTR into master
This fixes https://bugzilla.samba.org/show_bug.cgi?id=14010.
This was a regression introduced by a gluster patch that uncovered a conceptionally wrong implementation of the get-real-filename functionality in gluster.
This MR is the Samba counterpart for a corresponding Gluster patch https://review.gluster.org/c/glusterfs/+/22925 has been merged. I split this into two commits, one for vfs_glusterfs.c
and one for vfs_glusterfs_fuse.c
for easier backporting.
Samba without this patch will work semantically correctly against gluster, but the get-real-filename optimization effect is lost for a non-existing entry.