From: raghavendra talur Date: Wed, 10 Dec 2014 15:45:03 +0000 (+0530) Subject: vfs/glusterfs: Change xattr key to match gluster key. X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=af9ec9fea5a730023cdee6e236f9585e3a18b0e6;p=obnox%2Fsamba%2Fsamba-obnox.git vfs/glusterfs: Change xattr key to match gluster key. Gluster changed the key used to do get_real_filename in 3.5. This changes Samba's glusterfs vfs-module to use the same key. This will render SMB_VFS_GET_REALFILENAME() working again under 3.5 and will remove support for that functionality for Gluster 3.4 and older. Signed-off-by: raghavendra talur Reviewed-by: Ira Cooper Reviewed-by: Michael Adam --- diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index 68aea40c878..10c3a222608 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -1110,7 +1110,7 @@ static int vfs_gluster_get_real_filename(struct vfs_handle_struct *handle, } snprintf(key_buf, NAME_MAX + 64, - "user.glusterfs.get_real_filename:%s", name); + "glusterfs.get_real_filename:%s", name); ret = glfs_getxattr(handle->data, path, key_buf, val_buf, NAME_MAX + 1); if (ret == -1) {