Question about smbtorture / cifs-load-gen

Nir Livni nirl at
Tue Apr 8 11:42:49 GMT 2003

Since my smbtorture connects successfully, I simply replaced its
"run_netbench" function
with the one from cifs-load-gen, including proper initalizations and nbio.c

It seems to start ok,
And the first 5 lines from client_plain.txt run fine:

Deltree \clients\client1
NTCreateX \clients 0x1 0x3 12114 1
Close 12114 1

When running the 6th line
NTCreateX \clients\client1 0x1 0x2 12115

I get 

ERROR: cli_nt_create_full failed for \clients\client0 -

Both using samba and windows servers

Am I using the wrong input files ?

-----Original Message-----
From: Richard Sharpe [mailto:rsharpe at] 
Sent: Monday, April 07, 2003 8:25 PM
To: Nir Livni
Cc: samba-technical at
Subject: RE: Question about smbtorture / cifs-load-gen

On Mon, 7 Apr 2003, Nir Livni wrote:

> Cifs_load_gen seems easier,
> But somehow cannot connect to my samba server.
> I've tried everything (security = user/server/domain , encrypt password =
> yes,no).
> The problem seem to be in cli_negprot( ).
> After cifs_load_gen sends the protocols it supports,
> It should receive NTLANMAN 1.0 as an answer.
> The log shows the samba returns this answer.
> But somehow, when cifs_load_gen is reading the server's response,
> Cli->protocol becomes 1 instead of 5.
> Cliconnect.c Line 867:  cli->protocol =
> prots[SVAL(cli->inbuf,smb_vwv0)].prot;   <=== this is 1 instead of 5
> Please forgive my ignorance regarding this matter.
> Hope you could help me solve it.

Is it possible to get a trace/sniff?

I have seen problems with NetApp and one of the EMC boxes in the past in 
that they do not accept just share name in the tcon, but want something of 
the form //server/share.

To that end, there is a command line flag you can use to secify that, I 

If you make any patches, I would appreciate them back so I can update the 

Richard Sharpe, rsharpe[at], rsharpe[at], 

More information about the samba-technical mailing list