file corrupted
Kohei Yoshida
kyoshida at mesco.com
Tue Dec 4 09:52:05 GMT 2001
On Tue, 2001-12-04 at 05:38, didier roques wrote:
> I use samba 2.2.2 with linux mdk 8.1.
> my clients machines run under win2k, everything is ok but sometimes when
> a user write a file to a service shared by samba with word, excel ...
> that seems to write ok, but when the user want to reopen this file, word
> or excel don't want to open it, because file is corrupted i think.
> We can find into this file at the beginning a a piece of text like this
> ------------------------------------------------------------
> [2001/11/30 15:43:52, 2] smbd/open.c:open_file(213)
> mgoudour opened file TOTO.doc read=Yes write=Yes (numopen=1)
> ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
> -----------------------------------------------------------
> Does anyone know why ?
> is it a samba problem, a network error, a disk error ?
> i've no error on the ethernet card.
Try turning off your oplock i.e. "oplocks = no" to see if the problem
goes away. MS Office files have a bad history with Samba oplocks, so
that may be the problem you're experiencing. Do
grep oplock [your log file]
to see if you get any oplock related error messages in your log. If you
do, then it's an oplock problem.
If, by turning off the oplocks, the problem disappears, you can
selectively turn off oplock on files with the extensions you specify.
For example,
veto oplock files = /*.doc/*.xls/*.mdb/
will turn off oplocks on Word, Excel and Access files.
Hope this helps.
Kohei
More information about the samba
mailing list