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
LU-7220 llog: fix fd lost and correct error reporting
[fs/lustre-release.git]
/
lustre
/
utils
/
llog_reader.c
diff --git
a/lustre/utils/llog_reader.c
b/lustre/utils/llog_reader.c
index
1c862d7
..
c5922c1
100644
(file)
--- a/
lustre/utils/llog_reader.c
+++ b/
lustre/utils/llog_reader.c
@@
-186,9
+186,10
@@
int main(int argc, char **argv)
is_ext = is_fstype_ext(fd);
if (is_ext < 0) {
+ rc = is_ext;
printf("Unable to determine type of filesystem containing %s\n",
argv[1]);
- goto out;
+ goto out
_fd
;
}
rc = llog_pack_buffer(fd, &llog_buf, &recs_buf, &rec_number);