]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: check inode's cap when looking up dentry
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 21 Feb 2014 06:37:51 +0000 (14:37 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Sat, 1 Mar 2014 05:04:07 +0000 (13:04 +0800)
commit23de48b258f5c4147496051dfd689e0392af2d2e
treec15e8b5b582a14ddee82f25a79cadf02c2e8986a
parent0638d6122297868132b23dad78fd3aa2b0cc97e9
client: check inode's cap when looking up dentry

Some inodes in readdir reply may have no caps. Getattr mds request
for these inodes can return -ESTALE. The fix is consider dentry that
links to inode with no caps as invalid. Invalid dentry causes a
lookup request to send to the mds, the MDS will send caps back.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/client/Client.cc