[Darshan-commits] [Git][darshan/darshan][lustre-mod] fixed bug that prevented parser from reading in record with striping > 1 but < 8

Glenn K. Lockwood xgitlab at cels.anl.gov
Tue Jun 21 14:46:12 CDT 2016


Glenn K. Lockwood pushed to branch lustre-mod at darshan / darshan


Commits:
085aaaa7 by Glenn K. Lockwood at 2016-06-21T12:45:45-07:00
fixed bug that prevented parser from reading in record with striping > 1 but < 8

- - - - -


1 changed file:

- darshan-util/darshan-lustre-logutils.c


Changes:

=====================================
darshan-util/darshan-lustre-logutils.c
=====================================
--- a/darshan-util/darshan-lustre-logutils.c
+++ b/darshan-util/darshan-lustre-logutils.c
@@ -78,7 +78,7 @@ static int darshan_log_get_lustre_record(darshan_fd fd, void* lustre_buf,
         );
         if(ret < 0)
             return(-1);
-        else if(ret < sizeof(struct darshan_lustre_record))
+        else if(ret < (rec->counters[LUSTRE_STRIPE_WIDTH] - 1)*sizeof(OST_ID))
             return(0);
         /* swap bytes if necessary */
         if ( fd->swap_flag )



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/085aaaa7c3cb99ff1ea2544ca6597e8b50ef92b6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20160621/18ef895e/attachment-0001.html>


More information about the Darshan-commits mailing list