From: Neil Brown Subject: Re: [PATCH] SGI 910137: fsid export option broken in 2.6 Date: Fri, 27 Feb 2004 21:24:34 +1100 Sender: nfs-admin@lists.sourceforge.net Message-ID: <16447.6882.568480.957328@notabene.cse.unsw.edu.au> References: <403F141C.6617C2C4@melbourne.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linux NFS Mailing List Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1AwfDE-0007xe-Oj for nfs@lists.sourceforge.net; Fri, 27 Feb 2004 02:27:20 -0800 Received: from note.orchestra.cse.unsw.edu.au ([129.94.242.24] ident=root) by sc8-sf-mx2.sourceforge.net with smtp (Exim 4.30) id 1AwewM-0000pt-HX for nfs@lists.sourceforge.net; Fri, 27 Feb 2004 02:09:54 -0800 Received: From notabene ([129.94.211.194] == dulcimer.orchestra.cse.unsw.EDU.AU) (for ) (for ) By note With Smtp ; Fri, 27 Feb 2004 21:24:37 +1100 To: Greg Banks In-Reply-To: message from Greg Banks on Friday February 27 Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: On Friday February 27, gnb@melbourne.sgi.com wrote: > G'day, > > This patch against 2.6.3 fixes a bug where the fsid= export option > is ignored if the export point is on a device with an old dev_t. > > > --- linux.base/fs/nfsd/nfsfh.c Wed Feb 18 14:57:25 2004 > +++ linux/fs/nfsd/nfsfh.c Fri Feb 27 20:37:27 2004 > @@ -344,6 +344,9 @@ fh_compose(struct svc_fh *fhp, struct sv > ref_fh_fsid_type = ref_fh->fh_handle.fh_fsid_type; > if (!(exp->ex_flags & NFSEXP_FSID) || ref_fh_fsid_type == 2) > ref_fh_fsid_type = 0; > + } else if (exp->ex_flags & NFSEXP_FSID) { > + ref_fh_version = 1; > + ref_fh_fsid_type = 1; > } > if (ref_fh == fhp) > fh_put(ref_fh); > WHAT!!! Where did all this fsid_type==2 stuff come from.... Al Viro it would appear. I don't like it at all! I'll look into it and fix it all up early next week. Thanks for pointing it out to me. NeilBrown ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs