Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f91EZna18701 for linux-xfs-outgoing; Mon, 1 Oct 2001 07:35:49 -0700 Received: from dmz.tecosim.de ([194.24.222.241]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f91EZeD18681 for ; Mon, 1 Oct 2001 07:35:41 -0700 Received: (from uucp@localhost) by dmz.tecosim.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) id f91EVO128259; Mon, 1 Oct 2001 16:31:24 +0200 Received: from ns.tecosim.de(194.24.222.9) via SMTP by dmz.tecosim.de, id smtpd4pkXQU; Mon Oct 1 16:31:23 2001 Received: from donner.tecosim.de (donner.tecosim.de [194.24.222.109]) by ns.tecosim.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id f91EXCL03546; Mon, 1 Oct 2001 16:33:12 +0200 Received: (from leh@localhost) by donner.tecosim.de (8.11.3/8.11.2/SuSE Linux 8.11.1-0.5) id f91EVLh23773; Mon, 1 Oct 2001 16:31:21 +0200 Date: Mon, 1 Oct 2001 16:31:21 +0200 From: Utz Lehmann To: Steve Lord Cc: Sean Elble , linux-xfs@oss.sgi.com Subject: Re: IRIX 6.5.6m/XFS CVS: Any problems? Message-ID: <20011001163121.D15188@de.tecosim.com> References: <200110011402.f91E25O06650@jen.americas.sgi.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="IiVenqGWf+H9Y6IX" Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <200110011402.f91E25O06650@jen.americas.sgi.com>; from lord@sgi.com on Mon, Oct 01, 2001 at 09:02:05AM -0500 X-Scanned-By: MIMEDefang 1.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk --IiVenqGWf+H9Y6IX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Steve Lord [lord@sgi.com] wrote: > > Hello, > > > > I have a Silicon Graphics Indigo2 here with IRIX > > 6.5.6m installed (love it, BTW), and a Linux server > > that is about to have the latest CVS version of the > > XFS kernel installed, along with the kernel-level NFS > > server. > > > > Are there any known problems, or catches, using NFS on > > IRIX with a Linux 2.4.10 server? I would like to use > > NFS3, if possible, but I would appreciate any comments > > any users may have. Thanks, in advance! > > > > You may want to upgrade to the latest Irix release, there were some > problems with NFS V3 between Linux and Irix. The Irix implementation > expected the NFS file handles to be of a specific size, and Linux used > a different size. I think this is fixed in 6.5.13. This only affected > V3 NFS I think. > > Steve I had grabed a small patch for the linux nfs server on lkml. It's set the file handle size on the linux nfs server to a value (older) IRIX Versions (and HP-UX 10.20) can understand. I have used this patch till 2.4.9. Maybe it works with 2.4.10 too. It works for me, but use it at your own risk. Or use NFS v2. utz --IiVenqGWf+H9Y6IX Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="nfsfh-broken-clients.patch" --- linux-2.4-xfs-20010723/linux/fs/nfsd/nfsfh.c Thu Jul 12 18:33:21 2001 +++ linux/fs/nfsd/nfsfh.c Tue Jul 24 19:03:33 2001 @@ -818,6 +818,11 @@ nfsd_nr_verified++; if (fhp->fh_handle.fh_fileid_type == 255) return nfserr_opnotsupp; + +/* fix for broken nfs clients */ +if (inode && fhp->fh_handle.fh_size < NFS_FHSIZE) +fhp->fh_handle.fh_size = NFS_FHSIZE; + return 0; } @@ -849,6 +854,11 @@ fhp->fh_handle.fh_size = (datap-fhp->fh_handle.fh_auth+1)*4; } out: + +/* fix for broken nfs clients */ +if (fhp->fh_handle.fh_size < NFS_FHSIZE) +fhp->fh_handle.fh_size = NFS_FHSIZE; + return 0; out_bad: --IiVenqGWf+H9Y6IX--