fellow_cache_test: Fault injection for seglist writes

parent 493a41c2
......@@ -3474,7 +3474,7 @@ fellow_cache_async_write_complete(struct fellow_cache *fc,
}
} else {
assert(type == FBIO_SEGLIST);
if (result < (int32_t)fbio->u.seglist.reg.size)
if (FC_INJ || result < (int32_t)fbio->u.seglist.reg.size)
fcr = FCR_IOFAIL("seglist write error");
else
fcr = FCR_OK(fco);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment