summaryrefslogtreecommitdiffstats
path: root/api/src/glfs.c
diff options
context:
space:
mode:
authorHumble Devassy Chirammal <hchiramm@redhat.com>2015-03-13 19:08:38 +0530
committerNiels de Vos <ndevos@redhat.com>2015-03-16 02:49:43 -0700
commit393cdb2613250031fce92cab8dede9154514f816 (patch)
treeddb50423a90cbd31d4edf781ae34f5d665b2cbbd /api/src/glfs.c
parent0ab4cb8174f478e8f725f13e96f608a6186e8384 (diff)
gfapi: improve source comments and error messages.
Change-Id: I0bfa44eb5b5f21e381af3e71c26ea863e4adc46f BUG:1202274 Signed-off-by: Humble Devassy Chirammal <hchiramm@redhat.com> Reviewed-on: http://review.gluster.org/9878 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'api/src/glfs.c')
-rw-r--r--api/src/glfs.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c
index 2b98a2843e0..421374d9731 100644
--- a/api/src/glfs.c
+++ b/api/src/glfs.c
@@ -242,7 +242,7 @@ get_volfp (struct glfs *fs)
if ((specfp = fopen (cmd_args->volfile, "r")) == NULL) {
gf_log ("glfs", GF_LOG_ERROR,
- "volume file %s: %s",
+ "volume file %s open failed: %s",
cmd_args->volfile,
strerror (errno));
return NULL;
@@ -546,6 +546,12 @@ glfs_poller (void *data)
return NULL;
}
+/*
+ * please note all the variable initializations done here probably
+ * need to be added in 'glfs_new_from_ctx()' as well, so that,
+ * we do not miss out while adding new members in 'fs'.
+*/
+
struct glfs *
pub_glfs_new (const char *volname)