SMB_COM_READ_ANDX MaxCount != filesize

Sailaja Josyula sailaja at us.ibm.com
Wed Mar 16 19:49:35 GMT 2005


Hi,

I have written my own SMBserver to run as a VFS.  I have question 
regarding SMB_COM_READ_ANDX command.

The MaxCount parameter in the command SMB_COM_READ_ANDX is never set to 
the filesize. Even though I am setting 
the End_Of_File parameter correctly in the response to NT_CREATE_ANDX 
command. 

In the windows SMB I see that the SMB_COM_READ_ANDX requests come with the 
Count set to the Filesize specified
in the NT_CREATE_ANDX command.  The MaxCount field not being set correctly 
is causing multiple SMB_COM_READ_ANDX
commands to be triggered with different offset and Count values, even if 
the filesize is as small as 8 bytes.

Is there something I am missing or not setting prior to the 
SMB_COM_READ_ANDX? How does this parameter get set in
the SMB_COM_READ_ANDX command.

The protocol I have negotiated is NT LM 0.12. 

Thanks

Sailaja Josyula
Websphere Portal
IBM Software Group
Phone: 914-784-5472 Tie Line: 863-5472 Fax: 914-784-3833
sailaja at us.ibm.com


More information about the samba-technical mailing list