X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Fliblustreapi_chlg.c;h=d9c7af01c71eb042aeb37e2ed1338106da715696;hp=f4661be675987f8a9920369092de0a567be79093;hb=aaa808e7a40198581956a1d648f413cc30e830ed;hpb=5277d9452ae990d53ca84a8cfb2150bda06772fb diff --git a/lustre/utils/liblustreapi_chlg.c b/lustre/utils/liblustreapi_chlg.c index f4661be..d9c7af0 100644 --- a/lustre/utils/liblustreapi_chlg.c +++ b/lustre/utils/liblustreapi_chlg.c @@ -117,8 +117,10 @@ int llapi_changelog_start(void **priv, enum changelog_send_flag flags, } if (startrec != 0) { - rc = lseek(cp->clp_fd, startrec, SEEK_SET); - if (rc < 0) { + off_t res; + + res = lseek(cp->clp_fd, startrec, SEEK_SET); + if (res == (off_t)-1) { rc = -errno; goto out_close; }