]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: handle frag mismatch between readdir request and reply
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 18 Sep 2013 01:44:13 +0000 (09:44 +0800)
committerSage Weil <sage@inktank.com>
Mon, 30 Sep 2013 21:49:53 +0000 (14:49 -0700)
commit8d7a9094010fb635505584ac39e08f974d81d7f8
tree97fab33034d7b3f99cf4e875c1ed5c50bff54b78
parent99383c3d81ec90beb61fbda08e32f38c86e0d44f
ceph: handle frag mismatch between readdir request and reply

If client has outdated directory fragments information, it may request
readdir an non-existent directory fragment. In this case, the MDS finds
an approximate directory fragment and sends its contents back to the
client. When receiving a reply with fragment that is different than the
requested one, the client need to reset the 'readdir offset'.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/dir.c
fs/ceph/inode.c
fs/ceph/mds_client.c