vfs_glusterfs: Do not use glfs_fgetxattr() for SMB_VFS_GET_REAL_FILENAME_AT
commitd904e80ef35f702690a843bf6cffbba297c6ddda
authorAnoop C S <anoopcs@samba.org>
Tue, 11 Oct 2022 17:57:37 +0000 (11 23:27 +0530)
committerJule Anger <janger@samba.org>
Wed, 23 Nov 2022 12:44:16 +0000 (23 12:44 +0000)
treeb6509a75463290c037090c5aade8ff1056d80ca3
parent2ce1a1eca5677268f3b0be18f02d74fa07e575a0
vfs_glusterfs: Do not use glfs_fgetxattr() for SMB_VFS_GET_REAL_FILENAME_AT

glfs_fgetxattr() or generally fgetxattr() will return EBADF as dirfsp
here is a pathref fsp. GlusterFS client log had following entries
indicating the error:

W [MSGID: 114031] [client-rpc-fops_v2.c:993:client4_0_fgetxattr_cbk] \
  0-vol-client-0: remote operation failed. [{errno=9}, {error=Bad file descriptor}]

Therefore use glfs_getxattr() only for implementing get_real_filename_at
logic.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15198

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 6a6bd1a0530424def64d2d462b54e4c1f4f9bebb)
source3/modules/vfs_glusterfs.c