From 7cfa31434eb132adc0ac5cba4dcde600897cd2eb Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Fri, 28 Nov 2014 18:08:53 +0530 Subject: features/snapview-client: handle readdir requests differently for samba * For samba export, the entry point is also added to the readdir response. Change-Id: I825c017e0f16db1f1890bb56e086f36e6558a1c2 BUG: 1168875 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.org/9218 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/mgmt/glusterd/src/glusterd-volume-set.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xlators/mgmt') diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index 27e0028e13a..116cb3349cf 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -1152,6 +1152,15 @@ struct volopt_map_entry glusterd_volopt_map[] = { .description = "Entry point directory for entering snapshot world" }, + { .key = "features.show-snapshot-directory", + .voltype = "features/snapview-client", + .op_version = GD_OP_VERSION_3_6_0, + .value = "off", + .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_XLATOR_OPT, + .description = "show entry point in readdir output of " + "snapdir-entry-path which is set by samba" + }, + #ifdef HAVE_LIB_Z /* Compressor-decompressor xlator options * defaults used from xlator/features/compress/src/cdc.h -- cgit