linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Upendra Moturi <upendra.m@hexagrid.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: need help for locking with nfs4
Date: Tue, 13 Dec 2011 09:20:45 -0500	[thread overview]
Message-ID: <20111213142045.GA28395@fieldses.org> (raw)
In-Reply-To: <CAHbZLqS-SHzFcsq+Ehnti6cKqhXKmJNbZDW0P+1sJbmb_eZb1A@mail.gmail.com>

On Tue, Dec 13, 2011 at 03:11:36PM +0530, Upendra Moturi wrote:
> i want  file to be locked and not accessed even from another nfs client.

The Linux client and server don't really support mandatory locking.

If that's a problem, then we'd need to understand why exactly you need
this, and why advisory locking isn't sufficient.

--b.

> 
> 
> On Thu, Dec 1, 2011 at 11:39 PM, J. Bruce Fields <bfields@fieldses.org> wrote:
> >
> > On Thu, Dec 01, 2011 at 03:43:03PM +0530, Upendra Moturi wrote:
> > > Hi
> > >
> > > I need some example to configure nfs4 mandatory locking.
> > > I have setup nfs4 server and client.
> > > I want to enable mandatory locking so that no two clients can access
> > > file at same time.
> >
> > What exactly do you mean by "mandatory locking", and why isn't advisory
> > fcntl-based locking sufficient?
> >
> > --b.
> 
> 
> 
> 
> --
> Thanks and Regards,
> Upendra.M
> 
> As a leading developer of IT infrastructure software solutions,
> Hexagrid developed the first cloud computing platform that directly
> aligns with the real-world IT delivery models of both solution
> providers and enterprises. Hexagrid provides all the software and
> support that IT organizations need to successfully build public,
> private, or hybrid clouds that fit their specific business and
> end-user requirements. Hexagrid cloud solutions truly simplify and
> expedite virtual IT management, empowering successful cloud computing
> strategies that quickly increase profits by pooling resources,
> delivering control, and building value. Our Software, Your Cloud.  For
> more information, visit www.hexagrid.com and follow @Hexagrid on
> Twitter
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2011-12-13 14:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01 10:13 need help for locking with nfs4 Upendra Moturi
2011-12-01 18:09 ` J. Bruce Fields
2011-12-13  9:41   ` Upendra Moturi
2011-12-13 14:20     ` J. Bruce Fields [this message]

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=20111213142045.GA28395@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=upendra.m@hexagrid.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).