diff options
author | Soumya Koduri <[email protected]> | 2020-07-02 02:07:56 +0530 |
---|---|---|
committer | Kaleb KEITHLEY <[email protected]> | 2020-07-03 13:21:17 +0000 |
commit | ab8308333aaf033e07dbbdf2f69f9313a7e311f3 (patch) | |
tree | 5c7bd75376024dee2d01ed130666e6e923d7c49d /libglusterfs | |
parent | bf30eb137772e98b86579293921856e837011c2b (diff) | |
download | glusterfs-ab8308333aaf033e07dbbdf2f69f9313a7e311f3.tar.gz glusterfs-ab8308333aaf033e07dbbdf2f69f9313a7e311f3.tar.xz glusterfs-ab8308333aaf033e07dbbdf2f69f9313a7e311f3.zip |
Issue with gf_fill_iatt_for_dirent
In "gf_fill_iatt_for_dirent()", while calculating inode_path for loc,
the inode should be of parent's. Instead it is loc.inode which results in error
and eventually lookup/readdirp fails.
This patch fixes the same.
Change-Id: Ied086234a4634e8cb13520521ac547c87b3c76b5
Fixes: #1351
Signed-off-by: Soumya Koduri <[email protected]>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/gf-dirent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/gf-dirent.c b/libglusterfs/src/gf-dirent.c index 9c8c74beb5..a809efc97e 100644 --- a/libglusterfs/src/gf-dirent.c +++ b/libglusterfs/src/gf-dirent.c @@ -276,7 +276,7 @@ gf_fill_iatt_for_dirent(gf_dirent_t *entry, inode_t *parent, xlator_t *subvol) gf_uuid_copy(loc.pargfid, parent->gfid); loc.name = entry->d_name; loc.parent = inode_ref(parent); - ret = inode_path(loc.inode, entry->d_name, &path); + ret = inode_path(loc.parent, entry->d_name, &path); loc.path = path; if (ret < 0) goto out; |