From 3a16fae6a3124ce8ba7e89452ec2025656dfc709 Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 20 Aug 2002 21:47:17 +0000 Subject: [PATCH] Fix input of objid. --- lustre/tests/test_brw.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) { -- 1.8.3.1