diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-09-29 18:00:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:31 -0500 |
commit | 60a1046c5c5783799bd64fe18e03534670f83d82 (patch) | |
tree | 48f788a6a6fbed5af0a3f3eea1e4373d70b03e5b /source4/torture/raw/pingpong.c | |
parent | 98038f71a7b072912c974d131012335ca22c5259 (diff) | |
download | samba-60a1046c5c5783799bd64fe18e03534670f83d82.tar.gz samba-60a1046c5c5783799bd64fe18e03534670f83d82.tar.bz2 samba-60a1046c5c5783799bd64fe18e03534670f83d82.zip |
r25430: Add the loadparm context to all parametric options.
(This used to be commit fd697d77c9fe67a00939a1f04b35c451316fff58)
Diffstat (limited to 'source4/torture/raw/pingpong.c')
-rwxr-xr-x | source4/torture/raw/pingpong.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/torture/raw/pingpong.c b/source4/torture/raw/pingpong.c index 6d84ff1ae9..269208b97f 100755 --- a/source4/torture/raw/pingpong.c +++ b/source4/torture/raw/pingpong.c @@ -191,21 +191,21 @@ bool torture_ping_pong(struct torture_context *torture) uint8_t *val; int count, loops; - fn = lp_parm_string(NULL, "torture", "filename"); + fn = lp_parm_string(global_loadparm, NULL, "torture", "filename"); if (fn == NULL) { DEBUG(0,("You must specify the filename using --option=torture:filename=...\n")); return false; } - num_locks = lp_parm_int(NULL, "torture", "num_locks", -1); + num_locks = lp_parm_int(global_loadparm, NULL, "torture", "num_locks", -1); if (num_locks == -1) { DEBUG(0,("You must specify num_locks using --option=torture:num_locks=...\n")); return false; } - do_reads = lp_parm_bool(NULL, "torture", "read", false); - do_writes = lp_parm_bool(NULL, "torture", "write", false); - lock_timeout = lp_parm_int(NULL, "torture", "lock_timeout", 100000); + do_reads = lp_parm_bool(global_loadparm, NULL, "torture", "read", false); + do_writes = lp_parm_bool(global_loadparm, NULL, "torture", "write", false); + lock_timeout = lp_parm_int(global_loadparm, NULL, "torture", "lock_timeout", 100000); if (!torture_open_connection(&cli, 0)) { DEBUG(0,("Could not open connection\n")); |