From 636213259e7f9e98a53965fa4c2b3dec705fe062 Mon Sep 17 00:00:00 2001 From: adilger <adilger> Date: Tue, 8 Jul 2008 21:08:53 +0000 Subject: [PATCH] Branch HEAD Print a useful message from "lfs df" when an OST is inactive. --- lustre/utils/liblustreapi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index a278c31f76..b32408c788 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); -- GitLab