summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs-resolve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/glfs-resolve.c b/api/src/glfs-resolve.c
index 03be7c7eda7..d305c126cb6 100644
--- a/api/src/glfs-resolve.c
+++ b/api/src/glfs-resolve.c
@@ -241,9 +241,9 @@ glfs_resolve_root (struct glfs *fs, xlator_t *subvol, inode_t *inode,
loc.inode = inode_ref (inode);
- ret = inode_path (loc.inode, NULL, &path);
+ ret = inode_path (loc.inode, ".", &path);
loc.path = path;
- loc.name = "";
+ loc.name = ".";
/* Having a value in loc.name will help to bypass md-cache check for
* nameless lookup.
* TODO: Re-visit on nameless lookup and md-cache.