Cacheing Problem

Florian G. Pflug fgp at fgp.priv.at
Fri Dec 11 16:04:40 GMT 1998


> I am trying to get two WFW PC's talking to via Linux/Samba server Interface.
> One PC continuously streams binary datafile onto its directory on the server
> while the other continuously reads it. Information on the size of this file
> (which can continuously increase up to 3MB) is continuously updated and is
> stored using a fixed width pointer in the file header. 
> It appears that the second PC can't read this pointer and uses its old value.
> Therefore it can not read the file beyond its old time mark.
> 
> Everything works OK when PC's talk directly to each other (peer-to-peer)
> without the server. I've tried all the usual fixes with oplocks, permissons,
> etc. in smb.conf but without much success. 
> 
> Is there possibly a way to force an update of the first chunk of data in the
> cache?
> 
> Any help is greatly appreciated
>        Sergei Schurov
Hi

This could (I'm not sure) also be a "problem" of linu, because it is not
designed for two processes writing&reading from/to the same file. May don't
you use a fifo instead of a normal file on the linux side? (check to manpage
of mknod).

           mfg, fgp


More information about the samba mailing list