Whamcloud - gitweb
LU-13427 lmv: do not print MDTs that are inactive
[fs/lustre-release.git] / lustre / lmv / lmv_obd.c
index 37d341d..062a44a 100644 (file)
@@ -837,7 +837,10 @@ static int lmv_iocontrol(unsigned int cmd, struct obd_export *exp,
                        RETURN(-ENODEV);
 
                tgt = lmv_tgt(lmv, index);
-               if (!tgt || !tgt->ltd_active)
+               if (!tgt)
+                       RETURN(-EAGAIN);
+
+               if (!tgt->ltd_active)
                        RETURN(-ENODATA);
 
                mdc_obd = class_exp2obd(tgt->ltd_exp);