]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/os/seastore: do "copy_on_write" if the to-be-modified object
authorXuehan Xu <xuxuehan@qianxin.com>
Wed, 13 Aug 2025 03:49:23 +0000 (11:49 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Sun, 28 Sep 2025 06:48:59 +0000 (14:48 +0800)
commit86107a4af0330e584384f68bf27048b83f4fc63f
tree2424df71e19548f3688e032011215d23c0dc84ab
parent039314efbb49eceb6dfd89229546c53a78a70075
crimson/os/seastore: do "copy_on_write" if the to-be-modified object
needs it

At present, only clone objects may need COW, as HEAD objects won't be
sharing any direct lba mapping with other objects in non-recovery
scenarios.

Although the HEAD object may share its direct mappings with the temp
object that's going to be recovered and replace it, it won't be
accepting any modifications at that time.

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/object_data_handler.cc
src/crimson/os/seastore/object_data_handler.h
src/crimson/os/seastore/seastore.cc