]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/filestore: fix infinit loops in fiemap() 14367/head
authorNing Yao <yaoning@unitedstack.com>
Thu, 6 Apr 2017 11:12:04 +0000 (11:12 +0000)
committerNing Yao <yaoning@unitedstack.com>
Thu, 6 Apr 2017 16:54:35 +0000 (16:54 +0000)
commit36f6b668a8910d76847674086cbc86910c78faee
treee6b45702329384dc65fdab9c8bcb3e0dce19343a
parent14867ad39887ad9a30511b257959fb00b46418ab
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>
src/os/filestore/FileStore.cc
src/test/objectstore/store_test.cc