AFP/SMB locks

Noah Abrahamson nbfa at stanford.edu
Thu Mar 6 10:47:37 PST 2008


On Mar 6, 2008, at 6:59 AM, Noam Birnbaum wrote:

> AFP users in Excel 2008 sometimes get the notice that others are  
> working on the file they're trying to open.  Okay.  But Windows  
> users do not get that message, and when they try to save the files  
> they've worked on, can't do so.
>
> We've turned on both strict locking and oplocks in SMB settings on  
> the server.  Any other suggestions?

I don't think Samba has a mechanism for notifying users that the file  
is in use (similar to how you can send notifications to AFP users via  
Server Admin). The file is locked properly, but yeah, you're right,  
the Windows user won't know she or he can't save their edits until  
they attempt attempt it.

Additionally, Apple's File Services manual recommends disabling strict  
locking and oplocks when the same share is available to protocols  
other than just SMB. This won't change the behavior you observed,  
however, and files will still be locked when accessed, they just won't  
be put into memory from the Windows side.



Noah


-------------------
Noah Abrahamson
Stanford University




More information about the MacOSX-admin mailing list