X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flod%2Flod_lov.c;h=d7000b6e70bed0d4d4cf1b1af39bcb4d6ce3e9f5;hb=902fe290e51dccdee89380fb725ae6e3c1802e2b;hp=425619168b2ff687df42e30ba856e098323792ff;hpb=c00e72b938c2f927d91f21acae5943aa4b214898;p=fs%2Flustre-release.git diff --git a/lustre/lod/lod_lov.c b/lustre/lod/lod_lov.c index 4256191..d7000b6 100644 --- a/lustre/lod/lod_lov.c +++ b/lustre/lod/lod_lov.c @@ -846,6 +846,13 @@ static int lod_gen_component_ea(const struct lu_env *env, * component, its l_ost_idx does not matter. */ objs[i].l_ost_idx = cpu_to_le32(ost_idx); + + /* simulation of broken LOVEA */ + if (CFS_FAIL_CHECK(OBD_FAIL_LOV_INVALID_OSTIDX) && + comp_idx == 0 && i == 0 && lo->ldo_mirror_count > 1) { + objs[i].l_ost_idx = cpu_to_le32(0xffffffff); + } + } done: if (lmm_size != NULL)