linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* need help for locking with nfs4
@ 2011-12-01 10:13 Upendra Moturi
  2011-12-01 18:09 ` J. Bruce Fields
  0 siblings, 1 reply; 4+ messages in thread
From: Upendra Moturi @ 2011-12-01 10:13 UTC (permalink / raw)
  To: linux-nfs

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.
Please guide me.
I working on ubuntu 10.04 and kernel 2.6.32-21-server.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: need help for locking with nfs4
  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
  0 siblings, 1 reply; 4+ messages in thread
From: J. Bruce Fields @ 2011-12-01 18:09 UTC (permalink / raw)
  To: Upendra Moturi; +Cc: linux-nfs

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: need help for locking with nfs4
  2011-12-01 18:09 ` J. Bruce Fields
@ 2011-12-13  9:41   ` Upendra Moturi
  2011-12-13 14:20     ` J. Bruce Fields
  0 siblings, 1 reply; 4+ messages in thread
From: Upendra Moturi @ 2011-12-13  9:41 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: linux-nfs

i want  file to be locked and not accessed even from another nfs client.


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: need help for locking with nfs4
  2011-12-13  9:41   ` Upendra Moturi
@ 2011-12-13 14:20     ` J. Bruce Fields
  0 siblings, 0 replies; 4+ messages in thread
From: J. Bruce Fields @ 2011-12-13 14:20 UTC (permalink / raw)
  To: Upendra Moturi; +Cc: linux-nfs

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-13 14:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).