meaning of smb seek

Christopher R. Hertel crh at
Wed Nov 28 17:40:27 GMT 2007

I wish I had answers for you, but I don't (which is why I am interested in
what you find out).

Do you receive SEEK commands from clients?  It's possible that it's not ever
used.  The SMB_COM_COPY is another example.  We found that it didn't work
properly on most servers we tested and it seems that Windows clients don't
call it.

Chris -)-----

Amin Azez wrote:
> * Christopher R. Hertel wrote, On 28/11/07 17:06:
>> Amin,
>> When I was doing research for my CIFS book I was told by several sources
>> that the SEEK operation had useful effect.  If you find out otherwise, I'd
>> like to know.
> Thanks for this.
> Do you know if any other actions depend on the seek'd value (maybe
> readbraw?)
> or if any actions change the seek'd value
> or maybe it's just used to truncate files in a hacky way?
> I'm not so much interested in it's use but to make sure read-aheads dont
> break something.
> Sam
>> Chris -)-----
>> Amin Azez wrote:
>>> What is smb seek operation really for, as read/write operations take an
>>> offset?
>>> It concerns me because I need to know if any special treatment is
>>> replied when I read-ahead and (perhaps) have conflicts with seek.
>>> Thanks
>>> Sam

"Implementing CIFS - the Common Internet FileSystem"    ISBN: 013047116X
Samba Team --    -)-----     Christopher R. Hertel
jCIFS Team --  -)-----  ubiqx development, uninq
ubiqx Team --    -)-----          crh at
OnLineBook --   -)-----             crh at

More information about the samba-technical mailing list