Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 795858db authored by Sage Weil's avatar Sage Weil
Browse files

ceph: fix encoding of ino only (not relative) paths



A 'path' consists of a starting ino and relative component.  Encode even
when there is no relative component.  This is primarily needed by the
NFS reexport code.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 5185352c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1595,7 +1595,7 @@ static int set_request_path_attr(struct inode *rinode, struct dentry *rdentry,
		r = build_dentry_path(rdentry, ppath, pathlen, ino, freepath);
		dout(" dentry %p %llx/%.*s\n", rdentry, *ino, *pathlen,
		     *ppath);
	} else if (rpath) {
	} else if (rpath || rino) {
		*ino = rino;
		*ppath = rpath;
		*pathlen = strlen(rpath);