Skip to content
Snippets Groups Projects
Commit 63621325 authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Branch HEAD

Print a useful message from "lfs df" when an OST is inactive.
parent c88a0195
No related branches found
No related tags found
No related merge requests found
...@@ -1522,7 +1522,9 @@ static void do_target_check(char *obd_type_name, char *obd_name, ...@@ -1522,7 +1522,9 @@ static void do_target_check(char *obd_type_name, char *obd_name,
int rc; int rc;
rc = llapi_ping(obd_type_name, obd_name); 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); llapi_err(LLAPI_MSG_ERROR, "error: check '%s'", obd_name);
} else { } else {
llapi_printf(LLAPI_MSG_NORMAL, "%s active.\n", obd_name); llapi_printf(LLAPI_MSG_NORMAL, "%s active.\n", obd_name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment