PHP
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists PHP

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old October 8th, 2005, 04:34 AM
kyle
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Does flock over nfs work with linux kernel > 2.6.12 ?

Hi,

from php function manual. I found:
flock() will not work on NFS and many other networked file systems. Check
your operating system documentation for more details.

And from http://nfs.sourceforge.net/#section_d:

flock()/BSD locks act only locally on Linux NFS clients prior to 2.6.12. Use
fcntl()/PSIX locks to ensure that file locks are visible to other clients.

The NFS client in 2.6.12 provides support for flock()/BSD locks on NFS files
by emulating the BSD-style locks in terms of PSIX byte range locks.
NFS clients that use the same emulation mechanism, or that use fcntl()/PSIX
locks, will then see the same locks that the Linux NFS client sees.

So, does it means that flock over nfs with several clients should work if
the nfs clients are all using kernel 2.6.12?

Thanks,
Kyle

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists PHP > Does flock over nfs work with linux kernel > 2.6.12 ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT