Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMB settings: Strikt locking not saved!?



At 15:00 +0100 27/3/08, Christian Schmitz wrote:
The unfortunate aspect is that both are implemented only in Windows operating systems, and on Server, only for machines accessing the share point using SMB. Hence, any Mac accessing a file using AFP or SMB will not know about the locking and may modify the contents of the file without warning.

So that leaves "Strict on, Oplock off" as the only choice for a mixed mac/win environment, right?

This page from the Samba web site explains oplocks and locking in detail:

http://samba.org/samba/docs/man/Samba-HOWTO-Collection/locking.html

The implication is that oplocks and strict locking provide only enhanced locking features, and only for client operating systems that support it, ie, Windows machines and some Unix systems - it's not clear to me whether Mac OS X does.

Strict locking is a significant performance hit, as described on this page:

http://www.oreilly.com/catalog/samba/chapter/book/appb_02.html

strict locking
Setting the strict locking option causes Samba to check for locks on every access, not just when asked to by the client. The option is primarily a bug-avoidance feature, and can prevent ill-behaved DOS and Windows applications from corrupting shared files. However, it is slow and should typically be avoided.

It would seem that older styles of file locking should be possible, as described in this page:


http://www.oreilly.com/catalog/samba/chapter/book/ch05_05.html

So the critical thing for locking would seem to be what the application or the client operating system does. If it asks for a whole file lock, then it should work. If it asks for a byte range lock, this may work if the client operating system supports it and the server has that sort of locking enabled.

From my testing, many Mac and Windows applications do not seem to request any file system locks. Some do, however, perform their own internal locking. MS Office components do, and will detect that a file is already open if you try to open it a second time from another machine.

Cheers

David
--
David Morrison
PO Box 105, Cardiff, NSW 2285, Australia
David_Morrison at internode.on.net
Ph +61 2 49546164
IT Consulting and Support
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >Re: SMB settings: Strikt locking not saved!? (From: Christian Schmitz <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.