Date: Wed, 24 Jan 2001 03:17:07 -0800 From: Mike Smith <msmith@freebsd.org> To: Mike Smith <msmith@freebsd.org> Cc: Guy Harris <gharris@flashcom.net>, Matthias Andree <ma@dt.e-technik.uni-dortmund.de>, Linux NFS mailing list <nfs@lists.sourceforge.net>, FreeBSD Stable <freebsd-stable@freebsd.org> Subject: Re: [NFS] Incompatible: FreeBSD 4.2 client, Linux 2.2.18 nfsv3 server, read-only export Message-ID: <200101241117.f0OBH7S10154@mass.dis.org> In-Reply-To: Your message of "Wed, 24 Jan 2001 03:04:54 PST." <200101241104.f0OB4sS10071@mass.dis.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101241117.f0OBH7S10154>