summaryrefslogtreecommitdiffstats
path: root/xlators/performance/read-ahead/src/read-ahead.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/performance/read-ahead/src/read-ahead.c')
-rw-r--r--xlators/performance/read-ahead/src/read-ahead.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/xlators/performance/read-ahead/src/read-ahead.c b/xlators/performance/read-ahead/src/read-ahead.c
index 6358b4f48e8..600082e00bc 100644
--- a/xlators/performance/read-ahead/src/read-ahead.c
+++ b/xlators/performance/read-ahead/src/read-ahead.c
@@ -835,6 +835,7 @@ ra_fdctx_dump (xlator_t *this, fd_t *fd)
ra_page_t *page = NULL;
int32_t ret = 0, i = 0;
uint64_t tmp_file = 0;
+ char *path = NULL;
char key[GF_DUMP_MAX_BUF_LEN] = {0, };
char key_prefix[GF_DUMP_MAX_BUF_LEN] = {0, };
@@ -852,6 +853,13 @@ ra_fdctx_dump (xlator_t *this, fd_t *fd)
gf_proc_dump_add_section (key_prefix);
+ ret = __inode_path (fd->inode, NULL, &path);
+ if (path != NULL) {
+ gf_proc_dump_build_key (key, key_prefix, "path");
+ gf_proc_dump_write (key, "%s", path);
+ GF_FREE (path);
+ }
+
gf_proc_dump_build_key (key, key_prefix, "fd");
gf_proc_dump_write (key, "%p", fd);
@@ -878,7 +886,8 @@ ra_fdctx_dump (xlator_t *this, fd_t *fd)
gf_proc_dump_build_key (key, key_prefix, "page[%d]", i++);
ra_page_dump (page, key_prefix);
}
-
+
+ ret = 0;
out:
return ret;
}