From owner-freebsd-fs@FreeBSD.ORG Wed Dec 24 23:34:22 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 36FD4FEA for ; Wed, 24 Dec 2014 23:34:22 +0000 (UTC) Received: from mail-yk0-x22b.google.com (mail-yk0-x22b.google.com [IPv6:2607:f8b0:4002:c07::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E587F3447 for ; Wed, 24 Dec 2014 23:34:21 +0000 (UTC) Received: by mail-yk0-f171.google.com with SMTP id 142so4193530ykq.16 for ; Wed, 24 Dec 2014 15:34:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=p/izNLnULJMeCB/4Q9/Wej9zP3bvqnqImYuuYgY4RZA=; b=utvYoc5tenPyPpBWXlwm8hxTH76s7cWnbYVC4ajqD3eekCuh2TfK262FSJzhkkOPck s60Pzy242aIvhdRzXlwW070mtmjWLB4JsOGKrrgwVn8+hIloSpYl1QOEf9ai4qC5lCZi 5bi5obVM52mbEtem8l0lB/DVWemZS6u3xwW1Gp0rzanKiVNB35rxI5eAN0CTJPGoSmFb /RL1gtWh9YK6H4nNDMPp+f7kBQTavBdnOe6CqU/4OtIf/FCr72FmE2DcN9yjtaHSaOaH kesPaSI+T6H+0EDj54zCm2rum6JEq7MaQs7OS5AlumO3nkZWQlayQ9By8YLT7gkizcIv 8gmw== MIME-Version: 1.0 X-Received: by 10.236.43.239 with SMTP id l75mr11341076yhb.28.1419464061167; Wed, 24 Dec 2014 15:34:21 -0800 (PST) Received: by 10.170.90.131 with HTTP; Wed, 24 Dec 2014 15:34:21 -0800 (PST) In-Reply-To: <962761800.2101281.1419462898537.JavaMail.root@uoguelph.ca> References: <962761800.2101281.1419462898537.JavaMail.root@uoguelph.ca> Date: Wed, 24 Dec 2014 15:34:21 -0800 Message-ID: Subject: Re: RFC: new NFS mount option to work around Solaris server bug From: Mehmet Erol Sanliturk To: Rick Macklem Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Filesystems X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2014 23:34:22 -0000 On Wed, Dec 24, 2014 at 3:14 PM, Rick Macklem wrote: > Hi, > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193128 > > This bug report discusses a bug in the Solaris NFS server > that is tickled by the way FreeBSD currently does exclusive > open in the NFS client. > FreeBSD sets both the mtime to the time of the client and > also the file's mode using a Setattr RPC done after an > exclusive create of the file in an exclusive open. > > Jason (jnaughto@ee.ryerson.ca) was able to figure out that > the server bug can be avoided if the mtime is set to the > server's time (xxx_TOSERVER option in the Setattr RPC request). > > I'd like to propose a new mount option that forces the > FreeBSD client to use xxx_TOSERVER for setting times, > mostly to be used as a work around for this Solaris server bug. > 1 - Does doing this make sense to others? > 2 - If the answer to one is "Yes", then what do you think > the option should be called? > useservertime > useservtm > ust > OR ?? > > Thanks in advance for your comments, rick > Many years ago , I had worked for a while in Banyan Network Operating System and Novell Netware . When a client connected to those systems , time in client computer was set to server time . In FreeBSD , for NFS clients , using Server time will be very useful for files stored into server . Otherwise , during compilations with make , it is displaying message "There is a time drift between client and server ... " . When there is no NTP usage by clients or NTP may synchronize times from different NTP servers , their times may be different , and these differences may prevent correct work of time based processes on files stored into server . The "use_server_time" is more readable ( mostly clients are connected through fstab , two character more is not a significant burden ) . Thank you very much . Mehmet Erol Sanliturk