From: adilger Date: Tue, 17 Sep 2002 22:38:27 +0000 (+0000) Subject: Fix "thread" parameters for test_brw and test_getattr for non-threaded tests. X-Git-Tag: v1_7_100~4744 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=d3dffb5e3302e7808e3bac170c6f1c8724c277ed;p=fs%2Flustre-release.git Fix "thread" parameters for test_brw and test_getattr for non-threaded tests. --- diff --git a/lustre/utils/obd.c b/lustre/utils/obd.c index f5041aa..3de5d60 100644 --- a/lustre/utils/obd.c +++ b/lustre/utils/obd.c @@ -949,7 +949,7 @@ int jt_obd_test_getattr(int argc, char **argv) } if (argc >= 4) { - if (argv[3][0] == 't') + if (argv[3][0] == 't' && thread) objid = strtoull(argv[3] + 1, &end, 0) + thread - 1; else objid = strtoull(argv[3], &end, 0); @@ -1022,7 +1022,7 @@ int jt_obd_test_brw(int argc, char **argv) } /* make each thread write to a different offset */ - if (argv[1][0] == 't') { + if (argv[1][0] == 't' && thread) { thr_offset = thread - 1; count = strtoull(argv[1] + 1, &end, 0); } else @@ -1056,7 +1056,7 @@ int jt_obd_test_brw(int argc, char **argv) } } if (argc >= 6) { - if (argv[5][0] == 't') + if (argv[5][0] == 't' && thread) objid = strtoull(argv[5] + 1, &end, 0) + thread - 1; else objid = strtoull(argv[5], &end, 0);