X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fllog_osd.c;h=67fa54f63fff33f35368d44ac944fab9ac44f42b;hp=33b1133ada32397dc210d9fffd4ecec9f9c233a7;hb=1a24dcdce121787428ea820561cfa16ae24bdf82;hpb=5038bf8db83d4cb409b7563f028f48cca0385c19 diff --git a/lustre/obdclass/llog_osd.c b/lustre/obdclass/llog_osd.c index 33b1133..67fa54f 100644 --- a/lustre/obdclass/llog_osd.c +++ b/lustre/obdclass/llog_osd.c @@ -1085,7 +1085,12 @@ retry: *cur_offset = last_offset; *cur_idx = last_idx; } - GOTO(out, rc = -EIO); + /* being here means we reach end of llog but didn't find needed idx + * normally could happen while processing remote llog, return -EBADR + * to indicate access beyond end of file like dt_read() does and to + * distunguish this situation from real IO or network issues. + */ + GOTO(out, rc = -EBADR); out: dt_read_unlock(env, o); return rc;