From: adilger Date: Tue, 8 Jul 2008 21:08:53 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_9_50~235 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=636213259e7f9e98a53965fa4c2b3dec705fe062;p=fs%2Flustre-release.git Branch HEAD Print a useful message from "lfs df" when an OST is inactive. --- diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index a278c31..b32408c 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -1522,7 +1522,9 @@ static void do_target_check(char *obd_type_name, char *obd_name, int rc; rc = llapi_ping(obd_type_name, obd_name); - if (rc) { + if (rc == ENOTCONN) { + llapi_printf(LLAPI_MSG_NORMAL, "%s inactive.\n", obd_name); + } else if (rc) { llapi_err(LLAPI_MSG_ERROR, "error: check '%s'", obd_name); } else { llapi_printf(LLAPI_MSG_NORMAL, "%s active.\n", obd_name);