]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os/seastore/segment_manager/block: get block device size 48693/head
authorJianxin Li <jianxin1.li@intel.com>
Mon, 31 Oct 2022 08:03:01 +0000 (08:03 +0000)
committerJianxin Li <jianxin1.li@intel.com>
Wed, 2 Nov 2022 07:08:25 +0000 (07:08 +0000)
commit841a58b7f52a8cb14222092c3da330410400b1ab
tree5abf1d6b39e0fda127f2ef5c452b98b0db2b1891
parent0bb4bf67c24b4c3a81fae545ab857a193586a05e
crimson/os/seastore/segment_manager/block: get block device size

Previously the file_stat(::stat) can not get correct size for block devices.
Now call the file.size(using ::lseek) to replace it.

Signed-off-by: Jianxin Li <jianxin1.li@intel.com>
src/crimson/os/seastore/segment_manager/block.cc