From: raghavendra talur Date: Wed, 10 Dec 2014 07:00:10 +0000 (+0530) Subject: vfs_glusterfs: Set connectpath as snapdir-entry-path. X-Git-Tag: tdb-1.3.4~74 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;ds=sidebyside;h=a12ae815b01b372cbf8697d32d5d45d7b2d5f93d;p=samba.git vfs_glusterfs: Set connectpath as snapdir-entry-path. snapview client in gluster would require connectpath in order add snapdir entry to readdir result. Signed-off-by: raghavendra talur Reviewed-by: Guenther Deschner Reviewed-by: Michael Adam Autobuild-User(master): Günther Deschner Autobuild-Date(master): Wed Dec 10 16:38:27 CET 2014 on sn-devel-104 --- diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index 2dd9d716676..c22216478f9 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -210,6 +210,17 @@ static int vfs_gluster_connect(struct vfs_handle_struct *handle, goto done; } + + ret = glfs_set_xlator_option(fs, "*-snapview-client", + "snapdir-entry-path", + handle->conn->connectpath); + if (ret < 0) { + DEBUG(0, ("%s: Failed to set xlator option:" + " snapdir-entry-path\n", volume)); + glfs_fini(fs); + return -1; + } + ret = glfs_set_logging(fs, logfile, loglevel); if (ret < 0) { DEBUG(0, ("%s: Failed to set logfile %s loglevel %d\n",