Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
smash the HEAD with the contents of b_cmd. HEAD_PRE_CMD_SMASH and
[fs/lustre-release.git]
/
lustre
/
utils
/
obd.c
diff --git
a/lustre/utils/obd.c
b/lustre/utils/obd.c
index
e754a90
..
3a4089a
100644
(file)
--- a/
lustre/utils/obd.c
+++ b/
lustre/utils/obd.c
@@
-779,21
+779,22
@@
int jt_obd_list(int argc, char **argv)
int rc;
char buf[MAX_STRING_SIZE];
FILE *fp = fopen(DEVICES_LIST, "r");
int rc;
char buf[MAX_STRING_SIZE];
FILE *fp = fopen(DEVICES_LIST, "r");
-
+
if (fp == NULL) {
if (fp == NULL) {
- fprintf(stderr, "error: %s: %s opening "DEVICES_LIST"\n",
+ fprintf(stderr, "error: %s: %s could not open file "
+ DEVICES_LIST " .\n",
jt_cmdname(argv[0]), strerror(rc = errno));
return rc;
}
jt_cmdname(argv[0]), strerror(rc = errno));
return rc;
}
-
+
if (argc != 1)
return CMD_HELP;
if (argc != 1)
return CMD_HELP;
-
+
while (fgets(buf, sizeof(buf), fp) != NULL)
printf("%s", buf);
while (fgets(buf, sizeof(buf), fp) != NULL)
printf("%s", buf);
-
+
fclose(fp);
fclose(fp);
-
+
return 0;
}
return 0;
}
@@
-1988,7
+1989,7
@@
int jt_llog_remove(int argc, char **argv)
if (argc == 3)
fprintf(stdout, "log %s are removed.\n", argv[2]);
else
if (argc == 3)
fprintf(stdout, "log %s are removed.\n", argv[2]);
else
- fprintf(stdout, "the log in cat
a
log %s are removed. \n", argv[1]);
+ fprintf(stdout, "the log in catlog %s are removed. \n", argv[1]);
} else
fprintf(stderr, "OBD_IOC_LLOG_REMOVE failed: %s\n",
strerror(errno));
} else
fprintf(stderr, "OBD_IOC_LLOG_REMOVE failed: %s\n",
strerror(errno));