summaryrefslogtreecommitdiffstats
path: root/tests/basic/gfapi/gfapi-load-volfile.c
Commit message (Expand)AuthorAgeFilesLines
* *.pc: Fix include path in CflagsAndrea Bolognani2017-11-081-1/+1
* libglusterfs: accept random volname in glusterfs_graph_prepare()Niels de Vos2017-04-261-0/+65
15948fb3fc37b6c0b70171482f50ed957f42&id2=26ca39ccf0caf0d55c88b05396883dd10ab66dc4'>Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/index/src/index.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/features/index/src/index.c b/xlators/features/index/src/index.c
index 59af418fca2..cb81b16f636 100644
--- a/xlators/features/index/src/index.c
+++ b/xlators/features/index/src/index.c
@@ -2336,6 +2336,14 @@ init (xlator_t *this)
}
GF_OPTION_INIT ("index-base", priv->index_basepath, path, out);
+ if (gf_lstat_dir (priv->index_basepath, NULL) != 0) {
+ ret = -1;
+ gf_msg (this->name, GF_LOG_ERROR, errno,
+ INDEX_MSG_INDEX_DIR_CREATE_FAILED,
+ "Failed to find index basepath %s.",