diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-10-30 10:56:17 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-11-07 09:42:28 -0800 |
commit | 0d7fd69b01cf9aebb4f1517f064e89ff65b9ccf8 (patch) | |
tree | 51a8e84b9ea2b229b7d7380f651be85c22ff886d /tests/bugs/bug-879490.t | |
parent | a3252b9d8c4cc024b5528ca88076c7e33aecad38 (diff) |
inode: Handle '/' in basename in inode_link/unlink
Problem:
inode_link is sometimes called with a trailing '/'. Lookup, dentry
operations like link/unlink/mkdir/rmdir/rename etc come without trailing
'/' so the stale dentry with '/' remains in the dentry list of the inode.
Fix:
Add assert checks and return NULL for '/' in bname.
Fix ancestry building code to call without '/' at the end.
Change-Id: I9c71292a3ac27754538a4e75e53290e182968fad
BUG: 1158751
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/9004
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/bugs/bug-879490.t')
0 files changed, 0 insertions, 0 deletions