From bfde478cedda8267134ee3807c8db5e042115eae Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Mon, 12 May 2014 11:22:36 +0530 Subject: glusterd: Allow setting volume options by default based on op-version A new function glusterd_enable_default_options is introduced, which will set some volume options on a volume based on op-version. This function is called near the end of the volume create and will allow some options to be enabled based on op-version on newly created volumes. This will also be called during volume reset, to reset the options to their default values if they had changed. Change-Id: I91057d9e42409b17a884728b43ae3721328d4831 BUG: 1096616 Signed-off-by: Kaushal M Reviewed-on: http://review.gluster.org/7734 Tested-by: Gluster Build System Reviewed-by: Atin Mukherjee Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- xlators/mgmt/glusterd/src/glusterd-utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.h b/xlators/mgmt/glusterd/src/glusterd-utils.h index 6d65b1ffab5..26895fd904d 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.h +++ b/xlators/mgmt/glusterd/src/glusterd-utils.h @@ -825,4 +825,8 @@ glusterd_snap_brick_create (glusterd_volinfo_t *snap_volinfo, void glusterd_launch_synctask (synctask_fn_t fn, void *opaque); + +int +glusterd_enable_default_options (glusterd_volinfo_t *volinfo, char *option); + #endif -- cgit