From: adilger Date: Tue, 20 Aug 2002 21:47:17 +0000 (+0000) Subject: Fix input of objid. X-Git-Tag: v1_7_100~5060 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3a16fae6a3124ce8ba7e89452ec2025656dfc709;p=fs%2Flustre-release.git Fix input of objid. --- diff --git a/lustre/tests/test_brw.c b/lustre/tests/test_brw.c index 7f97a77..977dbeb 100644 --- a/lustre/tests/test_brw.c +++ b/lustre/tests/test_brw.c @@ -94,7 +94,12 @@ int main(int argc, char **argv) count = strtoul(argv[3], 0, 0); len = pg_vec * BLOCKSIZE; end = (long long)count * len; - printf("directio on %s for %ldx%ld pages \n", argv[1], count, pg_vec); + + if (argc == 5) + objid = strtoul(argv[4], 0, 0); + + printf("directio on %s(%ld) for %ldx%ld pages \n", + argv[1], objid, count, pg_vec); buf = mmap(0, len, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, 0, 0); if (!buf) {