Date: Thu, 17 Dec 1998 21:23:48 +0000 (GMT) From: Doug Rabson <dfr@nlsystems.com> To: Alfred Perlstein <bright@hotjobs.com> Cc: current@FreeBSD.ORG Subject: Re: Weird NFS error using Solaris 7 server Message-ID: <Pine.BSF.4.01.9812172122320.55097-100000@herring.nlsystems.com> In-Reply-To: <Pine.BSF.4.05.9812170914340.378-100000@bright.fx.genx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 17 Dec 1998, Alfred Perlstein wrote:
>
> On Thu, 17 Dec 1998, Doug Rabson wrote:
>
> > > > I might be wrong but I think the bug is in the client code and surfaced because
> > > > Solaris 7 has become stricter about clients adhering to the protocol specs.
> > >
> > > This sounds like a good starting point; any chance of tracking down
> > > where the time values are supposed to be set in the FreeBSD code and
> > > fixing that, since that's what seems to be wrong...?
> >
> > I've been looking into this today. Its clear that we are doing the wrong
> > thing for the attributes passed to CREATE, MKNOD and SYMLINK. I made some
> > changes which I think should do the right thing but I can't test them
> > against a Solaris server. One strange effect on a FreeBSD server (with or
> > without this patch) is that the modtime of testfile1 is set to -1. I'll
> > look into that later. Could someone test this patch and tell me if it
> > improves things for Solaris?
> >
> > Index: nfs_vnops.c
> > ===================================================================
> > RCS file: /home/ncvs/src/sys/nfs/nfs_vnops.c,v
> > retrieving revision 1.114
> > diff -u -r1.114 nfs_vnops.c
>
> i'm sorry, what am i looking for? I can test, but i don't know
> what to report about....
The original problem was that with this test program:
#include <fcntl.h>
main()
{
int rv;
rv=open("testfile1",O_CREAT|O_RDWR|O_EXCL,0666);
if ( rv < 0 )
perror("testfile1");
rv=open("testfile2",O_CREAT|O_RDWR,0666);
if ( rv < 0 )
perror("testfile2");
}
the first create succeeded but the second failed.
--
Doug Rabson Mail: dfr@nlsystems.com
Nonlinear Systems Ltd. Phone: +44 181 442 9037
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.01.9812172122320.55097-100000>
