Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c88a019
)
Branch HEAD
author
adilger
<adilger>
Tue, 8 Jul 2008 21:08:53 +0000
(21:08 +0000)
committer
adilger
<adilger>
Tue, 8 Jul 2008 21:08:53 +0000
(21:08 +0000)
Print a useful message from "lfs df" when an OST is inactive.
lustre/utils/liblustreapi.c
patch
|
blob
|
history
diff --git
a/lustre/utils/liblustreapi.c
b/lustre/utils/liblustreapi.c
index
a278c31
..
b32408c
100644
(file)
--- 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);