vfs/glusterfs: Change xattr key to match gluster key.
authorraghavendra talur <raghavendra.talur@gmail.com>
Wed, 10 Dec 2014 15:45:03 +0000 (21:15 +0530)
committerMichael Adam <obnox@samba.org>
Wed, 17 Dec 2014 17:45:06 +0000 (18:45 +0100)
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 <raghavendra.talur@gmail.com>
Reviewed-by: Ira Cooper <ira@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/modules/vfs_glusterfs.c

index 68aea40c8782be8a747372f3eb5459de093f2f3d..10c3a222608bdb355092fede4871ecd261c8e7af 100644 (file)
@@ -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) {