Problem with reading file from VFS and Windows

Simo Sorce idra at samba.org
Tue Feb 8 11:08:09 GMT 2005


On Tue, 2005-02-08 at 10:21 +0100, Marek Grac wrote:
> Hi,
> 
> I'm writing database filesystem using VFS in samba. It works but after 
> serious testing I have found that on some server/clients reading files is 
> broken. In smbclient it works but in Win2000 there are first 6 segments 
> missing (in my case 6x80bytes). This is not because of Win2000 because in 
> the other case it works. I have tested it with samba 3.0.8 - 3.0.10 but 
> something is wrong :( When printing segments also to the log file, they 
> are in log file but are missing on windows.
> 
> Anyone know where can be problem (or give me some pointers)?

Given that I never encountered nor heard of a problem with samba serving
files, I would say you have a problem in your module. I would make sure
that you handle correctly all the seek and tell functions, and run the
samba4 torture suite to see if there is any problem. Probably the best
thing is to adapt the vfstest utility to do an extensive test of
filesystem returns (best thing would be to do that in a dual mode using
posix vfs on one side an your custom file system on other side and stop
on differences. Such a contribution would be great imho.

Simo.

-- 
Simo Sorce    -  idra at samba.org
Samba Team    -  http://www.samba.org
Italian Site  -  http://samba.xsec.it


More information about the samba-technical mailing list