From fei33423 at gmail.com Tue May 4 05:08:13 2010 From: fei33423 at gmail.com (wan wan) Date: Tue, 4 May 2010 17:08:13 +0800 Subject: [Disksim-users] question about the synthraid5.parv Message-ID: dear dismsim-users: i use gdb to learn out disksim. the parameter file is synthraid5.parv .. in isynthraid5.parv "disksim_logorg org0 { Addressing mode = Array, Distribution scheme = Striped, Redundancy scheme = Parity_rotated, " i use gdb to debug this program with the synthraid5.parv (gdb --args ./disksim synthraid5.prav synthraid5.outv ascii 0 1) when i reach the function disksim_logorg.c:logorg_maprequest which is called by disksim_iodriver.c:iodriver_request 696 int logorg_maprequest (logorg **logorgs, int numlogorgs, ioreq_event *curr) { .............. 773 if (maptype == ASIS) { curr->next = curr; } else if (maptype == IDEAL) { logorg_mapideal(logorgs[logorgno], curr); } else if (maptype == RANDOM) { logorg_maprandom(logorgs[logorgno], curr); } else if (maptype == STRIPED) { numreqs = logorg_mapstriped(logorgs[logorgno], curr); } else { fprintf(stderr, "Unknown maptype in use at logorg_maprequest - %d\n", maptype); exit(1); } if (reduntype == NO_REDUN) { } else if (reduntype == SHADOWED) { numreqs = logorg_shadowed(logorgs[logorgno], curr, numreqs); } else if (reduntype == PARITY_DISK) { numreqs = logorg_parity_disk(logorgs[logorgno], curr, numreqs); } else if (reduntype == PARITY_ROTATED) { numreqs = logorg_parity_rotate(logorgs[logorgno], curr, numreqs); } else if (reduntype == PARITY_TABLE) { numreqs = logorg_parity_table(logorgs[logorgno], curr, numreqs); } else { fprintf(stderr, "Unknown reduntype in use at logorg_maprequest - %d\n", reduntype); exit(1); } my question is that : the variable( " reduntype == PARITY_TABLE ")in debugging is not equal to that ("disksim_logorg org0 { Redundancy scheme = Parity_rotated")in synthraid5.parv thank you for your help