]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: add EIO injection on EC pool for mdata and data error 3177/head
authorZhi Z Zhang <zhangz@yahoo-inc.com>
Tue, 10 Feb 2015 10:52:39 +0000 (10:52 +0000)
committerZhi Z Zhang <zhangz@yahoo-inc.com>
Tue, 10 Feb 2015 10:52:39 +0000 (10:52 +0000)
commit92af4fe38b2b5f1485cd0ee485c9f62c1be1ec49
treec7cf2013aa581e0890cdd4d7f08b515dcd78aac6
parentf08e163776d8e23b56b51e6dc888be102f81f8cf
osd: add EIO injection on EC pool for mdata and data error

Enable EIO fault injection on erasure coding pool for specific object and its shard.

With this patch, we can simulate client/recovery reading error on primary OSD or peer OSDs for object data or metadata (attribute). Some useful test helper functions and sample test cases are also added together.

Signed-off-by: Zhi (David) Zhang <zhangz@yahoo-inc.com>
src/osd/OSD.cc
src/test/erasure-code/test-erasure-code.sh
src/test/osd/osd-test-helpers.sh