Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261415AbVB0QDs (ORCPT ); Sun, 27 Feb 2005 11:03:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261425AbVB0QD0 (ORCPT ); Sun, 27 Feb 2005 11:03:26 -0500 Received: from cantor.suse.de ([195.135.220.2]:27860 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S261415AbVB0P44 (ORCPT ); Sun, 27 Feb 2005 10:56:56 -0500 Message-Id: <20050227152353.510432000@blunzn.suse.de> References: <20050227152243.083308000@blunzn.suse.de> Date: Sun, 27 Feb 2005 16:22:54 +0100 From: Andreas Gruenbacher To: linux-kernel@vger.kernel.org, Neil Brown , Trond Myklebust Cc: Olaf Kirch , "Andries E. Brouwer" , Andrew Morton Subject: [patch 11/16] Solaris nfsacl workaround Content-Disposition: inline; filename=nfsacl-solaris-nfsacl-workaround.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1403 Lines: 39 If the nfs_acl program is available, Solaris clients expect both version 2 and version 3 to be available; RPC_PROG_MISMATCH leads to a mount failure. Fake RPC_PROG_UNAVAIL when asked for nfs_acl version 2. Trond has rejected this patch. I'm not sure how to deal with it in a truly clean way, so probably I won't care and still use this as a vendor patch. Signed-off-by: Andreas Gruenbacher Signed-off-by: Olaf Kirch Index: linux-2.6.11-rc5/net/sunrpc/svc.c =================================================================== --- linux-2.6.11-rc5.orig/net/sunrpc/svc.c +++ linux-2.6.11-rc5/net/sunrpc/svc.c @@ -455,6 +455,13 @@ err_bad_prog: goto sendit; err_bad_vers: + if (prog == 100227 && vers == 2) { + /* If the nfs_acl program is available, Solaris clients expect + both version 2 and version 3 to be available; + RPC_PROG_MISMATCH leads to a mount failure. Fake + RPC_PROG_UNAVAIL when asked for nfs_acl version 2. */ + goto err_bad_prog; + } #ifdef RPC_PARANOIA printk("svc: unknown version (%d)\n", vers); #endif -- Andreas Gruenbacher SUSE Labs, SUSE LINUX PRODUCTS GMBH - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/