Reply to Does flock over nfs work with linux kernel > 2.6.12 ?

Your name:

Reply:


Posted by "kyle" on 10/08/05 12:31

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()/POSIX 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 POSIX byte range locks. Other
NFS clients that use the same emulation mechanism, or that use fcntl()/POSIX
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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация