]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/filestore: fix infinit loops in fiemap()
authorNing Yao <yaoning@unitedstack.com>
Thu, 6 Apr 2017 11:12:04 +0000 (11:12 +0000)
committeryaoning <yaoning@unitedstack.com>
Sat, 20 May 2017 14:44:35 +0000 (22:44 +0800)
commitb52bfe6b443f0ff88c8614441752102058063699
treecd7cd846a7a30b8417df1246cb60564acfe24b63
parent966f2229178c5d72722982d0f6a40f4d01210d9a
os/filestore: fix infinit loops in fiemap()

since fiemap can get extents based on offset --> len
but we should consider last extents is retrieved when len == 0
even though it is not last fiemap extents

Signed-off-by: Ning Yao <yaoning@unitedstack.com>
(cherry picked from commit 36f6b668a8910d76847674086cbc86910c78faee)
src/os/filestore/FileStore.cc
src/test/objectstore/store_test.cc