OpenVZ Forum


Home » Mailing lists » Users » Same NFS export in multiple VEs with different mount options
Re: Same NFS export in multiple VEs with different mount options [message #30491 is a reply to message #30489] Tue, 27 May 2008 12:42 Go to previous messageGo to previous message
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
Guys, could you test this patch for both your cases?

Regards,
	Den

On Tue, 2008-05-27 at 15:03 +0400, Denis V. Lunev wrote:
> On Mon, 2008-05-26 at 18:43 +0200, Yoann Moulin wrote:
> > Jonathan Beckman a écrit :
> > > On Mon, May 26, 2008 at 3:10 PM, Denis V. Lunev <den@openvz.org> wrote:
> > >> could you specify, pls exact kernel version you are using
> > > 2.6.18-fza-028stab053.5-amd64 #1 SMP
> > > 
> > > Sorry about forgetting that.
> > 
> > I don't if there are a link, but I've an issue with same nfs export in differents VEs.
> > 
> > see : http://forum.openvz.org/index.php?t=msg&goto=29539
> 
> I have reproduced your bug for debian kernel. The problem is specific to
> it, RHEL5 based kernel is free of this issue. Thank you for the report.
> 
> I'll try to produce the fix ASAP.
> 
> Regards,
> 	Den
> 
[NFS]: NFS super blocks in different VEs are different

Teach nfs_compare_super to this.

Signed-off-by: Denis V. Lunev <den@openvz.org>
-------
--- ./fs/nfs/super.c.nfs1	2008-05-27 16:33:43.000000000 +0400
+++ ./fs/nfs/super.c	2008-05-27 16:34:50.000000000 +0400
@@ -1020,6 +1020,9 @@ static int nfs_compare_super(struct supe
 		return 0;
 	if (old->addr.sin_port != server->addr.sin_port)
 		return 0;
+	if (!ve_accessible_strict(old->client->cl_xprt->owner_env,
+				  get_exec_env()))
+		return 0;
 	return !nfs_compare_fh(&old->fh, &server->fh);
 }
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem starting Ubuntu 8.04
Next Topic: How can I determine "real" CPU consumption
Goto Forum:
  


Current Time: Mon Nov 04 16:29:59 GMT 2024

Total time taken to generate the page: 0.03393 seconds