Commit 8ad272c3 authored by Philip Carns's avatar Philip Carns

Added sanity test in darshan parser to throw an error if the log file

appears to contain file records with bogus rank information


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@176 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 692a62e2
......@@ -29,6 +29,7 @@ int main(int argc, char **argv)
int* devs;
char** mnt_pts;
char** fs_types;
int last_rank = 0;
if(argc != 2)
{
......@@ -154,6 +155,14 @@ int main(int argc, char **argv)
{
char* mnt_pt = NULL;
char* fs_type = NULL;
if(cp_file.rank != -1 && cp_file.rank < last_rank)
{
fprintf(stderr, "Error: log file contains out of order rank data.\n");
return(-1);
}
if(cp_file.rank != -1)
last_rank = cp_file.rank;
for(i=0; i<mount_count; i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment