<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> If you get corruption when you disable locking, there must still be some<br>
access from one client while the other one is using the file.</blockquote><div><br></div><div>Now i have this and the problem is worse: When the connection is closed, when the process with the PID ends at server, the file is removed!!! The system locks the file, if I wait some time, the locked file is simple removed fro server!</div>
<div><br></div><div><div> oplocks = False</div><div> level2 oplocks = False</div><div> locking = no</div><div> strict locking = no</div><div> blocking locks = no</div></div><div><br></div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Could you describe the exact steps needed to reproduce the problem when<br>
locking is enabled? What application are you using? How long after the first<br>client closes the file did you try to access it on the second client? Does it<br>work if the first client disconnects? Or if the first client machine is shut<br>
down?</blockquote><div><br></div><div>I'm not certainly about how happens... the frequency is with .PSD photoshop files, but can occurs with other files sporadically, but it's difficult predict.</div><div>While using Adobe Photoshop, if at least 2 people opens the same file, the file still locked, and remains inacessible and, now, is removed after the first time the locked message occurs. At Adobe Photoshop, I see the message I have no permission to access the file. After this, when the file is removed after the process ends at server, It's possible save again. If I forget save the file, it's lost.</div>
<div><br></div><div>I think this happens more frequently as larger are the files.</div><div><br></div><div>I don't know how to measure the time, but I'm certainly if the second opens when the first is opened (and this can be seconds of difference), the bug happens. But happened in times I don't understood yet.</div>
<div><br></div><div>If the first client disconnects, the file still locked forever. To don't lost the file, I can copy at server with another name, for example... The same happens if the first machine is shut down...</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">What is the output of smbclient when the problem occurs? (please check to see<br>
that this output does not contain sensitive information before sending it to<br>the bug report)</blockquote><div><br></div><div>I've tryed smbstatus and do not saw nothing different....</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
The fact that you can get access when you disable locking indicates that you<br>don't have a permission issue, but a locking issue.</blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
This problem is probably not a debian specific issue. I suspect it is a<br>configuration issue. It might be better to try via the samba mailing list or<br>IRC channel:</blockquote><div><br></div><div>I will try both. But, anyway, I think this is a critical problem, files are removed or corrupted... And I don't know how proceed with this anymore...</div>
<div><br></div><div><br></div><div>Saulo</div>