diff options
author | Rajesh Amaravathi <rajesh@redhat.com> | 2012-11-05 16:39:37 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-11-07 00:58:07 -0500 |
commit | 140174d0e13bedf8f3ebfacabaf3a5fac4a1381a (patch) | |
tree | 62b67c0ee2315d4143c8776253503cd0fc91ed5c /xlators | |
parent | 61c8fa54e596eab121d44569c5eec2717865a87d (diff) |
nfs: resolve parent inode during inode_loc_fill
This commit resolves the parent inode in nfs_inode_loc_fill
if the inode has a resolved path.
Change-Id: I2159df3406c632477719bad9574180a002514301
BUG: 872923
Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/1484
Reviewed-by: Jeffrey Darcy <jdarcy@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/nfs/server/src/nfs-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs-common.c b/xlators/nfs/server/src/nfs-common.c index af3057bdcef..8ff0eb0b154 100644 --- a/xlators/nfs/server/src/nfs-common.c +++ b/xlators/nfs/server/src/nfs-common.c @@ -221,6 +221,8 @@ nfs_inode_loc_fill (inode_t *inode, loc_t *loc, int how) snprintf (tmp_path, sizeof (tmp_path), "<gfid:%s>", uuid_utoa (loc->gfid)); resolvedpath = gf_strdup (tmp_path); + } else { + parent = inode_parent (inode, loc->pargfid, NULL); } ret = nfs_loc_fill (loc, inode, parent, resolvedpath); |