diff options
| author | Soumya Koduri <skoduri@redhat.com> | 2020-07-02 02:07:56 +0530 | 
|---|---|---|
| committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2020-08-19 13:27:22 +0000 | 
| commit | 6b10b33f8a9bce054fec980583cc597f5a438bb5 (patch) | |
| tree | 34113fd5ab8ce96b01f8f4d092eda844b7008a6f | |
| parent | e8aedcd40f9f24e5b821e1539275e40ebfccca94 (diff) | |
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 <skoduri@redhat.com>
(cherry picked from commit ab8308333aaf033e07dbbdf2f69f9313a7e311f3)
| -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 9c8c74beb54..a809efc97ef 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;  | 
