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:
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:
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:
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