libgfapi: Send path with "." for the root when loc.parent is set
fixes: bz#1582516 Change-Id: Ia9649d7c3c0930dfec656d364cf6e9a98c774dd2 Signed-off-by: Kinglong Mee <mijinlong@open-fs.com>
This commit is contained in:
parent
a303cd1acc
commit
f50625e7b0
@ -349,7 +349,7 @@ glfs_resolve_component(struct glfs *fs, xlator_t *subvol, inode_t *parent,
|
||||
} else if (__is_root_gfid(loc.inode->gfid)) {
|
||||
inode_unref(loc.parent);
|
||||
loc.parent = inode_ref(loc.inode);
|
||||
loc.name = "";
|
||||
loc.name = ".";
|
||||
} else {
|
||||
inode_unref(loc.inode);
|
||||
loc.inode = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user