summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-ops.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-ops.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
index 6cce4a89f08..fd19b78b912 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
@@ -25,6 +25,7 @@
#include "glusterd-store.h"
#include "glusterd-utils.h"
#include "glusterd-volgen.h"
+#include "glusterd-messages.h"
#include "run.h"
#define glusterd_op_start_volume_args_get(dict, volname, flags) \
@@ -1798,6 +1799,14 @@ glusterd_op_create_volume (dict_t *dict, char **op_errstr)
i++;
}
+ ret = glusterd_enable_default_options (volinfo, NULL);
+ if (ret) {
+ gf_msg (this->name, GF_LOG_ERROR, 0,
+ GD_MSG_FAIL_DEFAULT_OPT_SET, "Failed to set default "
+ "options on create for volume %s", volinfo->volname);
+ goto out;
+ }
+
gd_update_volume_op_versions (volinfo);
volinfo->caps = caps;