Dear Jeremy,
> I'm trying to read a log file that resides on a windows machine
> from a unix machine running sharity 2.3.  The log file is kept open
> by a service on the windows machine and periodically written to.
> On the Unix, the file size isn't updated after it's mounted, if,
> on the windows side I copy the file into a new file then Unix sees
> the changes in the new file but the old file stays unchanged. i.e.
> it appears sharity is having problems updating the contents of the
> file as long as a windows program is keeping it open.

Sharity is not configured (by default) for immediate propagation of changes  
made on the server. That's for performance reasons and because this feature  
is rarely needed. Furthermore, even Windows NT is very buggy in reporting  
file sizes of open files. Depending on factors we have not been able to  
isolate, it may report old (too short) file sizes on open files.

If you want to turn of Sharity's caches, please change the following  
configuration settings in the file /usr/local/sharity/etc/sharity.cfg:

        attributesCacheTime = 100;      (or as short as you want)
        dataCacheTimeNoLock = 100;      (or as short as you want)
        
        closeDelayBatchLock = 100;      (or as short as you want)
        closeDelayExclusiveLock = 100;  (or as short as you want)
        closeDelayNoLock = 100;         (or as short as you want)

If this fixes your problem, you can experiment with the settings to get a  
compromise beteween performance and consistency. If you need more help, I can  
dig out an e-mail exchange we had with a customer who wanted to do the same  
thing as you...

> If I access the same file from a different SMB client such as DAVE
> on a Macintosh, then the file is kept up to date and changes made
> to the file are visible immediately.

If this can't be achieved with a configuration change to Sharity, please  
tell me. I'd then be interested to see what Dave makes different from  
Sharity.

Regards, Christian.

--
Dipl.-Ing. Christian Starkjohann
Objective Development
mailto:[EMAIL PROTECTED] | http://www.obdev.at/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
To unsubscribe send a mail with the words "unsubscribe sharity-talk" in the
body to <[EMAIL PROTECTED]>. If you want to reach a human, please write to
<[EMAIL PROTECTED]>.


Reply via email to