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-5833 lfsck: handle lfsck_open_dir() return-value properly
[fs/lustre-release.git]
/
lustre
/
lfsck
/
lfsck_engine.c
diff --git
a/lustre/lfsck/lfsck_engine.c
b/lustre/lfsck/lfsck_engine.c
index
3508103
..
cda9180
100644
(file)
--- a/
lustre/lfsck/lfsck_engine.c
+++ b/
lustre/lfsck/lfsck_engine.c
@@
-551,6
+551,9
@@
static int lfsck_prep(const struct lu_env *env, struct lfsck_instance *lfsck,
pos->lp_dir_cookie = 0;
rc = lfsck_open_dir(env, lfsck, pos->lp_dir_cookie);
pos->lp_dir_cookie = 0;
rc = lfsck_open_dir(env, lfsck, pos->lp_dir_cookie);
+ if (rc > 0)
+ /* The end of the directory. */
+ rc = 0;
}
GOTO(out, rc);
}
GOTO(out, rc);