From: petter.knutsen@cgi.no
To: nfs@lists.sourceforge.net, neilb@suse.de
Subject: Re: File lock with multiple clients
Date: Fri, 21 Oct 2005 12:25:07 +0200 [thread overview]
Message-ID: <E1ESu5K-0007a8-1Z@mail.sourceforge.net> (raw)
> Check the man page: "man flock":
>=20
> Use fcntl or lockf (which is wrapper for fcntl) if you want to lock
> over NFS.
As Trond said, flock() seems to work by emulating fcntl(), but regardless of
whether I'm using fcntl() directly or flock() with emulation, should my
scenario with two clients work, where one client locks and the other client
honouring the lock?
As I said, it works between processes on the same client, but not between
processes on different clients.
I would appreciate if someone could tell me if this is possible or not, so I
can either abandon NFS and look for alternatives or, if it should work, go
back and look for flaws in my setup. :-)
--
Petter=
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next reply other threads:[~2005-10-21 10:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-21 10:25 petter.knutsen [this message]
2005-10-21 10:40 ` File lock with multiple clients Vincent Roqueta
2005-10-21 11:04 ` Vincent Roqueta
[not found] <cmu-lmtpd-31394-1129908191-0@mail-imap5.uio.no>
2005-10-21 16:32 ` Trond Myklebust
-- strict thread matches above, loose matches on Subject: below --
2005-10-21 15:22 petter.knutsen
[not found] <20051021102518.7F60EEE8E@mx1.suse.de>
2005-10-21 11:47 ` Neil Brown
2005-10-20 23:01 petter.knutsen
2005-10-21 0:43 ` Neil Brown
2005-10-21 1:20 ` Trond Myklebust
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1ESu5K-0007a8-1Z@mail.sourceforge.net \
--to=petter.knutsen@cgi.no \
--cc=neilb@suse.de \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.