From owner-freebsd-current Thu Dec 17 13:23:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA18115 for freebsd-current-outgoing; Thu, 17 Dec 1998 13:23:36 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA18103 for ; Thu, 17 Dec 1998 13:23:33 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.9.1/8.8.5) with SMTP id VAA64758; Thu, 17 Dec 1998 21:23:48 GMT Date: Thu, 17 Dec 1998 21:23:48 +0000 (GMT) From: Doug Rabson To: Alfred Perlstein cc: current@FreeBSD.ORG Subject: Re: Weird NFS error using Solaris 7 server In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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