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-13974 llog: check stale osp object
[fs/lustre-release.git]
/
lustre
/
obdclass
/
llog_osd.c
diff --git
a/lustre/obdclass/llog_osd.c
b/lustre/obdclass/llog_osd.c
index
63abf66
..
92d7186
100644
(file)
--- a/
lustre/obdclass/llog_osd.c
+++ b/
lustre/obdclass/llog_osd.c
@@
-412,6
+412,9
@@
static int llog_osd_write_rec(const struct lu_env *env,
LASSERT(llh->llh_size == reclen);
}
+ /* return error if osp object is stale */
+ if (idx != LLOG_HEADER_IDX && dt_object_stale(o))
+ RETURN(-ESTALE);
rc = dt_attr_get(env, o, &lgi->lgi_attr);
if (rc)
RETURN(rc);