From owner-freebsd-stable Wed Jan 24 3: 2: 0 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id C6C8737B402; Wed, 24 Jan 2001 03:01:40 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.1/8.11.1) with ESMTP id f0OBH7S10154; Wed, 24 Jan 2001 03:17:08 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200101241117.f0OBH7S10154@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Mike Smith Cc: Guy Harris , Matthias Andree , Linux NFS mailing list , FreeBSD Stable Subject: Re: [NFS] Incompatible: FreeBSD 4.2 client, Linux 2.2.18 nfsv3 server, read-only export In-reply-to: Your message of "Wed, 24 Jan 2001 03:04:54 PST." <200101241104.f0OB4sS10071@mass.dis.org> Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_-7315860230" Date: Wed, 24 Jan 2001 03:17:07 -0800 From: Mike Smith Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multipart MIME message. --==_Exmh_-7315860230 Content-Type: text/plain; charset=us-ascii > (For those following this, see attached diff. Test results would be > appreciated.) Of course, attaching the diff would make me look more intelligent. Take two... --==_Exmh_-7315860230 Content-Type: text/plain ; name="nfs_vnops.diff"; charset=us-ascii Content-Description: nfs_vnops.diff Content-Disposition: attachment; filename="nfs_vnops.diff" --- /sys/nfs/nfs_vnops.c Fri Jan 12 14:15:00 2001 +++ nfs_vnops.c Wed Jan 24 03:01:52 2001 @@ -387,6 +387,14 @@ */ nfsstats.accesscache_misses++; error = nfs3_access_otw(vp, wmode, ap->a_p,ap->a_cred); + /* + * Linux server may return EROFS despite this being + * only an ACCESS rpc if we are asking about bits that + * might allow us to write to the FS. The workaround + * is to ignore EROFS as a return here. + */ + if (error == EROFS) + error = 0; if (!error) { if ((np->n_mode & mode) != mode) { error = EACCES; --==_Exmh_-7315860230 Content-Type: text/plain; charset=us-ascii ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E --==_Exmh_-7315860230-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message