[Samba] non-windows behavior of samba
John Drescher
drescherjm at gmail.com
Thu May 6 09:46:09 MDT 2010
On Wed, May 5, 2010 at 4:56 PM, Darwin, Samuel <darwins at thirteen.org> wrote:
> We have a vendor who is going to install an application server, and it
> requires samba to behave as much like windows as possible. There is a
> particular case they are complaining about.
>
>
> 1. Run samba on redhat server
> 2. Map a drive from windows. Let's say the Z: drive
> 3. Run a script to open and continuously modify a file on the samba
> share
> 4. Observe the samba share in Windows Explorer
>
> You will see that the file size does not get updated until you hit
> "refresh".
> In a pure windows, environment, the filesize will be modified every few
> seconds. So, samba is apparently not alerting the windows client that
> the filesize has changed. Is this a configurable setting? Can this be
> fixed?
>
> Here is an example perl script to run on the client side:
>
>
>
> open FILE, ">", "Z:/test.txt";
>
>
>
> while (1) {
>
> print FILE
> "jkasdklfjaskldfjaskl;dfjakl;sdfgjaklfghjkadfghajklsasdfjklasjdflkasjdfk
> lajsdfklajsdfl";
>
> print FILE
> "jkasdklfjaskldfjaskl;dfjakl;sdfgjaklfghjkadfghajklsasdfjklasjdflkasjdfk
> lajsdfklajsdfl";
>
> print FILE
> "jkasdklfjaskldfjaskl;dfjakl;sdfgjaklfghjkadfghajklsasdfjklasjdflkasjdfk
> lajsdfklajsdfl";
>
> }
>
>
>
> print "sleeping\n";
>
> sleep 1;
>
> }
>
>
>
I believe you need fam support compiled into samba and inotify support
in your kernel.
John
More information about the samba
mailing list