X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flov%2Flov_object.c;h=cc05543033726d070050569b66fa175709e7e832;hp=8df5f5f2870fa1decf2f7fe5c147884a021b75c6;hb=916b5f7f4672c1070e27a2fe0bfae371b0a729d6;hpb=676c2fe47c8de0825db3001f1e964347be3dc479 diff --git a/lustre/lov/lov_object.c b/lustre/lov/lov_object.c index 8df5f5f..cc05543 100644 --- a/lustre/lov/lov_object.c +++ b/lustre/lov/lov_object.c @@ -271,6 +271,12 @@ static int lov_init_raid0(const struct lu_env *env, struct lov_device *dev, if (result != 0) GOTO(out, result); + if (dev->ld_target[ost_idx] == NULL) { + CERROR("%s: OST %04x is not initialized\n", + lov2obd(dev->ld_lov)->obd_name, ost_idx); + GOTO(out, result = -EIO); + } + subdev = lovsub2cl_dev(dev->ld_target[ost_idx]); subconf->u.coc_oinfo = oinfo; LASSERTF(subdev != NULL, "not init ost %d\n", ost_idx);